This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
import os | |
import requests | |
github_user = os.environ.get('githubuser') | |
api_url = 'https://api.github.com/users/{github_user}/repos?per_page=100'.format(github_user=github_user) | |
if github_user is None: | |
github_user = raw_input('No GitHub username detected, please enter it here: ') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
read -p "enter your wallet address: " WALLETID | |
sudo apt-get update | |
sudo apt-get install -y git automake g++ build-essential libcurl4-openssl-dev libjansson4 libjansson-dev | |
if [ -d $(pwd)/quarkcoin-cpuminer ]; then | |
rm -r $(pwd)/quarkcoin-cpuminer | |
fi | |
git clone https://github.com/uncle-bob/quarkcoin-cpuminer | |
cd quarkcoin-cpuminer | |
./autogen.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. Go to page https://www.linkedin.com/settings/email-frequency | |
// 2. You may need to login | |
// 3. Open JS console | |
// ([How to?](http://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers)) | |
// 4. Copy the following code in and execute | |
// 5. No more emails | |
// | |
// Bookmarklet version: | |
// http://chengyin.github.io/linkedin-unsubscribed/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mood() | |
{ | |
cmd=". $HOME/.env/$1/bin/activate" | |
$cmd | |
} | |
_mood() | |
{ | |
local cur="${COMP_WORDS[COMP_CWORD]}" | |
local projects=$(ls -h $HOME/.env) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import os.path | |
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__)) | |
sys.path.insert(0, os.path.join(PROJECT_ROOT, "../")) | |
from twisted.internet import reactor, task | |
from scrapy.crawler import Crawler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from cProfile import Profile | |
from django.core.management.base import BaseCommand | |
class ProfileEnabledBaseCommand(BaseCommand): | |
"""Enable profiling a command with --profile. | |
Requires child class to define _handle instead of handle. | |
via https://gist.github.com/dfrankow | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Module dependencies. | |
*/ | |
var express = require('express') | |
, routes = require('./routes') | |
, http = require('http') | |
, path = require('path') | |
// ! | |
, swig = require('./config/consolidate-swig').swig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from scrapy import log | |
from scrapy.item import Item | |
from scrapy.http import Request | |
from scrapy.contrib.spiders import XMLFeedSpider | |
def NextURL(): | |
""" | |
Generate a list of URLs to crawl. You can query a database or come up with some other means | |
Note that if you generate URLs to crawl from a scraped URL then you're better of using a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import urllib, re, hashlib, os, smtplib | |
from email.MIMEText import MIMEText | |
class VisaChecker(object): | |
""" | |
VisaChecker script for the applicants waiting 'administrative processing'. | |
""" | |