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 / 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 / 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 / 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
package EasyCMS2::Model::Base;
use strict;
use base 'Catalyst::Model::DBIC::Schema';
use EasyCMS2::Schema::Base;
__PACKAGE__->config(
schema_class => 'EasyCMS2::Schema::Base',
);
#!/usr/bin/perl
use Chart::Clicker;
use Chart::Clicker::Data::Series::Size;
use Chart::Clicker::Data::DataSet;
use Geometry::Primitive::Circle;
use Chart::Clicker::Renderer::Bubble;
my $ticks = { labels => ["omega", "nilsi", "gram"], "values" => [1, 3, 2] };