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 django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
View gist:6209208
#!/bin/bash
# Install rvm under VCS-ROOT/tools/.rvm and veewee to VCS-ROOT/tools/veewee
#
# Based on http://stacktoheap.com/blog/2013/06/19/building-a-debian-wheezy-vagrant-box-using-veewee/
# :-)
unset rvm_bin_path
unset GEM_HOME
unset IRBRC
unset MY_RUBY_HOME
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:
https://rvm.io/
View gist:6209046
rockj@pandora:/media/DATA-LINUX/dev/python/nav-mirror/tools$ pwd
/media/DATA-LINUX/dev/python/nav-mirror/tools
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 $?
0
View gist:6194788
#!/bin/bash -e
# Builds a basic debian wheezy base image to be used
# with vagrant.
#
# Based on http://stacktoheap.com/blog/2013/06/19/building-a-debian-wheezy-vagrant-box-using-veewee/
# :-)
unset rvm_bin_path
unset GEM_HOME
unset IRBRC
View gist:6194698
unset rvm_bin_path
unset GEM_HOME
unset IRBRC
unset MY_RUBY_HOME
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.
******************************************************************************
* NOTICE *
******************************************************************************
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
Warning:
- 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.