Skip to content

Instantly share code, notes, and snippets.

View kblomqvist's full-sized avatar

Kim Blomqvist kblomqvist

View GitHub Profile
@kblomqvist
kblomqvist / gist:1676774
Created January 25, 2012 15:25
Where to download ASF1.7
http://www.atmel.com/dyn/resources/prod_documents/AVR-UC3-SoftwareFramework-1.7.0.zip
@kblomqvist
kblomqvist / gist:1612247
Created January 14, 2012 17:49
Configure exim4
sudo dpkg-reconfigure exim4-config
# step 1: select mail sent by smarthost; received via SMTP of fetchmail
# step 2: I left this to default value
# step 3: 127.0.0.1 ; ::1
# step 4: default
# step 5: set blank
# step 6: IMPORTANT! set outgoing SMTP address (or IP). Most likely your ISP's.
# step 7: default
# step 8: default
@kblomqvist
kblomqvist / gist:1574499
Created January 7, 2012 11:28
Fetch/install ZF1 locally
mkdir -p ~/workspace ~/bin
svn co http://framework.zend.com/svn/framework/standard/trunk/ ~/workspace/zf
ln -s ~/workspace/zf/bin/zf.sh ~/bin/zf
@kblomqvist
kblomqvist / gist:1519826
Created December 25, 2011 22:17
Build and install AVR32 Toolchain in Debian 6
su root
aptitude install curl flex bison libgmp3-dev libmpfr-dev autoconf build-essential libncurses5-dev libmpc-dev texinfo
git clone git://github.com/jsnyder/avr32-toolchain.git
cd avr32-toolchain
PREFIX=/opt/avr32tools make install-cross #You may need to run this multiple times, see Issue #8
aptitude install libusb-dev
PREFIX=/opt/avr32tools make install-dfu
cd .. && rm -rf avr32-toolchain
exit #leave root
export PATH=$PATH:/opt/avr32tools/bin
@kblomqvist
kblomqvist / gist:1519708
Created December 25, 2011 20:33
Atmel - Tools Distribution
http://distribute.atmel.no/tools/opensource/
@kblomqvist
kblomqvist / gist:1493392
Created December 18, 2011 13:18
Install PHP5 + Apache2 (with suPHP) + MySQL
su root
aptitude install php5 php5-mysql apache2-mpm-prefork libapache2-mod-suphp mysql-server
a2dismod php5 #disable mod_php
a2enmod rewrite #enable mod_rewrite
nano /etc/suphp/suphp.conf # docroot=${HOME}/sites
nano /etc/php5/cgi/php.ini # expose_php Off
echo -e "[mysqld]\nlocal-infile=0" > /etc/mysql/conf.d/my.cnf
@kblomqvist
kblomqvist / gist:1491107
Created December 17, 2011 19:18
Install Ruby
# MANDATORY! Install a bunch of support software
sudo aptitude install build-essential curl autoconf \
zlib1g zlib1g-dev bison openssl libssl-dev \
libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev
# Install RVM locally
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
# Install Ruby 1.9.3 locally
rvm install 1.9.3
@kblomqvist
kblomqvist / _vimrc
Created December 5, 2011 17:20
Shortcuts for AVR32 development in VIM
map <F7> :w !make<CR>
map <F8> :w !make program start<CR>
@kblomqvist
kblomqvist / .htaccess
Created November 26, 2011 09:00
Nice URLs for legacy .html site
AddCharset UTF-8 .html
Options All -Indexes
ServerSignature Off
ErrorDocument 404 /404.html
RewriteEngine On
RewriteRule $^ index.html [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
@kblomqvist
kblomqvist / gist:1298706
Created October 19, 2011 15:51
Sleeping cat
|\ _,,,---,,_
ZZZzz /,`.-'`' -. ;-;;,_
|,4- ) )-,_. ,\ ( `'-'
'---''(_/--' `-'\_)