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 python3 | |
import os | |
import subprocess | |
import shutil | |
from os.path import join | |
from subprocess import call | |
X264 = 'x264' |
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 python3 | |
""" | |
A simple program that sends warnings when disk space on one or more hard | |
drives has reached a critical level | |
""" | |
from subprocess import Popen, PIPE | |
############################################################## | |
#CHANGE SETTINGS BELOW | |
############################################################## |
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 python3 | |
# -*- coding: utf-8 -*- | |
""" | |
A simple program that sends warnings when disk space on one or more hard | |
drives has reached a critical level | |
""" | |
import re | |
from subprocess import Popen, PIPE | |
############################################################## |
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 python3 | |
"""Generate technique practice schedule""" | |
import argparse | |
import datetime | |
import random | |
ALL_TYPES = \ | |
{'Major Scales': ["G","D","B","Bb","Eb"], | |
'Harmonic Minor Scales': ["E","B","G#","G","C"], | |
'Melodic Minor Scales': ["E","B","G#","G","C"], |
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 | |
"""Remove all .svn directories""" | |
import os | |
import shutil | |
def remove_dot_svn_dirs(root): | |
"""Remove all .svn directories root""" | |
for root, dirs, _ in os.walk(root): | |
for adir in dirs: | |
if adir == '.svn': |
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 python3 | |
""" | |
Generate a password map | |
""" | |
import itertools | |
import random | |
from string import ascii_lowercase, ascii_uppercase | |
def main(): | |
"""Main script""" |
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 | |
for ((n=0;n<10;n++)); | |
do | |
dd if=/dev/urandom count=1 2> /dev/null | uuencode -m -| head -n 2 | tail -n 1 | cut -c-8 | |
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 python3 | |
""" | |
Find all the VCS controlled directories in a file path | |
""" | |
import argparse | |
import os | |
EXTS = ['.git', '.hg', '.svn', 'CVS'] | |
def find(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
#!/usr/bin/env python3 | |
""" | |
create symlinks in binpath for all exectuables in sub-directories | |
within gistpath | |
""" | |
import argparse | |
import os | |
import shutil |
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 python3 | |
""" | |
Search for orphan files (files that do not belong to any package) | |
""" | |
import fnmatch | |
import os | |
import subprocess | |
import itertools | |
INCLUDES = ('/usr', '/etc', '/opt', '/lib32', '/lib64', '/sbin') |
OlderNewer