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
package main | |
import ( | |
"fmt" | |
"github.com/teacat/noire" | |
) | |
func main() { | |
hue := 320.0 | |
val := 100.0 |
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
package main | |
import ( | |
"testing" | |
) | |
var ( | |
lastString string | |
lastNumber int | |
lastBool bool |
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
from colour import Color | |
import xml.etree.ElementTree | |
def import_itermcolors(filename): | |
ret = {} | |
for k,v in import_itermcolors_raw(filename).items(): | |
r = v['Red Component'] | |
g = v['Green Component'] | |
b = v['Blue Component'] | |
ret[k] = Color(rgb=(r,g,b)) |
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/python | |
import os | |
import email | |
import imaplib | |
from operator import itemgetter | |
username = '[email protected]' | |
password = 'mypass' | |
imap = imaplib.IMAP4_SSL("imap.gmail.com") |
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 | |
a=1 b=2 c=4; for i in a b c; do echo ${!i}; done |
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 | |
import os | |
import sys | |
from boto import route53 | |
def fail(): | |
print('Both AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables must be defined') | |
sys.exit(1) |
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 signal | |
from random import randrange | |
large_dict = {} | |
def sig_handler(s,f): | |
pass | |
def loop(): |
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
--- | |
- hosts: localhost | |
connection: local | |
gather_facts: False | |
tasks: | |
- name: pull repo | |
git: repo=https://github.com/bcicen/statsquid.git | |
dest=/tmp/statsquid | |
register: b |
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
new/etc/nologin | |
new/lib64/ld-linux-x86-64.so.2 | |
new/etc/apt/sources.list | |
new/etc/apt/trustdb.gpg | |
new/etc/shadow | |
new/etc/shadow- | |
new/sbin/initctl | |
new/sbin/start-stop-daemon | |
new/usr/bin/dpkg | |
new/usr/bin/dpkg-deb |
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 socket | |
>>> socket.gethostbyaddr('173.194.123.103') | |
('lga15s49-in-f7.1e100.net', [], ['173.194.123.103']) |
NewerOlder