Edit/manage gists, even with multiple files, in an editor of your choice.
bash
gist
cligit
Edit/manage gists, even with multiple files, in an editor of your choice.
bash
gist
cligit
import sys | |
import itertools | |
from netaddr import IPNetwork | |
from netaddr import cidr_merge | |
AWS_RESERVED_IPS = 5 | |
ALLOCATIONS = { |
import io | |
class StringIteratorIO(io.IOBase): | |
def __init__(self, iterator): | |
io.IOBase.__init__(self) | |
self._iter = iterator | |
self._left = '' |
I hereby claim:
To claim this, I am signing this object:
sudoer_groups: | |
kmadmin: | |
commands: | |
- "ALL=(ALL) NOPASSWD: ALL" | |
kissmetrics: | |
commands: | |
- "ALL = NOPASSWD: /bin/su - km-legacy" |
from flask import Blueprint, jsonify | |
from utils import env_check | |
import os | |
import hipchat | |
ANNOY_HIPCHAT_TOKEN = os.environ.get('ANNOY_HIPCHAT_TOKEN') | |
annoy = Blueprint('annoy', __name__) |
url = require('url') | |
querystring = require('querystring') | |
component_name = (organization_id, component_id) -> | |
http.get("http://#{organization_id}.statuspage.io/index.json", (res) -> | |
payload = JSON.parse res.body.payload | |
component_name_str = "" | |
components = payload.components |
#!/usr/bin/env python | |
import requests | |
from pyquery import PyQuery as pq | |
results = [] | |
for page in range(1,6): | |
url = 'http://stores.ebay.com/IT-Creations-inc/_i.html?rt=nc&_nkw=dell%2010600R&_pgn=' + str(page) | |
r = requests.get(url) | |
d = pq(r.text) |
#!/bin/bash | |
compress() | |
{ | |
find $1 -type d > foo | |
echo "files" >> foo | |
for file in `find $1 -type f`; do | |
size=$(ls -l $file | awk '{print $5}') | |
echo -e "$size\t$file" >> foo | |
done |