Skip to content

Instantly share code, notes, and snippets.

View yveshanoulle's full-sized avatar

Yves Hanoulle (he/him) yveshanoulle

View GitHub Profile
@haf
haf / gist:2843680
Created May 31, 2012 14:19
Get SSH working on Vagrant/Windows/Git

If you are using vagrant, you probably-statistically are using git. Make sure you have its binary folder on your path, because that path contains 'ssh.exe'.

Now, modify C:\vagrant\vagrant\embedded\lib\ruby\gems\1.9.1\gems\vagrant-1.0.3\lib\vagrant\ssh.rb to comment out the faulty Windows check and add a real SSH check:

# if Util::Platform.windows?
  # raise Errors::SSHUnavailableWindows, :host => ssh_info[:host],
                                       # :port => ssh_info[:port],
                                       # :username => ssh_info[:username],
 # :key_path => ssh_info[:private_key_path]
@jpmens
jpmens / Raspi-Stack.md
Created July 15, 2016 09:25
Manifest for Raspberry Pi (2B & 3) "cluster"

Case

You need one of the Raspi cases (1st item below), and 1 intermediate stacking plate (2nd item below) for a second RPi. So, for 3 RPi: 1 case, 2 intermediate plates.

The bottom plate of the case goes at the bottom of the stack. The top plate of the case way at the top of the stack. The products come with all required parts (nuts, bolts, standoffs, etc.)

Shopping list

@crahan
crahan / checkcloudbleed.sh
Last active May 5, 2017 19:20
Check a list of domains against http://www.doesitusecloudflare.com
#!/bin/bash
# Input: list of domains (without 'http://' or trailing '/')
for i in `cat $1`; do
response=`curl -s http://www.doesitusecloudflare.com/?url=$i | grep "the website uses cloudflare"`
if [ "$response" ]; then
echo "$i: uses Cloudflare!"
#else
# echo "$i: OK"