Skip to content

Instantly share code, notes, and snippets.

View nogweii's full-sized avatar
🍀

Nogweii nogweii

🍀
View GitHub Profile
@nogweii
nogweii / README.md
Created February 17, 2010 23:23
Add your ssh keys into memory only when you need to.
dmenu-4.0-2 0.01
luafilesystem-1.5.0-1 0.01
mime-types-1.0-3 0.01
pacpan-2010.04.11.1-1 0.01
pm-quirks-0.20100316-1 0.01
which-2.20-3 0.01
perl-common-sense-3.2-1 0.02
pkgtools-18-1 0.02
kdenetwork-kdnssd-4.4.2-2 0.03
pm-utils-1.3.0-2 0.03
@nogweii
nogweii / github_news_feed_minimizer.user.js
Created April 23, 2010 02:04
An attempt at making the news feed better, cleaner, and less noisy.
// ==UserScript==
// @name Github news feed minimizer
// @namespace evaryont.me
// @include https://github.com/
// @include https://github.com/dashboard/yours
// @datecreated 2010-04-22
// @version 0.1
// @author Colin 'Evaryont' Shea
// @license MIT
// @description Do many little things, but overall, make the whole page a lot better.
@nogweii
nogweii / PKGBUILD.sh
Created May 19, 2010 00:03
PKGBUILD for jabberd2
# Maintainer: Gaetan Bisson <[email protected]>
# Edited by Colin Shea <[email protected]>
# ---
# Remember to remove the `.sh' from the filename. it's there to help Gist
# syntax highlight this whole shebang.
#
# See my blog post for more info: http://mindtables.heroku.com/2010/05/18/compiling-jabberd-2-on-arch/
pkgname=jabberd2
pkgver=2.2.9
@nogweii
nogweii / imgfave.rb
Created July 10, 2010 22:19
Simple CLI client for imgfave.
#!/usr/bin/ruby
# A simple CLI client to save images to imgfave.com
# It's kind of like an undocumented API but that doesn't matter so much, right?
# They've hit inertia beyond what they can easily manage. This so-called 'API'
# will be available for a good while anyways.
require 'net/http'
# 3 parameters passed.
@nogweii
nogweii / .gitconfig
Created September 14, 2011 06:52
Alternative to installing hub for git, kinda.
[url "ssh://[email protected]/"]
; What to substitute when pushing
pushInsteadOf = gh:
; What to substitute when pulling/cloning
insteadOf = gh:
; Inspired by KDE's config.
@nogweii
nogweii / sysctl.changed.conf
Created February 22, 2012 20:30
A massive collection of various sysctl files, designed for drop-in CCDC fixing
fs.file-max = 65535
fs.inode-max = 32768
fs.suid_dumpable = 0
kernel.core_uses_pid = 1
kernel.exec-shield = 1
kernel.maps_protect = 1
kernel.msgmax = 65536
kernel.msgmnb = 65536
kernel.panic = 30
kernel.panic_on_oops = 30
@nogweii
nogweii / wget_measure_speed.sh
Created May 13, 2012 17:12
A script that will measure how fast, over time, a file was downloaded (CSV)
wget http://URL/BIG_FILE -O/dev/null 2>&1 1>/dev/null | awk '/^ / { speed=$8 } /^\d/ { speed = $7 } { if (NR % 500 == 0) { print "\n" } if (index($speed, "M")) { print substr($speed, 1, index($speed, "M")-1)*1024 } else if (index($speed, "K")) { print substr($speed, 1, index($speed, "K")-1) } else { print 0 } }' | tr '\n' ',' | sed "s/,,/\n/g;s/^,//" > speeds.csv
@nogweii
nogweii / color_scheme.yaml
Last active February 20, 2023 17:54
The current color scheme I use in my gnome terminal, plus accompanying ruby script which generated it
---
:blue: "#3465A4"
:cyan: "#06989A"
:green: "#4E9A06"
:bright_red: "#EF2929"
:bright_yellow: "#FCE94F"
:bright_purple: "#AD7FA8"
:bright_white: "#EEEEEC"
:red: "#CC0000"
:yellow: "#C4A000"
@nogweii
nogweii / truthy.pp
Created January 10, 2013 17:00
A few tests of puppet's truthy behaviour
$ puppet apply truthy.pp
"0" is truthy!
/Stage[main]//Notify["0" is truthy!]/message: defined 'message' as '"0" is truthy!'
1 is truthy!
/Stage[main]//Notify[1 is truthy!]/message: defined 'message' as '1 is truthy!'
0 is truthy!
/Stage[main]//Notify[0 is truthy!]/message: defined 'message' as '0 is truthy!'
Finished catalog run in 0.17 seconds