Skip to content

Instantly share code, notes, and snippets.

Jerry Baker kizbitz

Block or report user

Report or block kizbitz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gdax_api_test.py
#!/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)
View docker-ldap-training-configs.sh
#!/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 Aug 18, 2019
Get the list of images and tags for a Docker Hub organization account
View dockerhub-v2-api-organization.sh
#!/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 Jun 27, 2016 — forked from aaronshaf/gist:1346968
Copy text from Amazon's Cloud Reader
View gist:6fd81f193d064bb55bcb
// 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 Aug 18, 2019
Get the list of images and tags for a Docker Hub user account.
View dockerhub-v2-api-user.sh
#!/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=""
View self-signed-private-registry.sh
#!/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
View gist:5d5a9f26864e70eaa72b
### 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:
View mac-settings.sh
#!/bin/bash
fonts=(
font-liberation-mono-for-powerline
)
tap_packages=(
homebrew/dupes
caskroom/fonts
)
View 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 Aug 29, 2015
Purge Docker containers/images
View dclean: bashrc
# 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"`
You can’t perform that action at this time.