Skip to content

Instantly share code, notes, and snippets.

View aliceinwire's full-sized avatar

Arisu T. aliceinwire

View GitHub Profile
@aliceinwire
aliceinwire / ducks.sh
Created June 9, 2020 01:34 — forked from thebouv/ducks.sh
ducks: linux command for the 10 largest files in current directory
du -cks * | sort -rn | head -11
# Usually set this up in my bash profile as an alias:
# alias ducks='du -cks * | sort -rn | head -11'
# Because it is fun to type ducks on the command line. :)
@aliceinwire
aliceinwire / delete_large_gmail_folder.py
Last active March 22, 2019 04:10 — forked from daleysoftware/delete_large_gmail_folder.py
Script to delete large folder in gmail.
"""
Script to delete large folder in gmail.
Adapted from: http://ae.ro/1upv7rt
Notes:
1. For this to work with gmail, you will need to adjust into your IMAP settings
so that they look like this:
* IMAP: enabled

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
# Zach Champion
# Calculus II - Honors Calculus Project
# A script in Python that returns a decimal expansion of pi using the
# Gauss-Legendre algorithm.
from __future__ import with_statement
# Used the decimal module for increased accuracy that the standard float
@aliceinwire
aliceinwire / new_gist.py
Created November 28, 2012 07:40
Python: take input from stdin and create a new public gist with it
#!/usr/bin/env python
import getpass, mechanize, optparse, os.path, sys
parser = optparse.OptionParser()
parser.add_option('--login')
parser.add_option('--password')
parser.add_option('--filename')
parser.add_option('--description')
parser.add_option('--private', action='store_true', default=False)
@aliceinwire
aliceinwire / mosh-cygwin
Created June 5, 2012 22:25 — forked from eerohele/mosh-cygwin.md
Compiling Mosh from git (http://mosh.mit.edu/) under Cygwin
1. Download Cygwin: http://www.cygwin.com
2. Run setup.exe and install the following packages in addition to the default ones:
- make
- boost
- libncurses-devel
- pkg-config
- perl
3. Download and compile Protocol Buffers: http://code.google.com/p/protobuf/