Skip to content

Instantly share code, notes, and snippets.

View dtolj's full-sized avatar

Dejan Tolj dtolj

  • Toronto, Canada
View GitHub Profile
@dtolj
dtolj / vlc_demo.sh
Created November 15, 2011 16:54
vlc mosaic demo
#!/bin/sh
########################################################################
# VLC demo command line generator
# $Id$
########################################################################
#TODO: change on Max OS X
if test ".`uname -s`" = ".Darwin"; then
VLC="./VLC.app/Contents/MacOS/VLC --quiet --color "
# Automatically generated RHN Proxy Server configuration file.
#Tobe used by proxy server only.
# -------------------------------------------------------------------------
# SSL CA certificate location
proxy.ca_chain = /usr/share/rhn/RHNS-CA-CERT
# Corporate HTTP proxy, format: corp_gateway.example.com:8080
proxy.http_proxy = http://proxy1.srv.local:3128
@dtolj
dtolj / gist:1339536
Created November 4, 2011 15:12
rhn proxy
CLIENT using proxy:
$ yum -v repolist
Loading "rhnplugin" plugin
Loading "security" plugin
Config time: 0.113
There was an error communicating with RHN.
RHN Satellite or RHN Classic support will be disabled.
Error communicating with server. The message was:
@dtolj
dtolj / gist:1334010
Created November 2, 2011 15:55
/home/git/.gitosis.conf
[gitosis]
[group gitosis-admin]
writable = gitosis-admin
members = notroot@git.otn.local
@dtolj
dtolj / gist:1334007
Created November 2, 2011 15:55
gitosis.yml
admin_uri: git@localhost:gitosis-admin.git
base_path: /home/git/repositories/
host: localhost
git_user: git
@dtolj
dtolj / gist:1334002
Created November 2, 2011 15:53
nginx.conf
user notroot staff;
worker_processes 1;
error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
[dtolj@MRKMCCWEB03]/usr/local/rvm/src/rvm $ sudo ./install
RVM: Shell scripts enabling management of multiple ruby environments.
RTFM: https://rvm.beginrescueend.com/
HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)
Upgrading the RVM installation in /usr/local/rvm/cp: omitting directory `patchsets/ruby'
cp: omitting directory `patchsets/ruby/1.8.6'
cp: omitting directory `patchsets/ree'
@dtolj
dtolj / rvm
Created October 28, 2011 13:33
git pull --rebase origin
remote: Counting objects: 7756, done.
remote: Compressing objects: 100% (2380/2380), done.
remote: Total 7605 (delta 5239), reused 7342 (delta 4990)
Receiving objects: 100% (7605/7605), 1.30 MiB | 1.80 MiB/s, done.
Resolving deltas: 100% (5239/5239), completed with 58 local objects.
From http://github.com/wayneeseguin/rvm
5ba2dad..850a8b5 master -> origin/master
* [new branch] shoes -> origin/shoes
From http://github.com/wayneeseguin/rvm
* [new tag] 1.1.10 -> 1.1.10
@dtolj
dtolj / gist:1321231
Created October 27, 2011 23:48
RVM-install
+ shopt -s extglob
+ PS4='+ ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > '
+ : 5 > export PS4
+ : 6 > set -o errtrace
+ : 7 > set -o errexit
+ : 169 > [[ --trace =~ --trace ]]
+ : 171 > set -o xtrace
+ : 172 > export rvm_trace_flag=1
+ : 172 > rvm_trace_flag=1
+ : 177 > true 1 0 0 0 HOME=/home/dtolj
@dtolj
dtolj / gist:1309989
Created October 24, 2011 20:03
linecache19
Installing linecache19 (0.5.12) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.