Skip to content

Instantly share code, notes, and snippets.

View helkhalfi's full-sized avatar

Hichame El Khalfi helkhalfi

View GitHub Profile
@helkhalfi
helkhalfi / gist:f28a09681b3c9164a413c532a0402783
Last active October 25, 2020 21:55
French Keyboard Mapping
~: Alt+n then space
\: Alt+Shift+/
@helkhalfi
helkhalfi / gist:21dc0a82889ffbe11c835965b6e8a3f7
Last active May 31, 2019 17:38
clean git checkout deploy
git reset --hard
git clean --force -d
git fetch origin --prune
git checkout master
git reset --hard origin/master
@helkhalfi
helkhalfi / proxychains4 + ssh forward
Last active May 16, 2019 20:46
proxychains4 + ssh forward
ssh -D 9050 <the_server_mwaahahah> -C -N -f
proxychains4 -q <command to run>
# Thanks to https://www.vps.net/community/knowledgebase/display/vpsfeatures/How+to+increase+tmp+partition+size
Take a backup of /tmp
# cp -rp /tmp /tmp.bak
Create a partition of 2GB using the below command
# dd if=/dev/zero of=/usr/temp-disk bs=2M count=1024
du -sh * | sort -r -h | head
@helkhalfi
helkhalfi / gist:2876638262c4e6274392
Created November 19, 2014 13:56
[DevoxxFR] 42 IntelliJ IDEA tips and tricks in 45 minutes
There are so many features in IntelliJ IDEA, but we’re going to concentrate on just 42, and we’re going to try and show them in 45 minutes. That’s around 1 tip per minute because we need to leave 3 minutes for Hello, Welcome and Thank you.
If a single one goes bad, we have less than a minute per tip. But here’s hoping it won’t.
Tout d’abord, afin de vous y retrouver dans l’article, sachez que :
⌘ : command (a.k.a pomme)
⌥ : option (a.k.a alt)
@helkhalfi
helkhalfi / gist:dc12d651367385a7ddeb
Last active August 29, 2015 14:06
update ubuntu
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install unattended-upgrades
sudo unattended-upgrade
sudo apt-get autoremove
@helkhalfi
helkhalfi / gist:68c05b773d05505db61a
Created September 7, 2014 23:46
maven jar with all dependecies and skip test
mvn assembly:assembly -DdescriptorId=jar-with-dependencies -Dmaven.test.skip=true
@helkhalfi
helkhalfi / gist:d1243e4d283b984ee852
Created September 7, 2014 23:31
easy install oracle jdk on ubuntu 14
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
#sudo apt-get install oracle-java7-installer
sudo apt-get install oracle-java8-installer
From Hichame : this not my post, i copy/paste it in gist in case of issue on original post server => http://www.brucalipto.org/java/how-to-create-a-portable-jdk-1-dot-7-on-windows/
thanks to him for this job
How to Create a Portable JDK 1.7 on Windows
Published Dec 27th, 2013 | Comments
[Java logo] As a Java developer sometimes I need a version of Java Development Kit (JDK) that is not the one installed on my PC. Oracle Java installer on Windows does too many things that I cannot control (like changing the JVM used by browsers to run applets). As of this writing Java 7 is at version u45 and you can download it from here. Open the downloaded file with 7-zip (in my case was jdk-7u45-windows-i586.exe) and then open the tools.zip you find inside. Extract everything to a convenient path like C:\jdk-1.7u45. Now it is shell time so open a DOS console (Start->Run…->cmd) and type:
Create a portable JDK 1.7