Skip to content

Instantly share code, notes, and snippets.

@adieu
adieu / gist:357768
Created April 6, 2010 16:17
Google Apps support patch for python-openid v2.1.1
diff --git a/consumer/consumer.py b/consumer/consumer.py
index e725da2..d57b9d3 100644
--- a/consumer/consumer.py
+++ b/consumer/consumer.py
@@ -724,7 +724,6 @@ class GenericConsumer(object):
"return_to does not match return URL. Expected %r, got %r"
% (return_to, message.getArg(OPENID_NS, 'return_to')))
-
# Verify discovery information:
@jeremi
jeremi / fabfile.py
Created November 4, 2010 21:00
A fabfile to manage git+appengine deployement
from __future__ import with_statement
import functools
import os
import sys
from fabric.api import *
from fabric.colors import green, red, green
import datetime
import re
@santiycr
santiycr / Tweet.java
Created March 11, 2011 23:15
Tweet about #SeleniumConf!
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;
import java.util.concurrent.TimeUnit;
public class Tweet {
public static void goTweet() throws Exception {
WebDriver driver = new FirefoxDriver();
driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
driver.get("http://twitter.com");
require 'rubygems'
require 'highline/import'
require 'watir-webdriver'
begin
username = ask("What is your twitter username?")
password = ask("and your password?") { |q| q.echo = false }
browser= Watir::Browser.start "twitter.com", :firefox
browser.span(:text => "Sign in").click
browser.text_field(:id => "username").set username
@pamelafox
pamelafox / twitter-bootstrap.scss
Created March 24, 2012 15:53
Bootstrap Android Overrides
body.android {
.modal {
@include box-shadow(none);
@include background-clip(border-box);
@include border-radius(0px);
border: 1px solid black;
}
.alert {
@include border-radius(0px);
text-shadow: none;
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@KangOl
KangOl / gist:4533912
Created January 14, 2013 21:58
imapfilter: auto sort mailing list
bool = function(o)
if not o then
return false
elseif o == '' then
return false
elseif o == 0 then
return false
elseif #o == 0 then
return false
end
@aido
aido / _stoploss.py
Last active August 16, 2017 19:51 — forked from prof7bit/_stoploss.py
A simple stop loss bot. Adjust STOP_PRICE and STOP_VOLUME to your needs. The file can be reloaded after editing without restarting goxtool by simply pressing the l key. An update of prof7bit's original _stoploss.py at https://gist.github.com/prof7bit/5437131 to sell entire BTC balance when STOP_VOLUME = 0
"""
a simple stop loss bot.
adjust STOP_PRICE and STOP_VOLUME to your needs.
The file can be reloaded after editing without
restarting goxtool by simply pressing the l key.
"""
import strategy
import goxapi
# pylint: disable=C0301
@aido
aido / _panic.py
Last active December 17, 2015 19:19
A interactive panic bot for goxtool Mt.Gox trading bot framework. Keypress 'b' to execute a buy marketorder with half of local currency balance. Keypress 's' to sell half of BTC balance. Keypress 'v' to execute a buy marketorder with entire local currency balance. Keypress 'a' to sell entire BTC balance. Keypress 'c' to cancel all open orders.
"""
a simple panic bot.
The file can be reloaded after editing without
restarting goxtool by simply pressing the l key.
"""
import strategy
import goxapi
class Strategy(strategy.Strategy):
"""a simple panic bot"""
@wookiecooking
wookiecooking / txt.txt
Created July 8, 2013 16:27
haha google dork searches
intitle:index.of .bash_history
intitle:index.of .sh_history
intitle:”Index of” index.html.bak
intitle:”Index of” index.php.bak
intitle:”Index of” index.jsp.bak
intitle:”Index of” “.htpasswd” htpasswd.bak
inurl:backup intitle:index.of inurl:admin
“Index of /backup”
intitle:”Index of” index.html~
intitle:”Index of” index.php~