Run following command:
curl https://gist.githubusercontent.com/psjinx/526f32b69c0655624b87/raw/setup.sh | sh
import sys | |
from zipfile import ZipFile | |
from StringIO import StringIO | |
from PyPDF2 import PdfFileReader, PdfFileWriter | |
def burst_pages_of_pdf_file(pdf_file): | |
zipped_output = StringIO() | |
with ZipFile(zipped_output, 'w') as ziparchive: | |
pdf_file.seek(0) |
from __future__ import absolute_import | |
try: | |
import cStringIO as StringIO | |
except ImportError: | |
import StringIO | |
# Standard Library | |
import re | |
import string |
import re | |
import requests | |
from lxml import etree | |
REGEX_FIND_NUMBER = re.compile(r'\d*\.\d+|\d+') | |
REGEX_FIND_COMMA = re.compile(r'\s*,\s*') | |
def get_price_from_text(text): |
# Standard Library | |
import multiprocessing | |
DEFAULT_PROCESSES_COUNT = int(round(1.5 * multiprocessing.cpu_count())) | |
def spawn(f): | |
def fun(q_in, q_out): | |
while True: | |
i, x = q_in.get() |
Run following command:
curl https://gist.githubusercontent.com/psjinx/526f32b69c0655624b87/raw/setup.sh | sh
import requests | |
from lxml import etree | |
def extract_links_from_a_tweet(tweet_url): | |
response = requests.get(tweet_url) | |
if response.status_code != 200: | |
return None |
#IFTTT Recipe Add new items from an RSS Feed to Pocket
#RSS Feed of links shared by someone on Twitter https://fb-notifications-to-pocket.herokuapp.com/get-links-from-twitter-feed?u=http://twitrss.me/twitter_user_to_rss/?user=GrowthHackers
You can change GrowthHackers
to any other twitter handle.
#!/usr/bin/python2.7 | |
import re | |
import requests | |
from envelopes import Envelope, SMTP | |
from lxml import etree | |
from splinter import Browser | |
REGEX_FIND_NUMBER = re.compile(r'\d*\.\d+|\d+') |
#!/bin/sh | |
while true; | |
do | |
# Minimum battery level in percentage. | |
# If remaning battery percentage is less than this then a notification will be shown. | |
MINIMUM_LEVEL=50; | |
# Determine battery status | |
BATTERY_STATUS=$(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -E "state" | sed -E 's/state://' | sed 's/^[ \t]*//;s/[ \t]*$//'); |
#!/bin/bash | |
# Description: Starts xvfb on display 99 | |
if [ -z "$1" ]; then | |
echo "`basename $0` {start|stop}" | |
exit | |
fi | |
case "$1" in |