Tuesday, April 26, 2016

My favorite tmux keybinds

Ctrl + b is the default keybind before you could issue any other command.


Ctrl + b (hold) + " (to create horizontal pane)

Ctrl + b (hold) + %  (to create vertical pane)

Ctrl + b (hold) + Arrow Up (to switch upper pane)

Ctrl + b (hold) + Arrow Down (to switch lower pane)

Ctrl + b (hold) + o (to swap panes)

Sunday, November 11, 2012

Linux Mint "Nadia" 14 Release Candidate dilancarkan

Sebagai pengguna Linux Mint, kehadiran versi "Nadia" amat ditunggu-tunggu. Berasaskan Ubuntu 12.10 Quantal, anda boleh dapatkan versi "Release Candidate" di sini

Saya sudah install.. disebabkan selama ini menggunakan MATE Desktop Environment, saya akan kekalkan penggunaan DE ini.



Friday, September 7, 2012

Remove Duck-duck go as search engine in Linux Mint

After you did your steps here, you may want the other short cut for finding things in the URL bar... (you know you can do this, don't you?)

We can search whatever that we need in the URL column at the browser. The default search engine is Duck Duck Go. We can change to Google by in the /home/user by deleting the .mozilla folder

To recreate again the profile, open up your browser and now the default search engine is no longer Duck Duck Go

Wednesday, September 5, 2012

Ubuntu/Mint MySQL installation problem

This is always happens when I did not use my MySQL for long and start to forget how to enable it right away. Read it here

Monday, September 3, 2012

Changing default browser in Gnome

In case you need to change the default browser in your Gnome environment;


najmi@vostro:~$ sudo update-alternatives --config gnome-www-browser
[sudo] password for najmi:
There are 3 choices for the alternative gnome-www-browser (providing /usr/bin/gnome-www-browser).

  Selection    Path                       Priority   Status
------------------------------------------------------------
* 0            /usr/bin/google-chrome      120       auto mode
  1            /usr/bin/chromium-browser   40        manual mode
  2            /usr/bin/firefox            40        manual mode
  3            /usr/bin/google-chrome      120       manual mode

Press enter to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/bin/firefox to provide /usr/bin/gnome-www-browser (gnome-www-browser) in manual mod
e.




List all

najmi@vostro:~$ sudo update-alternatives --config gnome-www-browser
There are 3 choices for the alternative gnome-www-browser (providing /usr/bin/gnome-www-browser).

  Selection    Path                       Priority   Status
------------------------------------------------------------
  0            /usr/bin/google-chrome      120       auto mode
  1            /usr/bin/chromium-browser   40        manual mode
* 2            /usr/bin/firefox            40        manual mode
  3            /usr/bin/google-chrome      120       manual mode

Press enter to keep the current choice[*], or type selection number:


Just enter to exit.

Saturday, August 25, 2012

Creating tarball with timestamp

I have several samples of malware that I got from my Dionaea sensor. Now if somebody asked, how to get all my sample is bulky file - which is simpler to download - then I need to create a tarball.

For me, I see it's important to have a timestamp at the tarball so that I'll quickly noticed whether something screwed in my script or whatsoever.

In the same directory, there as some other files too. TXT file. So I only want to grab the MD5SUM files.

Here goes.

rm *.tar.bz2;tar cjvf `date +"%d%b%y-%H%M%p"`.tar.bz2 `ls|grep -e "[0-9a-f]\{32\}"`; gpg --passphrase infected -c *.bz2


Here,
1- It will delete the previous tarball. Since my storage is limited
2- Use tar with c flag to create bunzup. Use the appropriate timestamp. 
3- Use grep as pipe to fetch ONLY MD5SUM files
4- Use GPG to encrypt the file.
5- You may use cronjob to automate the process as you want. I created this file every day by using cron script.

The purpose of GPG is to encrypt the file, just in case any user having difficulty to download the tarball due to their anti virus blockage.


Friday, August 24, 2012

Customizing terminal theme with bashish

Feel bored with your dry looking, non intuitive PS1 terminal? Try bashish. It really rocks up to you feel wants to cry.

 
I just used the tarball from here, as the link for *.deb is dead. Just initialize "bashish" the moment you finished installed it into your system.

To use the various theming, run bashish list and bashish <your theme of choice>. Cool ha?