Skip to content

Instantly share code, notes, and snippets.

View gist:6235380
B=$( cd $(dirname $0) ; pwd -P )
UPSTREAM=$(basename $B/libqtweetlib-upstream)
cd $B
tar -czvf libqtweetlib-upstream.tar.gz "$UPSTREAM" --exclude .git --exclude "*.log"
tar -zxf libqtweetlib-upstream.tar.gz --transform="s/libqtweetlib-upstream/libqtweetlib-0.5/"
tar -cvzf libqtweetlib-0.5.orig.tar.gz libqtweetlib-0.5
View gist:6219626
#!/usr/bin/env python
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), "../.."))
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "nav.django.settings")
from import execute_from_command_line
View gist:6209208
# Install rvm under VCS-ROOT/tools/.rvm and veewee to VCS-ROOT/tools/veewee
# Based on
# :-)
unset rvm_bin_path
unset GEM_HOME
unset IRBRC
View gist:6209051
rockj@pandora:/media/DATA-LINUX/dev/python/nav-mirror/tools$ rvm rvmrc warning
M-bM-^HM-4 rvm rvmrc warning [check|ignore|reset] [<path>|all.rvmrcs|allGemfiles]
M-bM-^HM-4 rvm rvmrc warning [help|list]
Manage warnings for .rvmrc / Gemfile
For additional information please visit RVM's documentation website:
View gist:6209046
rockj@pandora:/media/DATA-LINUX/dev/python/nav-mirror/tools$ pwd
rockj@pandora:/media/DATA-LINUX/dev/python/nav-mirror/tools$ rvm rvmrc warning ignore /media/DATA-LINUX/dev/python/nav-mirror/tools/veewee/.rvmrc
rockj@pandora:/media/DATA-LINUX/dev/python/nav-mirror/tools$ echo $?
View gist:6194788
#!/bin/bash -e
# Builds a basic debian wheezy base image to be used
# with vagrant.
# Based on
# :-)
unset rvm_bin_path
unset GEM_HOME
unset IRBRC
View gist:6194698
unset rvm_bin_path
unset GEM_HOME
unset IRBRC
unset rvm_path
unset rvm_prefix
unset rvm_version
BASE_DIR=$(dirname $0)
BASE_FULL_DIR=$( cd $(dirname $0) ; pwd -P )
View gist:6194690
Install of ruby-1.9.2-p320 - #complete
Cloning into 'veewee'...
remote: Counting objects: 12679, done.
remote: Compressing objects: 100% (4660/4660), done.
remote: Total 12679 (delta 8410), reused 11940 (delta 7818)
Receiving objects: 100% (12679/12679), 3.76 MiB | 1.48 MiB/s, done.
Resolving deltas: 100% (8410/8410), done.
View gist:6193515
norangshol@stud-1201:/local/home/norangshol/nav-mirror$ ovftool --lax /local/home/norangshol/foo.ovf /local/home/norangshol/bar
Opening OVF source: /local/home/norangshol/foo.ovf
Opening VMX target: /local/home/norangshol/bar
- The specified operating system identifier 'Debian_64' (id: 96) is not supported on the selected host. It will be mapped to the following OS identifier: 'Other (32-bit)'.
- Line 25: Unsupported hardware family 'virtualbox-2.2'.
- Line 66: OVF hardware element 'ResourceType' with instance ID '5': No support for the virtual hardware device type '20'.
- Line 104: Duplicate element 'AddressOnParent'.
Writing VMX file: /local/home/norangshol/bar/foo/foo.vmx
Progress: 33%
View gist:6138102
(.env)vagrant@navdev:/vagrant$ ./configure --help
`configure' configures nav 3.14.159265-9-ffe9f9cb2e95 to adapt to many kinds of systems.
Usage: ./configure [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
You can’t perform that action at this time.