Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am richguk on github.
  • I am richguk (https://keybase.io/richguk) on keybase.
  • I have a public key ASCnHaDippwIT_AuU8RbyrX8EFRmURDrx7Dt5OGlsheJhQo

To claim this, I am signing this object:

@RichGuk
RichGuk / autoexec.cfg
Last active September 13, 2015 09:19
//disable help
gameinstructor_enable "0"
cl_autohelp "0"
cl_showhelp "0"
//disable annoying server stuff
cl_disablehtmlmotd "1"
cl_downloadfilter "nosounds"
player_nevershow_communityservermessage "1"
class SanitisedString < Virtus::Attribute::Object
primitive String
def coerce(value)
value.to_s.strip
end
end
attribute :email, SanitisedString
kern.ostype = Darwin
kern.osrelease = 13.0.1
kern.osrevision = 199506
kern.version = Darwin Kernel Version 13.0.1: Thu Sep 19 19:30:57 PDT 2013; root:xnu-2422.50.20~2/RELEASE_X86_64
kern.maxvnodes = 132096
kern.maxproc = 1064
kern.maxfiles = 12288
kern.argmax = 262144
kern.securelevel = 0
kern.hostname = striker.local
/usr/bin/curl -f#LA Homebrew 0.9.5 (Ruby 1.8.7-358; Mac OS X 10.9) https://raw.github.com/cliffrowley/homebrew/patched_qt_ssse3/Library/Formula/qt.rb -o /Library/Caches/Homebrew/Formula/qt.rb --silent
==> Cloning git://gitorious.org/qt/qt.git
git --git-dir /Library/Caches/Homebrew/qt--git/.git status -s
Updating /Library/Caches/Homebrew/qt--git
git config remote.origin.url git://gitorious.org/qt/qt.git
git config remote.origin.fetch +refs/heads/4.8:refs/remotes/origin/4.8
git fetch origin
git checkout -f 4.8
git reset --hard origin/4.8
HEAD is now at ab219c9 Keep web fontdata alive as long as CG uses it
Already on '4.8'
ln: /private/tmp/qt-5lMz/include/QtCore/qconfig.h: File exists
ln: /private/tmp/qt-5lMz/include/Qt/qconfig.h: File exists
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libbootstrap.a(qisciicodec.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libbootstrap.a(qtsciicodec.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libbootstrap.a(qisciicodec.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libbootstrap.a(qtsciicodec.o) has no symbols
access/qnetworkaccessdebugpipebackend_p.h:0: Note: No relevant classes found. No output generated.
image/qimage_ssse3.cpp:91:34: error: use of undeclared identifier '_mm_lddqu_si128'; did you mean '_mm_loadu_si128'?
__m128i firstSrcVector = _mm_lddqu_si128(inVectorPtr);
#!/bin/bash
# Script for placing sudoers.d files with syntax-checking
# Making a temporary file to contain the sudoers-changes to be pre-checked
TMP=$(mktemp -t vagrant_sudoers)
cat /etc/sudoers > $TMP
cat >> $TMP <<EOF
# Allow passwordless startup of Vagrant when using NFS.
Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/su root -c echo '*' >> /etc/exports
[default] Attempting graceful shutdown of VM...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
background: lightyellow;
padding: 1em;
margin: 0 -1em;
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
@RichGuk
RichGuk / gist:2227598
Created March 28, 2012 15:52
VirtualBox commands
VBoxManage createvm --name Win7 --register
# Get a list of oses with VBoxManage list ostypes
VBoxManage modifyvm Win7 --ostype Windows7_64 --memory 1024 --vram 30 --acpi on \
--cpus 2 --ioapic on --boot1 dvd --nic1 bridged --bridgeadapter1 eth1
VBoxManage createhd --filename /VM/Win7/Win7.vdi --size 15360
VBoxManage storagectl Win7 --name "SATA" --add sata --sataportcount 4 --hostiocache on
VBoxManage storagectl Win7 --name "IDE" --add IDE