Thursday, January 28, 2016

Google Product Forums

https://productforums.google.com/forum/#!home
Very useful if you have questions about Google products

Friday, January 15, 2016

javascript beautify

Cool tool to beautify js code:
js-beautify
You will need Python and pip installed. Then do:
pip install jsbeautifier
Maybe you need to start pip with sudo.
Then you can do:
js-beautify file.js
without parameter you will get help.


Tuesday, October 20, 2015

Upload sketches to an Arduino Yun via command line

  1. compile sketch via IDE, find the hex file belonging to that compile in IDE log 
  2. copy that to your Yun (SCP, FTP, WinSCP, ....)
  3. ssh to your Yun and do:
 /usr/bin/merge-sketch-with-bootloader.lua  /tmp/mysketch.cpp.hex
/usr/bin/run-avrdude    /tmp/mysketch.cpp.hex

Now you have your sketch on your Yun.
You do not have to be in the same LAN, you can update via the Internet as long as you have access to you command line.

Tuesday, October 14, 2014

The Arduino Yun

The coolest device I have seen for a long time. The Arduino Yun.
Versatile as the Swiss Army knife, around 70 to 79 Euro to buy, works like an Arduino Leonardo combined with a Linux system on one PCB. Wifi and Ethernet on board. Works with nearly all Arduino shields. That is just amazing and I am happy to own one.


Friday, January 22, 2010

How I backup my homedirectory

I use rsync in a bash script to backup my homedirectory

#!/bin/bash
userdir=`whoami`
computer=`hostname`
echo "backup User "$userdir "on Host" $computer "to net_storage"
rsync -av --exclude-from=.rsync/exclude --delete --delete-after --delete-excluded $userdir@net_storage:$userdir/rsync/$computer/ 

where:
userdir is the user of the folder to backup
computer is the host to be in the backup

You can have a file "exclude" where you can define files or folders not to be in the backup.
I exclude ISO files because they generate a lot of traffic and I also exclude cache files of browsers.

My backup System is a small NAS filer (mgb 111) with an extra firmware which is capable of ssh.


Monday, November 26, 2007

dem Bund wirds zu bunt

http://www.heise.de/open/news/meldung/99420