For audio out of 3.5mm jack:
sudo amixer cset numid=3 1
If you want it back to auto:
sudo amixer cset numid=3 0
For snes controller Tomee thing working:
For audio out of 3.5mm jack:
sudo amixer cset numid=3 1
If you want it back to auto:
sudo amixer cset numid=3 0
For snes controller Tomee thing working:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
# lib/rich/carrier_wave_sanitizer.rb | |
module Rich | |
class CarrierWaveSanitizer | |
def initialize(ar_object, column, path_string) | |
@ar_object = ar_object | |
@column = column | |
@path_string = path_string | |
end |
Looking for housing in Boulder is a bit of a nightmare. Separating the signal from the noise is a taxing chore, so I decided to come up with a little Craigslist parser to try and isolate only the information I cared about.
I wrote a parser (and accompanying web service to display results and persist records to a database) and found that Craigslist blocks requests coming from AWS servers. I then re-architected the application to have a standalone parser that runs on a Raspberry Pi to get around Craigslist blocking. This task is automated to run every few hours and pull out contextually relevant data or filter out results that I've blacklisted.
This makes looking for housing in Boudler a much more pleasant experience.
(Will consider open sourcing, however Craigslist TOS restrict parsing their data)
#!/bin/bash | |
# As root ( via `sudo su -` ): | |
# Set logrotate to keep only one unit (day or week) of each log | |
for f in /etc/logrotate.d/* /etc/logrotate.conf ; do | |
sed -i 's/rotate [0-9]*$/rotate 1/' $f | |
done | |
apt-get update | |
apt-get install -y git build-essential bison openssl libreadline5 libreadline-dev curl git-core zlib1g zlib1g-dev libssl-dev libreadline-dev libxml2-dev autoconf libxslt-dev xvfb libgl1-mesa-dri xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic libyaml-dev libqt4-dev libxml2-dev libpng-dev libtiff-dev mysql-client mysql-server libmysql-ruby libmysqlclient-dev libpq-dev |
#!/bin/bash | |
# As user jenkins ( via `sudo su - jenkins` ): | |
sudo su -l jenkins | |
# not needed? | |
# ssh-keygen -q -t rsa -N "" -f .ssh/id_rsa | |
# rbenv | |
git clone git://github.com/sstephenson/rbenv.git /opt/rbenv |
Host github.com | |
StrictHostKeyChecking no | |
IdentityFile /var/lib/jenkins/.ssh/github | |
Host * | |
ServerAliveInterval 15 |
group :test do | |
gem 'capybara' | |
gem 'poltergeist' # gem 'capybara-webkit' | |
gem 'database_cleaner' | |
end |