Skip to content

Instantly share code, notes, and snippets.

View mehmetahsen's full-sized avatar

Mehmet Ahsen mehmetahsen

View GitHub Profile
@martijnvermaat
martijnvermaat / ssh-agent-forwarding-screen.md
Created December 21, 2013 15:06
SSH agent forwarding and screen

SSH agent forwarding and screen

When connecting to a remote server via SSH it is often convenient to use SSH agent forwarding so that you don't need a separate keypair on that server for connecting to further servers.

This is enabled by adding the

ForwardAgent yes

option to any of your Host entries in ~/.ssh/config (or alternatively with the -A option). Don't set this option in a wildcard Host * section since any user on the remote server that can bypass file permissions can now als use keys loaded in your SSH agent. So only use this with hosts you trust.

@hexparrot
hexparrot / install_mineos
Last active March 17, 2020 22:03
Downloads, installs and configures components required for the MineOS Web User Interface on apt-get based systems.
#!/bin/sh
# update repositories
apt-get update
# download the necessary prerequisite components for mineos
apt-get -y install screen python-pip rdiff-backup git openjdk-7-jre-headless
pip2 install cherrypy==3.2.3
# download the most recent mineos web-ui files from github
@willurd
willurd / web-servers.md
Last active November 19, 2024 22:45
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