Skip to content

Instantly share code, notes, and snippets.

View buckbaskin's full-sized avatar
:octocat:
C++ 👨‍💻 and Python 🎉

Buck Baskin buckbaskin

:octocat:
C++ 👨‍💻 and Python 🎉
  • East of the Pacific
View GitHub Profile
@buckbaskin
buckbaskin / ssh-agent-forwarding-screen.md
Created February 26, 2017 22:29 — forked from martijnvermaat/ssh-agent-forwarding-screen.md
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.

@buckbaskin
buckbaskin / preprocessor_fun.h
Last active August 29, 2015 14:26 — forked from aras-p/preprocessor_fun.h
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,