Ever wondered how to get your IP address and MAC address to be used in a Linux shell script? Here’s how: #!/bin/sh # showIPandMAC.sh IP=$(ip addr show wlan0 | awk ‘/inet / {print $2}’ | cut -d/ -f 1) MAC=$(ip link show wlan0 | awk ‘/ether/ {print $2}’) echo “IP Address: $IP” echo “MAC Address: [...]
All posts in category Uncategorized
Getting IP and MAC Address from BASH/Shell Script
Posted by ariandy on March 29, 2012
http://ariandy1.wordpress.com/2012/03/29/getting-ip-and-mac-address-from-bashshell-script/
I don’t like computer, I USE them
… Howard Wolowitz: How about computers? Do you like computer? Bernadette Rostenkowski: I use them, I don’t like them. Howard: … I wonder how many people have said that they love computer.
Posted by ariandy on March 19, 2012
http://ariandy1.wordpress.com/2012/03/19/i-dont-like-computer-i-use-them/
Bistik Burger
1. Daging Burger Bahan: – daging sapi cincang – merica – garam – bawang putih bubuk – bawang bombay – telur Langkah kerja: 1. Cincang halus bawang bombay, lalu campurkan bersama sisa bumbu bersama daging. 2. Kocok telur, lalu campurkan adonan daging. 3. Padatkan bentuk bola, lalu gepengkan kemudian goreng dengan mentega. 2. Kuah Bistik [...]
Posted by ariandy on March 18, 2012
http://ariandy1.wordpress.com/2012/03/18/bistik-burger/
Convert Multiple Images Into PDF in Ubuntu Linux
First of all the jpeg file should be already in the correct print size (e.g. A4), then in terminal do this: $ convert *jpg file.pdf But make sure you have imagemagick installed.
Posted by ariandy on March 8, 2012
http://ariandy1.wordpress.com/2012/03/08/convert-multiple-images-into-pdf/
Biarkan Hidup Mengalir Seperti Air?
Ada satu pepatah yang saya sukai karena terdapat makna tersembunyi darinya: “Biarkan hidup mengalir seperti air.” Yang menarik dari pepatah ini adalah bahwa pepatah ini sering “disalahgunakan” oleh orang-orang untuk menghibur temannya yang lelah dalam mengejar cita-cita. Mungkin maksudnya baik, agar kita tidak terlalu stres dan bisa lebih santai dalam menjalani hidup. Tapi lambat laun, [...]
Posted by ariandy on February 27, 2012
http://ariandy1.wordpress.com/2012/02/27/biarkan-hidup-mengalir-seperti-air/
Adding “Open in Terminal” in Ubuntu’s Nautilus
Simply: $ sudo apt-get install nautilus-open-terminal Then quit nautilus to refresh the settings $ nautilus -q Now if we right-click any folder in Nautilus, there will be a new option “Open in Terminal” which comes very handy.
Posted by ariandy on February 26, 2012
http://ariandy1.wordpress.com/2012/02/26/adding-open-in-terminal-in-ubuntus-nautilus/
Looping Through Files with Spaces and Special Characters in BASH
This is useful for batch processing of files with special characters such as space, ampersand (&), underscore, etc. The example below is to do mass conversion of mp4 files I downloaded from youtube into mp3 files. Instead of giving the command directly, I prefer always to “echo” the command so I can see whether it’s [...]
Posted by ariandy on January 28, 2012
http://ariandy1.wordpress.com/2012/01/28/looping-through-files-with-spaces-and-special-characters-in-bash/
Semur dan Opor Ayam
Ini resep dari Indah Apsari. Semur Ayam Bumbu dan bahan: bawang merah bawang putih kemiri lada pala (semua diatas dihaluskan) bawang mumbai juga boleh kecap ayam Langkah: Kalau tidak ada bawang merah, tumis bawang mumbai, lalu masukkan bumbu halus, aduk. Lalu masukkan ayam, aduk sebentar. Tambahkan kecap, aduk sebentar, lalu masukkan air dan kecilkan api. [...]
Posted by ariandy on June 13, 2011
http://ariandy1.wordpress.com/2011/06/13/semur-ayam/
Using Android as Wireless Mouse
Just a quick post as my personal documentation. Use PRemoteDroid Download the JAVA-based server. Then you can connect to your phone using WiFi if both phone and laptop are on the same network. For connection via bluetooth under Ubuntu, first you have to download/install these files using apt-get: – libbluetooth-dev – bluez Don’t forget to [...]
Posted by ariandy on June 8, 2011
http://ariandy1.wordpress.com/2011/06/08/using-android-as-wireless-mouse/
Tim Ayam
Dikasih tahu Indah Apsari: Ayam mentah, diberi garam, gula, merica agak banyak, jeruk nipis, biarkan. Bawang putih, bawang merah, bawang mumbai, tomat, daun bawang, dipotong-potong. Campurkan bersama ayam, lalu kukus sampai matang. Makasih ya Indah!
Posted by ariandy on May 22, 2011
http://ariandy1.wordpress.com/2011/05/22/tim-ayam/