Update firmware using rpi-update
and software using apt-get dist-upgrade
Disable onboard sound by commenting it out in /etc/modules
In /etc/modprobe.d/alsa-base.conf
comment-out the line
options snd-usb-audio index=-2
$enable_tracing = false | |
#$trace_out = File.open(Rails.root + 'trace.txt', 'w') | |
set_trace_func proc { |event, file, line, id, binding, classname| | |
if $enable_tracing && event == 'call' | |
#$trace_out.puts "#{file}:#{line} #{classname}##{id}" | |
raise "crash me" if caller_locations.length > 500 | |
end | |
} |
# Note that this workflow requires that the default push is to an explicit upstream: | |
git config --global push.default upstream | |
# create a personal fork of the origin repo and make it a 2nd remote: | |
git remote add fork git@github.com:myusername/cool_project.git | |
# start work on your stuff: | |
git checkout -b new-feature | |
# when you get to a point where losing your work would make you very sad: |
public class VelocityTools2View extends VelocityLayoutView { | |
private ViewToolManager toolManager; | |
@Override | |
protected Context createVelocityContext (Map<String, Object> model, | |
HttpServletRequest request, | |
HttpServletResponse response) { | |
ToolContext toolContext = toolManager.createContext(request, response); | |
VelocityContext context = new VelocityContext(toolContext); |
sudo mozyutil activate --email hostname@skillstream.co.uk
# set-up a narrow pipe | |
sudo ipfw pipe 1 config bw 350kbit/s plr 0.05 delay 500ms | |
# assign that pipe to all connections on port 8080 | |
sudo ipfw add pipe 1 dst-port 8080 | |
# delete that pipe | |
sudo ipfw pipe delete 1 | |
# or just flush everything back to its original state |