Skip to content

Instantly share code, notes, and snippets.

View rsrchboy's full-sized avatar

Chris Weyl rsrchboy

View GitHub Profile
@rsrchboy
rsrchboy / etc-sudoers.d-docker
Created February 20, 2014 23:57
sudoers config snippet to enable password-less sudo for docker commands only
rsrchboy ALL=NOPASSWD: /usr/bin/docker
%docker ALL=NOPASSWD: /usr/bin/docker
#!/bin/sh
# this script sets some parameters to get a useable configuration
# these changes are not persistent, you may want to include this in your autostart
# 1 finger = left click, 2 finger = right click, 3 finger = middle click
synclient TapButton2=3
synclient TapButton3=2
synclient ClickFinger2=3
synclient ClickFinger3=2

Very simple. Just create a README.md or README.markdown for your project (if you haven't already) and add code like the following:

[![Fund me on Gittip](http://www.gittip.com/assets/7.0.8/logo.png)](https://www.gittip.com/<your account here>/)

Gittip needs a proper button for linking. The small logo file was the best I could find. It will look something like this:

Fund me on Gittip

@rsrchboy
rsrchboy / apt-get_install.log
Last active August 29, 2015 14:01
grub-imageboot for thinkpad bios upgrades
tychon# apt-get install grub-imageboot
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
grub-imageboot
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/4,424 B of archives.
After this operation, 43.0 kB of additional disk space will be used.
[master 57ec2a2] saving uncommitted changes in /etc prior to apt run
@rsrchboy
rsrchboy / smartcow.txt
Created August 4, 2014 17:24
smart cow!
____________________________________________________________________________
/ Care at the Beginning \
| |
| What lies still is easy to grasp; What lies far off is easy to anticipate; |
| What is brittle is easy to shatter; What is small is easy to disperse. Yet |
| a tree broader than a man can embrace is born of a tiny shoot; A dam |
| greater than a river can overflow starts with a clod of earth; A journey |
| of a thousand miles begins at the spot under one's feet. Therefore deal |
| with things before they happen; Create order before there is confusion. |
| |
@rsrchboy
rsrchboy / gist:cb0230e8023a262f1cd4
Created November 6, 2014 17:15
smart cow virtues
____________________________________________________________________________
/ Unimportance \
| |
| All the world says, "I am important; I am separate from all the world. I |
| am important because I am separate, Were I the same, I could never be |
| important." Yet here are three treasures That I cherish and commend to |
| you: The first is compassion, By which one finds courage. The second is |
| restraint, By which one finds strength. And the third is unimportance, By |
| which one finds influence. Those who are fearless, but without compassion, |
| Powerful, but without restraint, Or influential, yet important, Cannot |
@rsrchboy
rsrchboy / .gitattributes
Last active August 29, 2015 14:12
text-diff your 02packages.txt.gz via gut automagically
# make git recognize *.txt.gz files as compressed text, such that git knows to
# use the "gz" diff driver on them
*.txt.gz diff=gz
#!/usr/bin/env perl
#
# Chris Weyl <cweyl@alumni.drew.edu>
use strict;
use warnings;
use lib '/usr/share/bugzilla';
use Plack::App::CGIBin;
@rsrchboy
rsrchboy / gist:284409
Created January 23, 2010 03:34
RPM macros to generate a -tests subpackage automagically
#####################################################################
# Perl tests subpackage macros...
%perl_version %(eval "`%{__perl} -V:version`"; echo $version)
%perl_testdir %{_libexecdir}/perl5-tests
%cpan_dist_name %(eval echo %{name} | %{__sed} -e 's/^perl-//')
# easily mark something as required by -tests and BR to the main package
%tests_req() %{expand:\

SYNOPSIS

package Foo;
use Moose;

# mark overloads as methods and wipe other non-methods
use MooseX::MarkAsMethods autoclean => 1;

# define overloads, etc as normal