Recent Articles

24
Feb 12
18
Apr 12
shell

Bash – Custom Prompt For Versioning Systems

Ever wanted to know, in your bash prompt, on which branch you are? If you have changes to add/commit? At what revision/commit you hare? If you should push?
Here I did some prompt customization that I hope you will enjoy.

This is not geek-fashion… Continue reading »

18
May 12
fedora

Fedora – Prevent Screen From Going Off

In Fedora 16, with Gnome-Shell, screen settings do not allow "Never".
Even if you use xset, it won't work because it is Gnome that puts the screen off.
Here is how to do it, the right way.

Quick HowTo

Put this content into /etc/X11/xinit/xinitrc.d/xset.shContinue reading »

15
Feb 12
18
May 12
shell

Shell – Argument List Too Long

You might have seen this error message quite some times, maybe without knowing why.
Here is the explaination and solution.

Explaination

If you have a lot of logs or mails:

# ls -1 /var/mail/spam/ | wc -l
41667

Ouch. Indeed.

If you try to use rm, … Continue reading »

18
May 12
gnu-linux

Reset iptables Rules

I found myself in a situation were I wanted to reset all my iptables.
Here is a script to reset them all!

Quick HowTo

Save this into a script file, make it executable and run it as root:

#!/bin/sh
echo "Flushing iptables rules..."
sleep 1
iptables… Continue reading »
18
May 12
transmission

Deluge – The Awesome Torrent Client

This is just a quick post on how Deluge torrent client is awesome.

Quick Overview

  1. Transmission is slow when having multiple torrents, Deluge is always fast and responsive
  2. Deluge has many UIs available: GUI, Console and Web Interface
  3. Deluge
  4. Continue reading »
18
May 12
fedora

QuickCam Webcams Under Fedora 16

Quick HowTo

# yum install usbutils
# lsusb
# you should see your webcam listed

Then install the RPMFusion repositories to have the right packages installed.

# yum install kmod-qc-usb
# modprobe quickcam
# chmod 666 /dev/video0
# lsmod | grepContinue reading »
18
May 12
android

Android – Get External/Local IP Address

Here are two snippets that might help you:

getExternalIpAddress()

This will return the external IP address from ifconfig.me:

public static final String getExternalIpAddress () {
	try {
		HttpClient httpclient = new DefaultHttpClient();… Continue reading »
18
May 12
android

Android – Get A Process PID Using ps As Root

Here I will share with you a brief code on how to get a process PID in Java for Android, as root.

public static int getPidFromPs(String processName) {
	int pid = -1;

	try {
		Process suProcess = Runtime.getRuntime().exec("su");

		// stdin
		DataOutputStream… Continue reading »
18
May 12
macos

MacOS – Command Line Goodies

Coming from GNU/Linux systems, but having to work on a MacBook for work, I'll post here all commands I found that does not work the same way on Mac as on GNU/Linux systems (eg: the missing /proc/ folder).

General

ifconfig is available in every … Continue reading »

16
May 12
mobile

Les Vraies Offres Mobiles Illimitées… limitées

This post is in French because it only applies to the French customers regarding mobile phone carriers.

J'ai récemment terminé mon abonnement, et souhaite changer d'operateur afin de profiter des offres illimités survenues sur le marché… Continue reading »

2
Apr 12
16
May 12
android

Android 2.3.7 ROM – LeoGOxygeN1

I (known as "leonnib4" on XDA-Developers) came up with a new ROM for my Google Nexus One.

History

Since I stopped LeoGingerBread development, Android 3.0 then Android 4.0 came out. Those 2 major versions are mainly for tablets.

I started using… Continue reading »