Bluetooth server config
sdptool add --channel 20 SP
rfcomm watch hci0 20 /dev/rfcomm1
Not today Justin

blake kathryn
Show & Tell

izzy's playlists!
Lint Roller? I Barely Know Her
Three Goblin Art
Claire Keane

if i look back, i am lost

@theartofmadeline
hello vonnie
NASA


Jules of Nature
Cosimo Galluzzi
Misplaced Lens Cap
dirt enthusiast
Stranger Things
noise dept.
wallacepolsom
seen from Peru
seen from United States
seen from United States
seen from United States

seen from United Kingdom
seen from United States
seen from El Salvador
seen from United Kingdom

seen from South Korea

seen from United States

seen from Netherlands
seen from Netherlands
seen from United States
seen from Finland

seen from Türkiye

seen from Türkiye
seen from Türkiye

seen from United Kingdom
seen from United States

seen from Australia
@codetoolbox-blog
Bluetooth server config
sdptool add --channel 20 SP
rfcomm watch hci0 20 /dev/rfcomm1

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Rename files in folders with folder name
rename -v 's:(/[^/]*)/[^/]*$:$1$1_FILENAME:' /media/cortereal/data1/16JUL-tars/*/FILENAME
Python inversion of control
Python code to implement IOC
ETH interface ip lookup
How to find ethernet device with outbound ip: a better version
Tool for downloading coursera courses content
https://github.com/dgorissen/coursera-dl
install:
sudo pip install coursera-dl
usage: (example for startup engineering)
coursera-dl -u email -p password -d path/to/save startup-001

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Get local ip address of internet enabled interface using python
This bit of code leverages on a well-known and highly available server to determine if there is internet connectivity (requires error handling, but you get the gist), and what the local ip address for the internet enabled network interface is. Does not work is there is a proxy.
reference:Â http://stackoverflow.com/questions/166506/finding-local-ip-addresses-using-pythons-stdlib
Configure port forwarding using UPNP
Java CLI tool to get/set/delete port mappings from a compatible uPNP router
http://upnp-portmapper.sourceforge.net/
Example usage to add port 4444 to local ip
java -jar PortMapper-1.9.5.jar -a 192.168.1.94 4444 4444 TCP
Configuring mutt for gmail account
Quick and easy overview of how to configure mutt to work with a gmail account. Shouldn't be too different with any other SMTP server ...
http://lifehacker.com/5574557/how-to-use-the-fast-and-powerful-mutt-email-client-with-gmail
Sending an email through the command line
This has the added benefit that doesn't use interactive mode, and as such can be used programmatically quite easily.
echo | mutt [email protected] -a alarm.m4vÂ
Converting AVI to X264 using handbrake cli
Pretty useful stuff:
HandBrakeCLI -i alarm.avi -o alarm.m4v -e x264 -q 30 -r 15
This encodes the video alarm.avi to a file called alarm.m4v using x264 as the encoder, 30 as the constant quality rate and 15 as the framerate. Huzzah.

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Adding SVN revision macro to C pre processor
This is pretty handy, specially if you want to have something like a -v option for your application's launcher. There are 2 steps involved in doing this, the first:
Where we do a svn propset to enable the $Revision$ macro
And then in our source code, something like:
Where we use the macro $Revision$ to add the svn commit number to our version string
Generating barcodes in ubuntu
Yesterday I had to find a way to generate 128A type barcodes for printing. Fortunately, ubuntu already has in its repositories a command line application to solve this problem, aptly named "barcode".
Man page for barcode
example usage:
This generates a barcode with the string "0401001702201100", using 128A encoding, and 50x20mm ratio. The output is stored in a pdf file named test.pdf
Python: Simple interaction with cdrecord
This code snippet implements basic interfacing with the unix cdrecord application. It only receives a file or folder path and writes a single-session cd. I only implemented basic failure detection by testing the return value of the subprocess, more complex error detection can be acomplished by searching for patterns in the cdrecord output log.
Also, I did not implement any facilities for measuring the burn process progress, but this can be done by using re.compile patterns and searching the cdrecord output for the appropriate string.
For a good source code reference (albeit outdated by now) check the eroaster project:
http://freshmeat.net/projects/ecliptroaster/
Python: Generate md5 hash for files in a folder
One of the problems I had recently was that I needed to create a hash for an arbitrary number of files contained in a folder. After googling for 5 seconds I found a pretty good reference here:
http://stackoverflow.com/questions/1131220/get-md5-hash-of-a-files-without-open-it-in-python
And adapted the code to work for a folder like so: