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 | |
# -*- coding: utf-8 -*- | |
import requests | |
import time | |
import json | |
request1 = requests.get('https://api.gdax.com/products/LTC-USD/candles?granularity=3600') | |
time.sleep(3) |
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/sh | |
# write configs | |
# ============================================================================= | |
# config.php | |
# ============================================================================= | |
cat >/etc/phpldapadmin/config.php <<EOL | |
<?php | |
// map attribute names to user friendly names |
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 | |
# Example for the Docker Hub V2 API | |
# Returns all images and tags associated with a Docker Hub organization account. | |
# Requires 'jq': https://stedolan.github.io/jq/ | |
# set username, password, and organization | |
UNAME="" | |
UPASS="" | |
ORG="" |
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
// Useful for students in need of block quotes for their paper, etc. | |
// Executing with the JavaScript console | |
new_window=window.open();new_window.document.body.innerHTML = $('iframe').contents().find('iframe').contents().find('body').get(1).innerHTML; | |
// With a bookmarklet: | |
javascript:new_window=window.open();new_window.document.body.innerHTML = $('iframe').contents().find('iframe').contents().find('body').get(1).innerHTML; |
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 | |
# Example for the Docker Hub V2 API | |
# Returns all imagas and tags associated with a Docker Hub user account. | |
# Requires 'jq': https://stedolan.github.io/jq/ | |
# set username and password | |
UNAME="" | |
UPASS="" |
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 bash | |
# Installs/Configures: | |
# - Docker | |
# - Docker Registy Container with self-signed cert | |
# | |
# Tested on Ubuntu 14.04.1 | |
# Must be executed with elevated privilages | |
if [ "$(id -u)" != "0" ]; then |
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
### Keybase proof [48/457] | |
I hereby claim: | |
* I am kizbitz on github. | |
* I am kizbitz (https://keybase.io/kizbitz) on keybase. | |
* I have a public key whose fingerprint is 6F92 8A25 BC66 821A EFA2 75B1 F4A3 F205 8D68 25BD | |
To claim this, I am signing this object: |
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 | |
fonts=( | |
font-liberation-mono-for-powerline | |
) | |
tap_packages=( | |
homebrew/dupes | |
caskroom/fonts | |
) |
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
" settings | |
let defaultengine = "duckduckgo" | |
let hintcharacters = "aoeuidhtns" | |
let scrollstep = 90 | |
set autohidecursor | |
set autoupdategist | |
set noautofocus | |
set nosmoothscroll | |
set typelinkhints |
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
# Bash | |
function dclean { | |
if [ ! -z "$1" ]; then | |
if [ "$1" = "restart" ]; then | |
sudo service docker restart | |
sleep 3 | |
fi | |
fi | |
export CONTAINERS=`docker ps -a -q` | |
export IMAGES=`docker images -q --filter "dangling=true"` |