install cycript
brew install https://gist.github.com/raw/890258/cycript.rb
wget https://gist.github.com/raw/890258/hack_propane.js
chmod +x hack_propane.js
| if (displayExpandedGists) { | |
| Campfire.GistExpander = Class.create({ | |
| initialize: function(chat) { | |
| this.chat = chat; | |
| var messages = this.chat.transcript.messages; | |
| for (var i = 0; i < messages.length; i++) { | |
| this.detectGistURL(messages[i]); | |
| } | |
| }, |
| #!/usr/bin/python | |
| # READ FIRST | |
| # This software poll HP2LY every 5 minutes and will play | |
| # any ffmpeg supported file 20 times after 95%. | |
| # To quit press Ctrl+C in Terminal. | |
| # Closing ffplay would just respawn it. | |
| # | |
| # Dependency: | |
| # Ubuntu: sudo apt-get install ffmpeg | |
| # Fedora: su -c 'yum install ffmpeg' |
| [url "https://github.com/"] | |
| insteadOf = "gh:" |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <scheme name="w3" version="1" parent_scheme="Default"> | |
| <option name="LINE_SPACING" value="1.2" /> | |
| <option name="EDITOR_FONT_SIZE" value="14" /> | |
| <option name="EDITOR_FONT_NAME" value="DejaVu Sans Mono" /> | |
| <colors> | |
| <option name="GUTTER_BACKGROUND" value="ffffff" /> | |
| <option name="WHITESPACES" value="808000" /> | |
| </colors> | |
| <attributes> |
| r = Raphael("jobs-graph", 640, 120); | |
| rect = r.rect(481, 30, 7, 90); | |
| rect.attr({stroke: "none", | |
| fill: "#446093"}); | |
| r = Raphael("jobs-graph", 640, 140); | |
| text = r.text(490, 130, "Clinton"); | |
| text.attr({"font-family": "8px Courier", | |
| fill: "#9c9c9b"}); |
brew install https://gist.github.com/raw/890258/cycript.rb
wget https://gist.github.com/raw/890258/hack_propane.js
chmod +x hack_propane.js
| from flask import Flask, make_response | |
| app = Flask(__name__) | |
| @app.route("/simple.png") | |
| def simple(): | |
| import datetime | |
| import StringIO | |
| import random | |
| from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas |
| #Dump | |
| mysqldump db | gzip -c > db.sql.gz | |
| pg_dump db | gzip -c > db.sql.gz | |
| #use gzip --fast | |
| #Restore | |
| gunzip < db.sql.gz | mysql db | |
| bunzip2 < db.sql.bz2 | mysql db |
| import base64 | |
| import httplib | |
| import threading | |
| import urllib | |
| import tweepy | |
| CONVORE_BOT_USERNAME = '' | |
| CONVORE_BOT_PASSWORD = '' | |
| CONVORE_TOPIC_ID = '7612' |
| // For use with convore.com | |
| /* | |
| * Automatically increase the size of the input field as you type | |
| */ | |
| javascript:void !function(a,b){var c=function(c){var d=$(this),e=parseInt(d.css("height")),f=c.keyCode===b||c.keyCode===13?19:this.scrollHeight,g;if(g=e-f)$("#message-list").css("margin-bottom",61+f),d.css("height",f),(g<0||a.scrollY<a.scrollMaxY)&&a.scroll(0,a.scrollY-g)};$("#footer").attr("style","height: auto !important"),$("#id-message").bind("keypress keyup",c).css("height",19),$("#post-message").find("input.btn").bind("click keyup",function(a){c.call($("#id-message"),a)})}(window) | |
| /* | |
| * Add permalinks to posts (click the time ago text) | |
| * Based on previous work by balpha, https://convore.com/users/balpha/ |