Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name collapse trello columns
// @namespace http://tampermonkey.net/
// @version 0.10
// @updateUrl https://gist.github.com/omega/4b7a4e9242c0340348b5271f7fecc5be/raw/trello-collapse.user.js
// @description try to take over the world!
// @author You
// @match https://trello.com/b/*
// @grant GM_setValue
// @grant GM_getValue
@omega
omega / brew-cask-outdated
Last active December 24, 2016 09:46
A script that will attempt to show you which of your brew casks are outdated compared to current versions
#!/bin/bash
vercomp () {
if [[ $1 == $2 ]]
then
return 0
fi
local IFS=.
local i ver1=($1) ver2=($2)
# fill empty fields in ver1 with zeros
@omega
omega / keybase.md
Created September 24, 2014 02:42
keybase.md

Keybase proof

I hereby claim:

  • I am omega on github.
  • I am omega (https://keybase.io/omega) on keybase.
  • I have a public key whose fingerprint is 3FDF 2196 AB86 34E9 BBB9 0A05 C35E A2C4 5AC7 9998

To claim this, I am signing this object:

@omega
omega / userstyle.css
Created September 23, 2014 10:44
Slack userstyle
/* your source here */
/*
.loading #col_channels,
.loading #col_channels_bg,
.loading div#team_menu,
.loading div#user_menu {
width: 0 !important;
}
#col_channels, #col_channels_bg,div#team_menu, div#user_menu {
@omega
omega / gist:8294263
Created January 7, 2014 03:29
Make it harder to push to a remote
# Add a new remote, called safe
$ git remote add -f safe `git remote -v | grep origin | grep push | awk '{ print $2 }'`
# Set the push url of this remote to nowhere
$ git remote set-url --push safe nowhere
# Set the upstream branch for our branch to safe origin
$ git branch --set-upstream-to=safe/master
# lets try a push
$ git push
fatal: 'nowhere' does not appear to be a git repository
diff --git a/lib/Test/Harness.pm b/lib/Test/Harness.pm
index 9e63793..0d041c7 100644
--- a/lib/Test/Harness.pm
+++ b/lib/Test/Harness.pm
@@ -246,6 +246,11 @@ sub _new_harness {
elsif ( $opt eq 'c' ) {
$args->{color} = 1;
}
+ elsif ( $opt =~ m/^f(.*)$/ ) {
+ my $fmt = $1;
@omega
omega / stylish_rule.css
Created September 22, 2011 07:58
Disable the ticker on new facebook
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("facebook.com") {
#pagelet_rhc_ticker {
display: none;
}
}
@omega
omega / server.js
Created July 7, 2011 11:59 — forked from mixonic/server.js
Node.js + Socket.io + Bash. A collaborative terminal for your browser - updated for socket.io 0.7
//
// This server will start a bash shell and expose it
// over socket.io to a browser. See ./term.html for the
// client side.
//
// You should probably:
//
// npm install socket.io
// curl -O https://github.com/LearnBoost/Socket.IO/raw/master/socket.io.min.js
//
@omega
omega / my results
Created February 24, 2011 07:30 — forked from anonymous/gist:841882
$ cat /tmp/foo.t
use Test::More;
plan tests => 1;
my $f = 1;
note(sprintf("Testing: %s", $f++));
diag(sprintf("Testing: %s", $f++));
set-option -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix
bind-key \; command-prompt
bind a send-prefix # to make C-a a go to start of line
set-option -g status-bg red
set-option -g status-fg white
set-window-option -g utf8 on