sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-autosuggestions by
from flask import Flask | |
from secrets import g_user, g_pass | |
from datetime import datetime | |
app = Flask(__name__) | |
import gspread | |
# Helpers |
/* Helpers */ | |
// Send request to server | |
var sendRequest = function(substance){ | |
var req = new XMLHttpRequest(); | |
req.open('GET', 'http://XXsecretXX:YY/' + substance, true); | |
req.onload = function (e) { | |
if (req.readyState === 4) { | |
if (req.status === 200) { |
/* usbreset -- send a USB port reset to a USB device | |
* | |
* Compile using: gcc -o usbreset usbreset.c | |
* | |
* | |
* */ | |
# "Free dynos are allowed 18 hours awake per 24 hour period." | |
# This script keeps the free Heroku dyno awake during daytime. | |
# During night, user needs to wait ~10s for server wakeup. | |
# Tested on Python 2.7.6, should work on *nix machines. | |
# (On Python 3 urllib2 is changed to urllib3..) | |
# Configuration & Usage: | |
# - Setup server endpoints in KEEP_AWAKE_SERVERS env var, separated by space. | |
# eg. `export KEEP_AWAKE_SERVERS="http://app955.herokuapp.com http://asd.me"` |
#!/bin/bash | |
# | |
# Open new Terminal tabs from the command line to currently running ITerm2 | |
# session | |
# | |
# Author: Justin Hileman (http://justinhileman.com) | |
# Modified by: Jarkko Saltiola (http://saltio.la) | |
# | |
# Installation: | |
# Add this file path |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Instapusher. Push images from a directory automatically to Instagram. | |
# Schedule script with cron eg: | |
# 0 18 * * * /path/to/instapusher --login <your_username> \ | |
# --password <your_password> --random-delay 30 <dir> |
#!/usr/bin/env python3 | |
# Download all zip files from a single bbp page eg: | |
# ./djbb.py http://www.breakbeat-paradise.com/samplesite/bb_synth.php | |
import requests | |
import re | |
import shutil | |
import sys |
========== | |
Making Money is Killing Your Business (Blakeman, Chuck;Seeling, Caleb) | |
- Added on Thursday, June 19, 2014 10:07:49 AM | |
We’re too busy making money to get to the important stuff. As a result everything is backwards. We build a business and take whatever lifestyle that business happens to throw off for us, which at best usually involves having money, but rarely a lot of time, and almost never significance.This isn’t surprising because “he who makes the rules wins,” and we too often let our business and the business world around us make the rules for us. | |
========== | |
- Added on Thursday, June 19, 2014 10:23:04 AM | |
If we gain clarity about where we are and where we want to go, and a measure of clarity about the first few steps to get there, that gives us hope. Not hope in the modern sense of wishing, but hope in the correct sense of the word—believing with conviction that I can do it. | |
========== |
########## Install NGINX ############## | |
# Install software-properties-common package to give us add-apt-repository package | |
sudo apt-get install -y software-properties-common | |
# Install latest nginx version from community maintained ppa | |
sudo add-apt-repository ppa:nginx/stable | |
# Update packages after adding ppa |