Category Archives: Uncategorized

SBC IoT

Single Board Computer for Internet of Things now are getting more popular since Raspberry Pi.  Now we can see even 64-bit SBC with less than $40 price tag! Following is the list of SBCs I can think of: Brand Model … Continue reading

Posted in Uncategorized | Leave a comment

ISC DHCP Server configuration

Subnet <subnet addr> netmask <subnet mask> { <subnet declarations> } The subnet declarations: Range <first avail addr> <last available addr> Option <opt name> <opt Value> option subnet-mask <mask> option domain-name-servers <comma-Separated dns server addrs> Default-lease-time <time> Max-lease-time <time> Min-lease-time <time>

Posted in Uncategorized | Leave a comment

wxWidgets 3.0

To add the repository, first import the key: sudo apt-key adv –fetch-keys http://repos.codelite.org/CodeLite.asc   Then add the source: sudo tee /etc/apt/sources.list.d/wxwidgets.listdeb http://repos.codelite.org/wx3.0.2/ubuntu/ $(lsb_release -sc) universesudo apt-get update Install wxWidgets modules: sudo apt-get install libwxbase3.0-0-unofficial libwxbase3.0-dbg libwxbase3.0-dev libwxgtk3.0-0-unofficial libwxgtk3.0-dbg wx3.0-doc wx3.0-examples … Continue reading

Posted in Uncategorized | Leave a comment

OpenFrameworks: Another cool Multi-platform Framework for Graphics

Steps to download and build OpenFrameWorks: git clone https://github.com/openframeworks/openFrameworks.git goto the OF root.  This is usually the folder openFrameworks.  Change directory to ./scripts/linux/ubuntu (e.g: cd openFrameworks/scripts/linux/ubuntu) Execute the scripts in the folder as root: sudo ./install_dependencies.sh sudo ./install_codecs.sh Go to … Continue reading

Posted in Uncategorized | 1 Comment

Watching Nabawi-TV via VLC on Raspberry Pi

A new Indonesian da’wah TV has provided a streaming. To watch, install vlc.  Once installed, open the VLC, click “Media”, and then “Open Network Stream”.  Enter: rtsp://wowza60.indostreamserver.com:1935/nabawitv/live

Posted in Uncategorized | Leave a comment

Script to simulate multiple DHCP clients

#!/bin/sh #simulate 255 IPhones requesting DHCP     # Apple OUI = D8:96:95 BASE=”d8:96:95:08:96″ FROM=$1 shift TO=$2   if [ -e $FROM ]; then FROM=1; fi if [ -e $TO ]; then TO=1; fi   for i in `seq $FROM … Continue reading

Posted in Uncategorized | Leave a comment

Daily backup of local git changes

While working on a ticket and not ready to commit, it’s a good idea to backup all of our changes to an archive file. The following script does all that and executed daily by cronjob automatically. create a file, say … Continue reading

Posted in Uncategorized | Leave a comment

Block Access during certain period using EBTABLES

Say, we want to block any packets coming from a device with mac address 00:01:02:03:04:05 (in other words, our router/switch should just silently drop any packets coming from this MAC address) during period of time 00:00 (00:00 AM) to 6:00 … Continue reading

Posted in Uncategorized | Leave a comment

To fix Mute button keyboard shortcut issue on LXDE

Create a script call “amixertoggle” and save it in /usr/local/bin: #!/bin/bash amixer $1 sset Headphone toggleamixer $1 sset Speaker toggleamixer $1 sset PCM toggleamixer $1 sset Master toggle Edit file $HOME/.config/openbox/lxde-rc.xml and replace block that has “XF86AudioMute” to call our … Continue reading

Posted in Uncategorized | Leave a comment

Cheap ATMEL AVR ISP ICE from QinHeng

I bought this small USB stick from eBay.  It supposedly can do JTAG and many other cool stuff for ATMEL microcontrollers. Anyway, here is the detail how to use it: The other end of the stick has dual-line 10-pin connector.  … Continue reading

Posted in Uncategorized | 2 Comments