Skip to content

Instantly share code, notes, and snippets.

View scuderiaf1's full-sized avatar

Tony Romeo scuderiaf1

View GitHub Profile
@scuderiaf1
scuderiaf1 / Mac SSH Autocomplete
Created August 16, 2016 12:25
Add auto complete to your ssh, put into your .bash_profile
_complete_ssh_hosts ()
{
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
comp_ssh_hosts=`cat ~/.ssh/known_hosts | \
cut -f 1 -d ' ' | \
sed -e s/,.*//g | \
grep -v ^# | \
uniq | \
grep -v "\[" ;
@scuderiaf1
scuderiaf1 / Mac SSH Autocomplete
Created August 16, 2016 12:24 — forked from aliang/Mac SSH Autocomplete
Add auto complete to your ssh, put into your .bash_profile
_complete_ssh_hosts ()
{
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
comp_ssh_hosts=`cat ~/.ssh/known_hosts | \
cut -f 1 -d ' ' | \
sed -e s/,.*//g | \
grep -v ^# | \
uniq | \
grep -v "\[" ;
@scuderiaf1
scuderiaf1 / gist:03d491677e48c9e516f0
Last active August 29, 2015 14:14 — forked from koelling/gist:ef9b2b9d0be6d6dbab63
CVE-2015-0235 (GHOST) test code
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#define CANARY "in_the_coal_mine"
struct {
char buffer[1024];
@scuderiaf1
scuderiaf1 / 0_reuse_code.js
Created October 12, 2013 00:14
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console