Skip to content

Instantly share code, notes, and snippets.

@notroot
notroot / gist:b72bc8efdf7fb303d1f2
Created March 13, 2015 19:05
Encrypt and compress files matching an extension
#!/bin/bash
extension="xml"
read -s -p "Enter password to encrpyt with: " mypasswd
echo ""
read -s -p "Re-enter: " mypasswd2
echo ""
if [ "$mypasswd" != "$mypasswd2" ]; then
echo "Passwords didn't match!!"
@notroot
notroot / pickem.py
Last active August 29, 2015 14:17
Pick'em - World's worst bracket chooser for the NCAA tournament. It can't be any worse than you.
#!/usr/bin/python
import sys
import csv
import os.path
import random
class Team(object):
def __init__(self, row):
self.name = row[1]
self.seed = int(row[0])