Skip to content

Instantly share code, notes, and snippets.

View daraosn's full-sized avatar

Diego Araos daraosn

View GitHub Profile
@daraosn
daraosn / osx_shockshell_patch.sh
Last active August 29, 2015 14:06
[OSX] Shockshell bash patch
#!/bin/bash
if [ ! $(command -v brew) ]; then
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
if [ ! -f /bin/bash.bak ]; then
brew update
brew install bash
brew upgrade bash
sudo mv /bin/bash /bin/bash.bak
sudo rm /bin/bash
@daraosn
daraosn / drone_swarm.sh
Last active April 15, 2017 02:03
Hack to connect multiple Parrot AR Drone 2.0 and create a swarm
## Hack to connect multiple Parrot AR Drones.
#############################################
## Instructions:
## 1. Connect to your AR Drone wifi network.
## 2. Open your terminal and do 'telnet 192.168.1.1'
## 3. Copy the script and replace DRONE_ID with the desired ID number (between 3-255).
## 4. Paste and run the script for every drone on the swarm.
DRONE_ID=200
sed -i "s/PROBE=1/PROBE=${DRONE_ID}/" /bin/wifi_setup.sh
@daraosn
daraosn / gist:3218195
Created July 31, 2012 16:15
Thunderclap bug @ Babelverse project page
// BUGGY:
project_page.campaign_id = 191;
project_page.twitter_backed = ; // HERE IN RUBY: project_page.twitter_backed = <%=twitter_backed%>;
// Uncaught SyntaxError: Unexpected token ;
project_page.facebook_backed = ; // HERE IN RUBY: project_page.facebook_backed = <%=facebook_backed%>;
project_page.total_backers = 18;
project_page.total_reach = 13482;
project_page.time_left = 0;
project_page.goal = 500;