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
# Attach a volume to a service using a set of clever defaults | |
# | |
# usage: | |
# attach-compose.sh <service> <path> | |
# attach-compose.sh --no-cmd <service> <path> | |
function _compose { | |
local flags=() | |
[[ -f docker-compose.yml ]] && \ |
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 | |
# set an image | |
# export GOJIRA_IMAGE="some-kong-docker-image" | |
##################################### | |
# or a branch and a repo | |
# export GOJIRA_REPO="kong" | |
# export GOJIRA_TAG="name-of-the-branch" | |
##################################### | |
# or just run from within a kong |
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 | |
function confirm { | |
if [[ $FORCE == 1 ]]; then | |
return 0 | |
fi | |
local ok | |
read -r ok |
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
import sys | |
import json | |
import logging | |
import argparse | |
from urlparse import urljoin | |
from difflib import get_close_matches | |
import requests | |
import geocoder | |
from lxml import html |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# -*- coding: utf-8 -*- | |
""" | |
❯ termbike.py "36 Maple St, NY" | |
396 - Lefferts Pl & Franklin Ave | |
🚲 🚲 🚲 🚲 🚲 🚲 🚲 🚲 🚲 🚲 🚲 🚲 🚲 🚲 ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ | |
365 - Fulton St & Grand Ave | |
🚲 🚲 🚲 🚲 🚲 ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ | |
436 - Hancock St & Bedford Ave | |
🚲 🚲 🚲 🚲 🚲 ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ | |
437 - Macon St & Nostrand Ave |
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 python2.7 | |
""" class_generation.py: This file generates subclasses of | |
GeneralPurposeClass in execution time just for the fun | |
of it. | |
>>> import class_generation | |
>>> for class_name in class_generation.__all__: | |
... instance = eval("class_generation.%s" % class_name)() | |
... instance.greet() |
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 | |
import socket | |
import urllib2 | |
import json | |
import sys | |
import time | |
""" | |
LET'S LOOK FOR HIGHER PORT DIFFERENCES MOTHERFUCKER |
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 | |
import logging | |
import random | |
import socket | |
import sys | |
import urllib | |
HOST = "localhost" | |
PORT = 3000 | |
N_INSTANCES = 4 |
NewerOlder