Skip to content

Instantly share code, notes, and snippets.

View shmup's full-sized avatar
🐌

Jared Miller shmup

🐌
View GitHub Profile
@shmup
shmup / torrents.md
Last active April 19, 2025 14:47
transmission blocklist guide

Transmission Blocklist

The Transmission torrent client has an option to set a Blocklist, which helps protect you from getting caught and having the DMCA send a letter/email.

It's as simple as downloading and installing the latest client:

@shmup
shmup / README.md
Created December 18, 2015 14:51 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@shmup
shmup / plugin.pl
Last active September 20, 2015 19:33
boilerplate irssi plugin
#!/usr/bin/env perl -w
use strict;
use vars qw/$VERSION %IRSSI $NAME/;
$| = 1; # flush the output buffer preceding the next output
$NAME = 'changeme';
$VERSION = '0.1';
%IRSSI = (
@jorinvo
jorinvo / challenge.md
Last active November 19, 2024 02:40
This is a little challenge to find out which tools programmers use to get their everyday tasks done quickly.

You got your hands on some data that was leaked from a social network and you want to help the poor people.

Luckily you know a government service to automatically block a list of credit cards.

The service is a little old school though and you have to upload a CSV file in the exact format. The upload fails if the CSV file contains invalid data.

The CSV files should have two columns, Name and Credit Card. Also, it must be named after the following pattern:

YYYYMMDD.csv.

@shmup
shmup / .vimrc
Last active August 29, 2015 14:19
a very minimal .vimrc
set nocompatible " use vim settings instead of vi settings
filetype plugin indent on " enable file type detection and do language-dependent indenting
syntax on " switch syntax highlighting oe it is there
set backspace=indent,eol,start " sane backspace behavior
set smarttab " tab and backspace are smart
set number " line numbers
set autoindent " use indentation of previous line
set showmatch " show matching braces
set tabstop=4 " tab width is 4 spaces
set shiftwidth=4 " indent also with 4 spaces
@shmup
shmup / elements.md
Last active August 29, 2015 14:19 — forked from soveran/elements.md
Excerpts from The Elements of Programming Style. The source of this compilation is unknown.

The Elements of Programming Style

The following rules of programming style are excerpted from the book "The Elements of Programming Style" by Kernighan and Plauger, published by McGraw Hill. Here is quote from the book: "To paraphrase an observation in The Elements of Style by Strunk and White, the rules of programming style, like those of English, are sometimes broken, even by the best writers. When a rule is broken, however, you will usually find in the program some compensating merit, attained at the cost of the violation. Unless you are certain of doing as well, you will probably do best to follow the rules."

@xero
xero / irc.md
Last active April 17, 2025 15:44
irc cheat sheet
@imjasonh
imjasonh / markdown.css
Last active January 3, 2025 20:15
Render Markdown as unrendered Markdown (see http://jsbin.com/huwosomawo)
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@brson
brson / gist:77159b341b1651fc778d
Last active August 29, 2015 14:18
Some crates that work with stable Rust *right now*

The Rust beta only permits use of stable features, and there's an ongoing effort to limit popular crates to the stable subset. The beta will probably lure in new users who want to start building stuff, and this list is intended to be a helpful source for figuring out what libraries they might use.

  • libc - Bindings to common C types and functions. Most any FFI work will need this.
  • log - Basic logging.
  • regex - Regular expressions, and quite fast.
  • rand - Random number generation.
  • time - Basic interface to platform date/time functionality.
  • rustc-serialize - Rust's legacy serialization library, still widely used until serde matures.
  • bitflags - Packs your flags in tight.
  • pkg-config - In
@bcantrill
bcantrill / dtrace-on-rust
Last active May 29, 2023 07:37
DTrace on Rust. This shows running dtrace(1M) on a simple Rust program. Rust is running in a 64-bit LX-branded zone on SmartOS, an illumos derivative. Running stock (alpha) Rust and latest SmartOS.
root@1eec2cd3-2cba-e416-e1b6-845b715b736c:~# uname -a
Linux 1eec2cd3-2cba-e416-e1b6-845b715b736c 3.13.0 BrandZ virtual linux x86_64 x86_64 x86_64 GNU/Linux
root@1eec2cd3-2cba-e416-e1b6-845b715b736c:~# rustc -Vv
rustc 1.0.0-nightly (44a287e6e 2015-01-08 17:03:40 -0800)
binary: rustc
commit-hash: 44a287e6eb22ec3c2a687fc156813577464017f7
commit-date: 2015-01-08 17:03:40 -0800
host: x86_64-unknown-linux-gnu
release: 1.0.0-nightly
root@1eec2cd3-2cba-e416-e1b6-845b715b736c:~# cat hello.rs