Skip to content

Instantly share code, notes, and snippets.

@nyer
nyer / .screenrc
Created September 18, 2018 13:24 — forked from bcomnes/.screenrc
ssh agent forwarding in tmux and gnu screen
# Fix agent forwarding
# https://gist.github.com/martijnvermaat/8070533
# http://techblog.appnexus.com/2011/managing-ssh-sockets-in-gnu-screen/
# See .ssh/rc for socket linking
unsetenv SSH_AUTH_SOCK
setenv SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock.$HOSTNAME
@nyer
nyer / ssh-agent-forwarding-screen.md
Created September 18, 2018 13:03 — 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.

import java.util.regex.Pattern;
import java.util.Arrays;
public class UnprintCharSplit {
public static void main(String[] args) {
char ch = (char) 0x01;
StringBuilder buf = new StringBuilder();
buf.append("a");
buf.append(ch);
buf.append("b");
@nyer
nyer / active.md
Created January 13, 2013 13:38 — forked from paulmillr/active.md

Most active GitHub users

GitHub has released contributions (summary of Pull Requests, opened issues and commits).

This is the count of contributions to public repos at GitHub.com from Thu, 12 Jan 2012 11:50:18 GMT till Sat, 12 Jan 2013 11:50:18 GMT.

To repeat:

  1. Take the first 1000 users in GitHub according to the count of followers (users with 150+ followers).
  2. Sort them by number of public contributions.