This file contains hidden or 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
| # Script for automatic setup of SOCKS proxy through SSH connection. | |
| # It automatically teardowns SOCKS configuration before stopping. | |
| # It's supposed to work on Mac OS X 10.6+ | |
| # | |
| # Author: Adam Stankiewicz (@sheerun) | |
| # | |
| [[ -n "$1" ]] || { echo "Usage: proxy [email protected]"; exit 1; } | |
| # get service GUID and NAME (like Wi-Fi) to set SOCKS proxy |
This file contains hidden or 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 | |
| # bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2011-10-04 | |
| # | |
| # _______________| noise : ambient Brown noise generator (cf. white noise). | |
| # | |
| # Usage: noise [minutes=59] [band-pass freq center=1786] [wave] | |
| # ^minutes can be any positive integer. | |
| # Command "noise 1" will display peak-level meter. | |
| # | |
| # Dependencies: play (from sox package) |
Here’s how to make animations like this one. It requires intermediate Unix command-line knowledge, to install some tools and to debug if they don’t work. You’ll need these utilities:
curl(or you can translate towget)convertandmontage, part of ImageMagickffmpeg, plus whatever codecsparallel, for iteration that’s nicer than shell for loops orxargs- run everything in
zshfor leading 0s in numerical ranges to work
This file contains hidden or 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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or 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
| -- Delete Spammers. | |
| delete from GDN_User where ((CountDiscussions = 0 and CountComments = 0) or About != '' or Name = '[Deleted User]') and Admin = 0; | |
| delete from GDN_User where CountVisits = 0 and Admin = 0; | |
| delete from GDN_UserRole where UserID not in (select UserID from GDN_User); | |
| -- Cleanup Data. | |
| delete from GDN_Discussion where InsertUserID not in (select UserID from GDN_User); | |
| delete from GDN_Comment where InsertUserID not in (select UserID from GDN_User); | |
| delete from GDN_UserDiscussion where UserID not in (select UserID from GDN_User); | |
| delete from GDN_Session where UserID not in (select UserID from GDN_User); |
This file contains hidden or 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
| set mailserver smtp.gmail.com port 587 username "[email protected]" password "password" using tlsv1 with timeout 30 seconds |
This file contains hidden or 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
| q = { PlayBuf.ar(1, b, -1, 0, 0, 1) * 5 }.play; | |
| q.free; | |
| // | |
| ( | |
| f = { | |
| q = { PlayBuf.ar(1, b, -1, 0, 0, 1) * 5 }.play; | |
| q.free; |