Skip to content

Instantly share code, notes, and snippets.

@scumola
scumola / gist:3995356
Created November 1, 2012 17:51
autocontract section
// Auto contracts allow the plug-in to place contracts randomly onto players when they log in.
"autoContractor": {
// This allows you to disable the feature entirely.
// You can also just remove this entire section from the configuration.
"enabled": true,
// The maximum number of auto contracts allowed to be listed at once.
// When the total number of auto contracts is reached, no new contracts
// will be added until they expire or are completed.
@scumola
scumola / gist:3842292
Created October 5, 2012 20:48
with 1.15.10
[root@qa-bacin-app01 ~]# rvm install 1.9.3 --color=0
Fetching yaml-0.1.4.tar.gz to /usr/local/rvm/archives
Extracting yaml-0.1.4.tar.gz to /usr/local/rvm/src
Prepare yaml in /usr/local/rvm/src/yaml-0.1.4.
Configuring yaml in /usr/local/rvm/src/yaml-0.1.4.
Compiling yaml in /usr/local/rvm/src/yaml-0.1.4.
Installing yaml to /usr/local/rvm/usr
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.9.3-p194, this may take a while depending on your cpu(s)...
ruby-1.9.3-p194 - #downloading ruby-1.9.3-p194, this may take a while depending on your connection...
@scumola
scumola / gist:3842010
Created October 5, 2012 19:58
typescript
Script started on Fri Oct 5 19:32:37 2012
]0;root@qa-bacin-app01:~[root@qa-bacin-app01 ~]# rm -rf $rvm_path/usr ; rvm --debug pkg install libyaml ; rvm --debug reinstall 1.9.3 --disable- binary
found compiler: /usr/bin/gcc
Fetching yaml-0.1.4.tar.gz to /usr/local/rvm/archives
Fetching: https://rvm.io/src/yaml-0.1.4.tar.gz
Fetch command: curl -f -L --create-dirs -C - -o yaml-0.1.4.tar.gz
Archive checksum matched, not downloading
Downloaded archive checksum matched.
Extracting yaml-0.1.4.tar.gz to /usr/local/rvm/src
[2012-10-05 19:33:13] gtar xmzf /usr/local/rvm/archives/yaml-0.1.4.tar.gz -C /usr/local/rvm/src --no-same-owner
@scumola
scumola / gist:3841839
Created October 5, 2012 19:27
ldd /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-linux/psych.so
[root@qa-bacin-app01 ~]# ldd /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-linux/psych.so
libruby.so.1.9 => /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/libruby.so.1.9 (0x00002aaaaacb4000)
libyaml-0.so.2 => not found
libpthread.so.0 => /lib64/libpthread.so.0 (0x00002aaaab126000)
librt.so.1 => /lib64/librt.so.1 (0x00002aaaab342000)
libdl.so.2 => /lib64/libdl.so.2 (0x00002aaaab54b000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00002aaaab74f000)
libm.so.6 => /lib64/libm.so.6 (0x00002aaaab988000)
libc.so.6 => /lib64/libc.so.6 (0x00002aaaabc0b000)
/lib64/ld-linux-x86-64.so.2 (0x0000555555554000)
@scumola
scumola / gist:3841826
Created October 5, 2012 19:25
rvm info system
[root@qa-bacin-app01 ~]# rvm info system
ruby-1.9.3-p194:
system:
uname: "Linux qa-bacin-app01 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 x86_64 x86_64 x86_64 GNU/Linux"
system: "redhat//x86_64"
bash: "/bin/bash => GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu)"
zsh: " => not installed"
[root@qa-bacin-app01 ~]#
@scumola
scumola / config.status
Created October 5, 2012 18:02
All log files in /usr/local/rvm/log/ruby-1.9.3-p194/*
#! /bin/sh
# Generated by configure.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.
debug=false
ac_cs_recheck=false
ac_cs_silent=false
@scumola
scumola / #2
Created October 5, 2012 17:45
rvm on CentOS 5.4 with libyaml error
[root@qa-bacin-app01 ~]# rvm use 1.9.3
Using /usr/local/rvm/gems/ruby-1.9.3-p194
[root@qa-bacin-app01 ~]# gem list
/usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
*** LOCAL GEMS ***
bigdecimal (1.1.0)
@scumola
scumola / messages
Created October 5, 2012 17:32
puppet rvm ruby install
Oct 5 17:21:15 qa-bacin-app01 puppet-agent[25933]: Reopening log files
Oct 5 17:21:15 qa-bacin-app01 puppet-agent[25933]: Starting Puppet client version 2.7.6
Oct 5 17:23:11 qa-bacin-app01 puppet-agent[25933]: (/Stage[main]/Bacin/Rvm_system_ruby[ruby-1.9.3-p194]/ensure) created
Oct 5 17:23:13 qa-bacin-app01 puppet-agent[25933]: (/Stage[main]/Bacin/Rvm_gemset[ruby-1.9.3-p194@bacin]/ensure) created
Oct 5 17:23:14 qa-bacin-app01 puppet-agent[25933]: Could not match /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
Oct 5 17:23:14 qa-bacin-app01 puppet-agent[25933]: Could not match It seems your ruby installation is missing psych (for YAML output).
Oct 5 17:23:14 qa-bacin-app01 puppet-agent[25933]: Could not match To eliminate this warning, please install libyaml and reinstall your ruby.
Oct 5 17:23:18 qa-bacin-app01 puppet-agent[25933]: Could not match /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
Oct 5 17:23:18 qa-bacin-app01
@scumola
scumola / rvm.info.txt
Created October 4, 2012 17:56
rvm info output
system:
system:
uname: "Linux int-bacin-app01 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 x86_64 x86_64 x86_64 GNU/Linux"
system: "redhat//x86_64"
bash: "/bin/bash => GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu)"
zsh: " => not installed"
rvm:
version: "rvm 1.16.8 (stable) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]"
@scumola
scumola / thumb.php
Created July 10, 2012 17:55
php file that will resize images on the fly
<?php
#error_reporting(E_ALL);
#ini_set('display_errors', '1');
$src = $_GET["src"];
$wmax = $_GET["wmax"];
$hmax = $_GET["hmax"];
$quality = $_GET["quality"];
$bgcol = $_GET["bgcol"];