Skip to content

Instantly share code, notes, and snippets.

View kizbitz's full-sized avatar

Jerry Baker kizbitz

View GitHub Profile
#!/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)
#!/bin/sh
# write configs
# =============================================================================
# config.php
# =============================================================================
cat >/etc/phpldapadmin/config.php <<EOL
<?php
// map attribute names to user friendly names
@kizbitz
kizbitz / dockerhub-v2-api-organization.sh
Last active April 3, 2024 08:47
Get the list of images and tags for a Docker Hub organization account
#!/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=""
@kizbitz
kizbitz / gist:6fd81f193d064bb55bcb
Last active June 27, 2016 10:51 — forked from aaronshaf/bookmarklet-expanded.js
Copy text from Amazon's Cloud Reader
// 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;
@kizbitz
kizbitz / dockerhub-v2-api-user.sh
Last active April 17, 2023 23:30
Get the list of images and tags for a Docker Hub user account.
#!/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=""
#!/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
### 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:
#!/bin/bash
fonts=(
font-liberation-mono-for-powerline
)
tap_packages=(
homebrew/dupes
caskroom/fonts
)
@kizbitz
kizbitz / cVim
Last active August 29, 2015 14:09
cVim
" settings
let defaultengine = "duckduckgo"
let hintcharacters = "aoeuidhtns"
let scrollstep = 90
set autohidecursor
set autoupdategist
set noautofocus
set nosmoothscroll
set typelinkhints
@kizbitz
kizbitz / dclean: bashrc
Last active August 29, 2015 14:06
Purge Docker containers/images
# 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"`