Skip to content

Instantly share code, notes, and snippets.

View wfarr's full-sized avatar
:shipit:
shipping

Will Farrington wfarr

:shipit:
shipping
  • Salesforce
  • Atlanta, GA
View GitHub Profile
--- common.h 2011-05-18 23:21:19.773231476 +0200
+++ common.h.fixed 2011-05-18 23:21:06.313479282 +0200
@@ -817,11 +817,11 @@
bool endsWith(const char *s, size_t l) const;
/* TODO: Evil casting... */
- char* find(char c) const
+ const char* find(char c) const
{ return strchr(mArray.begin(), c); }
- char* findr(char c) const
READLINE="-lreadline"
CURSES="-lncurses"
EXCEPTIONS="-fno-exceptions"
INSTALL="y"
DEST="/usr/local/simplc"
BINDIR="/usr/local/bin"
QTLIB=""
QTLIBDIR=""
QTINC=""
QTINCDIR=""
vagrant@lucid64:/tmp/simpl-src-gt16$ make
build/build.sh compile bin/core/DONE
mkdir: cannot create directory `bin/core': Permission denied
(bin/core/DONE) Working on common.cpp
In file included from common.cpp:30:
common.h: In member function 'char* String::find(char) const':
common.h:821: error: invalid conversion from 'const char*' to 'char*'
common.h: In member function 'char* String::findr(char) const':
common.h:823: error: invalid conversion from 'const char*' to 'char*'
common.h: In member function 'char* String::find(const char*) const':
ree-1.8.7-2011.03@umpire in umpire/ on i-herd-u-liek-chef
› knife ec2 server create -I ami-3202f25b -f t1.micro -S umpire -x ubuntu --region us-east-1
Instance ID: i-a9fd03c7
Flavor: t1.micro
Image: ami-3202f25b
Availability Zone: us-east-1a
Security Groups: default
SSH Key: umpire
Waiting for server...............
ree-1.8.7-2011.03@vagrant-test in test/
› bundle exec vagrant reload
[default] Fixed port collision 'ssh'. Now on port 2200.
[default] Provisioning enabled with shadow_puppet...
[default] Attempting graceful shutdown of linux...
[default] Running any VM customizations...
[default] Clearing any previously set forwarded ports...
[default] Forwarding ports...
[default] -- ssh: 22 => 2200 (adapter 1)
[default] Cleaning previously set shared folders...
ree-1.8.7-2011.03@vagrant-test in test/
› bundle exec vagrant reload
[default] Fixed port collision 'ssh'. Now on port 2200.
[default] Provisioning enabled with shadow_puppet...
[default] Attempting graceful shutdown of linux...
[default] Running any VM customizations...
[default] Clearing any previously set forwarded ports...
[default] Forwarding ports...
[default] -- ssh: 22 => 2200 (adapter 1)
[default] Cleaning previously set shared folders...
ree-1.8.7-2011.03 in git/ on master
› vagrant up
[default] Provisioning enabled with chef_solo...
[default] Importing base box 'lucid32'...
[default] Matching MAC address for NAT networking...
[default] The guest additions on this VM do not match the install version of
VirtualBox! This may cause things such as forwarded ports, shared
folders, and more to not work properly. If any of those things fail on
this machine, please update the guest additions and repackage the
box.
@wfarr
wfarr / 1.rb
Created April 28, 2011 19:07
multiple files
# this is a multi-file gist
@wfarr
wfarr / caveatPatchor.js
Created April 28, 2011 19:01
add gists to your propane
/*
As of version 1.1.2, Propane will load and execute the contents of
~Library/Application Support/Propane/unsupported/caveatPatchor.js
immediately following the execution of its own enhancer.js file.
You can use this mechanism to add your own customizations to Campfire
in Propane.
Below you'll find two customization examples.
tell application "Terminal"
try
do shell script "say 'hamburgers'"
on error
do shell script "echo 'Uh-Oh!'"
end try
end tell