Skip to content

Instantly share code, notes, and snippets.

View smtdev's full-sized avatar
💻
WFH

Sergio Martín smtdev

💻
WFH
View GitHub Profile
@smtdev
smtdev / web-servers.md
Created August 22, 2024 15:36 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@smtdev
smtdev / -README.md
Created June 15, 2020 20:29 — forked from jirutka/-README.md
How to use terminal on Windows and don’t go crazy…

How to use terminal on Windows without going crazy…

Windows is really horrible system for developers and especially for devops. It doesn’t even have a usable terminal and shell, so working with command line is really pain in the ass. If you really don’t want to switch to any usable system (OS X, Linux, BSD…), then this guide should help you to setup somewhat reasonable environment – usable terminal, proper shell, ssh client, git and Sublime Text as a default editor for shell.

Install stuff

  1. Download and install Git for Windows* with:
    • [✘] Use Git from the Windows Command Prompt
  • [✘] Checkout as-is, commit Unix-style line endings
@smtdev
smtdev / proxbash.sh
Created April 14, 2020 09:15
Automate some Proxmox procedures. Purpose: starred and easy access. Original source: https://raymii.org/s/software/ProxBash.html
#!/bin/bash
# Copyright (C) 2013 - Remy van Elst
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@smtdev
smtdev / machine-dev-setup.ps1
Created September 14, 2019 10:30 — forked from lediur/machine-dev-setup.ps1
First-run Windows setup scripts
# Inspired by https://gist.github.com/mivano/2b078f267d3ca1e9996c07085eb59a60
# and personal machine setup scripts
######################
# Configure Chocolatey
######################
choco config set --name=cacheLocation --value=C:\ChocolateyCache
choco feature enable --name=allowGlobalConfirmation
Enterprise: NJVYC-BMHX2-G77MM-4XJMR-6Q8QF
Professional: KBJFW-NXHK6-W4WJM-CRMQB-G3CDH
Keys are generic ones. These are the same from MSDN account.
Product Key : -6Q8QF
Validity : Valid
Product ID : 00369-90000-00000-AA703
Advanced ID : XXXXX-03699-000-000000-00-1032-9200.0000-0672017
@smtdev
smtdev / tmux_cheatsheet.markdown
Created February 13, 2017 01:22 — forked from henrik/tmux_cheatsheet.markdown
tmux cheatsheet

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: