Skip to content

Instantly share code, notes, and snippets.

retab!
" ------------------------------------------------------------------------------
" automatically turn tabs to spaces before saving, then back
" ------------------------------------------------------------------------------
au BufWritePre * :set expandtab
au BufWritePre * :retab!
au BufWritePost * :set noexpandtab!
au BufWritePost * :retab!
#!/bin/sh
if [ -x $(which openbox) ]
then
if $(pidof dwm >/dev/null)
then
kill $(pidof dwm)
fi
if $(pidof openbox >/dev/null)
then
kill $(pidof openbox)
function! JumpToString(string)
for l:buffer_number in range(1,bufnr("$"))
if buflisted(l:buffer_number)
if join(getbufline(l:buffer_number,1,"$")) =~ a:string
exec "b . " . l:buffer_number
endif
endif
endfor
endfunction
# download the software with "wget"
wget http://arduino.googlecode.com/files/arduino-1.0-linux.tgz
# the software comes compressed, decompress it
tar xvf arduino-1.0-linux.tgz
# move into the directory it creates
cd arduino-1.0
# run the IDE
./arduino
@paradigm
paradigm / gist:3305106
Created August 9, 2012 15:25
bedrock /etc/fstab example
# Bedrock Linux 1.0alpha2 /etc/fstab
#
# Things which should be mounted at boot go here. Additionally, things which
# should be mounted to share between clients should be placed here.
#
# It is recommended to make the core Bedrock accessible as a client as well, so
# that it can be accessed from within other clients. This is the only item
# described herein which should be mounted at boot. To do so, uncomment the
# following line (optionally changing /var/chroot/bedrock to where you would
# like to place the bedrock client).
@paradigm
paradigm / gist:3305109
Created August 9, 2012 15:26
bedrock /opt/bedrock/etc/brclients.conf example
# Bedrock Linux 1.0alpha2 /opt/bedrock/etc/brclients.conf
#
# Client-specific configuration items go here.
#
# To begin setting configuration options for a client, place the name you would
# like to give the client in square brackets. For example:
#[squeeze]
# Each non-commented non-black line following will be a configuration option
# for bedrock, until the next [client name] is found. Every client should have
# a line specifying the path to where the client is stored on disk. For example:
$ brl echo $( tar xf busybox-1.20.2.tar.bz2 ; echo $? )
brl: running commands in bedrock
0
brl: running commands in squeeze
0
brl: running commands in sid
0
brl: running commands in arch
0
brl: running commands in precise
@paradigm
paradigm / gist:3319799
Created August 11, 2012 01:30
full bedrock linux logo
__ __ __
\ \_________\ \____________\ \___
\ _ \ _\ _ \ _\ __ \ __\ /
\___/\__/\__/ \_\ \___/\__/\_\_\
\ \ _ ________ __
\ \( )/ \ \ \ \ /
\_\\_\_\_\__/_\_\
vs
@paradigm
paradigm / gist:3364529
Created August 15, 2012 23:06
paradigm's /etc/fstab for Bedrock Linux 1.0alpha2 Momo as of (2012-08-15)
# Bedrock Linux 1.0alpha2 /etc/fstab
#
# Things which should be mounted at boot go here. Additionally, things which
# should be mounted to share between clients should be placed here.
#
# It is recommended to make the core Bedrock accessible as a client as well, so
# that it can be accessed from within other clients. This is the only item
# described herein which should be mounted at boot. To do so, uncomment the
# following line (optionally changing /var/chroot/bedrock to where you would
# like to place the bedrock client).
@paradigm
paradigm / gist:3364549
Created August 15, 2012 23:08
paradigm's brclients.conf for Bedrock Linux 1.0alpha2 "Momo" as of 2012-08-15
# Bedrock Linux 1.0alpha2 /opt/bedrock/etc/brclients.conf
#
# Client-specific configuration items go here.
#
# To begin setting configuration options for a client, place the name you would
# like to give the client in square brackets. For example:
#[squeeze]
# Each non-commented non-black line following will be a configuration option
# for bedrock, until the next [client name] is found. Every client should have
# a line specifying the path to where the client is stored on disk. For example: