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
"""Apply Rot13 cipher to argument list""" | |
import string | |
import sys | |
def rot13(text): | |
"""Apply the rot13 cipher to the given text | |
Args: | |
text: The text to be shifted. |
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/env bash | |
PORT="${1}" | |
TARGET="${2}" | |
[ -z "${3}" ] && TPORT="${1}" || TPORT="${3}" | |
if [ -z "$1" ] || [ -z "$2" ]; then | |
echo "Usage: $0 <port> <target> [target port]" | |
exit 1 | |
fi |
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/env python | |
import sys | |
import argparse | |
import os | |
import hashlib | |
def getHashAlgorithyms(): | |
"""Gets a list of hashlib constructures that can be used to generate the digest of a file""" | |
return { |
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/env python3 | |
import argparse | |
import sys | |
import os | |
import shutil | |
from datetime import datetime | |
def migrate(**kwargs): | |
"""Organize files in a given source to a directory structure |
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/env python3 | |
from html.parser import HTMLParser | |
from urllib import request | |
class ExcuseParser(HTMLParser): | |
def __init__(self): | |
super(ExcuseParser, self).__init__() | |
self._content = None | |
self._title = None |
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
TARGET=Blink | |
LIB=core.a | |
CORE_INC=/usr/share/arduino/hardware/arduino/cores/arduino/ | |
PLAT_INC=/usr/share/arduino/hardware/arduino/variants/mega/ | |
F_CPU=16000000L | |
FORMAT=ihex | |
MCU=atmega328p | |
ISP=arduino | |
PORT=/dev/ttyACM0 |
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 weechat as w | |
import subprocess as s | |
SCRIPT_NAME = "i3notify" | |
SCRIPT_AUTHOR = "Ian Laird <[email protected]>" | |
SCRIPT_VERSION = "1.0" | |
SCRIPT_LICENSE = "GPL3" | |
SCRIPT_DESC = "Send notifications to i3-nagbar" | |
ICON_PATH = '/usr/share/icons/hicolor/32x32/apps/weechat.png' |
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 | |
import urllib2 | |
import feedparser | |
import subprocess | |
from os import remove | |
from time import sleep | |
FEED_URL = 'https://mail.google.com/mail/feed/atom' | |
ICON_PATH = '<ICON PATH>' |
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/usr/env python2 | |
from scapy.all import * | |
from argparse import ArgumentParser | |
from sys import argv | |
from time import time | |
# shut up scapy | |
conf.verb=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
#!/usr/bin/env bash | |
# Look for existing instances | |
CID=$(docker ps -a -f name=$CNAME -q) | |
if [ ! -z "${CID}" ] | |
then | |
# Determin if the instance is already running | |
IS_RUNNING=$(docker inspect --format='{{.State.Running}}' $CID) |
OlderNewer