Skip to content

Instantly share code, notes, and snippets.

View HugoPoi's full-sized avatar

Hugo Poissonnet HugoPoi

View GitHub Profile
@HugoPoi
HugoPoi / photorec-maid.rb
Created April 11, 2014 22:29
Rules for Maid file cleaner, bunch of rules to sorting Photorec output folder
#
# Rules for Maid file cleaner, bunch of rules to sorting Photorec output folder.
# Maid Tool : https://github.com/benjaminoakes/maid
# PhotoRec Tool : http://www.cgsecurity.org/wiki/PhotoRec
#
# ----Help----
# Get All extension in directory : find . -type f | perl -ne 'print $1 if m/\.([^.\/]+)$/' | sort -u
# ------------
# Author: HugoPoi
#
@HugoPoi
HugoPoi / XMLValidator_.idea_compiler.xml
Created December 3, 2014 16:48
XMLValidator JAVA no externals libraries
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<option name="DEFAULT_COMPILER" value="Javac" />
<resourceExtensions />
<wildcardResourcePatterns>
<entry name="!?*.java" />
<entry name="!?*.form" />
<entry name="!?*.class" />
<entry name="!?*.groovy" />
@HugoPoi
HugoPoi / efibootmgr.sh
Created April 29, 2015 17:19
Efi new entry for stub booting with LVM and nomodeset nvidia and resume
efibootmgr -d /dev/sda -p 1 -c -L "Arch Linux" -l /vmlinuz-linux -u "root=/dev/mapper/ssd-root resume=/dev/mapper/ssd-swap initrd=/intel-ucode.img initrd=/initramfs-linux.img nomodeset"
@HugoPoi
HugoPoi / gist:3904692
Created October 17, 2012 09:39
How to change authentification https to ssh
git remote set-url origin git@github.com:user/repo.git
https://help.github.com/articles/why-is-git-always-asking-for-my-password
@HugoPoi
HugoPoi / gist:3904820
Created October 17, 2012 10:13
Egit doc
http://www.vogella.com/articles/EGit/article.html
@HugoPoi
HugoPoi / survey.js
Created November 19, 2012 09:29
Valider ESGI MyGES Survey
jQuery(".mg_grade_5.mg_survey_box").each(function(s){$(this).trigger("click")})
@HugoPoi
HugoPoi / auto-merge.sh
Last active December 16, 2015 04:49
Auto-merge script for git repo. You must use auth 'ssh' and a cron task. Then add a tag to your branch with the prefix pattern, the script will auto merge to the last tag version.
#!/bin/sh
#
# Auto-merge script for git repo
# You must use auth 'ssh' and a cron task :-)
# Conf:
REPO_PATH=/home/user/yourgitrepo
TAG_PATTERN=prod*
# Conf End
cd $REPO_PATH
git fetch --tags
@HugoPoi
HugoPoi / htmlRemoveTagAttributes
Created October 15, 2013 15:43
htmlRemoveTagAttributes
public String htmlRemoveTagAttributes(String input, String attribute) {
return input.replaceAll(" ((?!("+attribute+")).)*=\"[^\"]*\"*", "");
}
@HugoPoi
HugoPoi / whois.conf
Last active June 30, 2016 15:07
A uptodate /etc/whois.conf
\.ae\.org$ whois.centralnic.com
\.ar\.com$ whois.centralnic.com
\.br\.com$ whois.centralnic.com
\.cn\.com$ whois.centralnic.com
\.com\.de$ whois.centralnic.com
\.com\.se$ whois.centralnic.com
\.de\.com$ whois.centralnic.com
\.eu\.com$ whois.centralnic.com
\.gb\.com$ whois.centralnic.com
\.gb\.net$ whois.centralnic.com
@HugoPoi
HugoPoi / gist:5481552
Created April 29, 2013 13:24
TellMeMore AutoClick
var myautotask = setInterval(function(){$("#wordBlock-10").trigger("click");},30000);