Permalink
Switch branches/tags
Nothing to show
Commits on Sep 4, 2015
  1. gh-clone: don't pollute the environment as much

    All environment variables that surive after the script (if sourced)
    are now prefixed with GH_CLONE_. All derived variables are unset
    before leaving.
    committed Sep 4, 2015
  2. gh-clone: support giving url instead of user/repo pair

     $ gh-clone git@github.com:olof/hacks.git
    committed Sep 4, 2015
  3. gh-clone: github clone script

    This script clones a git repository from github, in a path decided
    based on the github account name. The base directory is specified
    in the $REPO_BASE environment variable, which defaults to
    $HOME/src/github.
    
    By default, the script will clone using ssh, but you can override
    that by setting the $GH_CLONE_URL_PREFIX, e.g.:
       GH_CLONE_URL_PREFIX=git://github.com/
    Or...
       GH_CLONE_URL_PREFIX=https://github.com/
    This same mechanism can also be used for github enterprise installs.
    
    Final note: This script is designed so that it can be sourced, in
    which case you will change directory to the repository when done.
    To avoid the awkard . gh-clone syntax, you can alias this in your
    ~/.${SHELL}rc. For instance I do: alias gh='. gh-clone'
    
    (I would avoid the temption of calling it ghc, since that's a haskell
    compiler. Just fyi :).)
    committed Sep 4, 2015
  4. locate_pm: find real path of perl module name

    $ locate_pm Perl::Critic
    /usr/share/perl5/Perl/Critic.pm
    /usr/share/perl5/Perl/Critic/
    committed Sep 4, 2015
Commits on Jul 26, 2014
  1. japh.re: I found a japh, i wrote in 2012

    I still find i kind of cute. :-)
    committed Jul 26, 2014
Commits on Jul 25, 2014
  1. rpn.pl: add a simple rpn calculator

    fun stuff..... Found it laying around :).
    committed Jul 25, 2014
Commits on May 31, 2014
  1. add .gitignore

    committed May 31, 2014
Commits on Apr 6, 2014
  1. soundcloud: some sort of filetype detection

    Using the GNU file --mime flag, we try a little bit to detect filetype, instead
    of blindly assuming mp3. With this change, it can also detect wav files.
    committed Apr 6, 2014
Commits on Jan 6, 2014
Commits on Dec 9, 2013
  1. dfg: prints filesystem space on one line

    dfg (disk free gigabytes) prints utilization information about
    specified filesystem (or cwd) in the format <used>/<avail>G.
    committed Dec 9, 2013
  2. pinggw: ping default gateway

    Useful when connected to flaky wireless networks.
    committed Dec 9, 2013
  3. color-grep: move regexp compilation outside of loop

    The compilation of the regexp is only necessary to do once. This
    change saves seconds when reading moderately large files (100k
    lines). (What was I thinking when I wrote that initially? Nobody
    knows.)
    committed Dec 9, 2013
  4. xml-simple2yaml: trivial converter from xml to yaml

    YAML is a much simpler format for a human to read, compared to
    any form of XML.
    committed Dec 9, 2013
  5. json2yaml: trivial converter from json to yaml

    YAML is a much simpler format for a human to read, compared to
    non-prettified JSON.
    committed Dec 9, 2013
Commits on Aug 16, 2013
  1. Add git wrapper, allowing for overriding git sub cmds

    Signed-off-by: Olof Johansson <olof@ethup.se>
    committed Aug 16, 2013
Commits on Aug 2, 2013
  1. shell-redirector: decide what shell provides /bin/sh

    This hack makes the provider of /bin/sh overrideable via an environment
    variable (INVOKE_SHELL). This can be useful for instance, when migrating
    from bash to dash as default shell provider.
    committed Aug 2, 2013
Commits on Jul 31, 2013
  1. color-grep: fix typo in pod

    committed Jul 31, 2013
  2. color-grep: colorize matching strings

    This is a grep like utility that doesn't silence a non-matching
    lines, but only colorize the matching strings.
    committed Jul 31, 2013
Commits on Apr 22, 2013
Commits on Apr 9, 2013
Commits on Feb 12, 2013
  1. quvi-mplayer: play youtube videos with mplayer

    This is a simple shellscript wrapper around quvi.
    committed Feb 12, 2013
Commits on Dec 6, 2012
Commits on Nov 18, 2012
  1. Don't output anything unless new items found

    Adds --verbose flag to generate more output when needed.
    committed Nov 18, 2012
  2. Fix syntax error

    committed Nov 18, 2012