Skip to content

Instantly share code, notes, and snippets.

Hugo HugoPoi

View GitHub Profile
@HugoPoi
HugoPoi / photorec-maid.rb
Created Apr 11, 2014
Rules for Maid file cleaner, bunch of rules to sorting Photorec output folder
View photorec-maid.rb
#
# 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 Dec 3, 2014
XMLValidator JAVA no externals libraries
View XMLValidator_.idea_compiler.xml
<?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 Apr 29, 2015
Efi new entry for stub booting with LVM and nomodeset nvidia and resume
View efibootmgr.sh
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 Oct 17, 2012
How to change authentification https to ssh
View gist:3904692
git remote set-url origin git@github.com:user/repo.git
https://help.github.com/articles/why-is-git-always-asking-for-my-password
View gist:3904820
http://www.vogella.com/articles/EGit/article.html
@HugoPoi
HugoPoi / survey.js
Created Nov 19, 2012
Valider ESGI MyGES Survey
View survey.js
jQuery(".mg_grade_5.mg_survey_box").each(function(s){$(this).trigger("click")})
@HugoPoi
HugoPoi / auto-merge.sh
Last active Dec 16, 2015
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.
View auto-merge.sh
#!/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 Oct 15, 2013
htmlRemoveTagAttributes
View htmlRemoveTagAttributes
public String htmlRemoveTagAttributes(String input, String attribute) {
return input.replaceAll(" ((?!("+attribute+")).)*=\"[^\"]*\"*", "");
}
@HugoPoi
HugoPoi / whois.conf
Last active Jun 30, 2016
A uptodate /etc/whois.conf
View 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 Apr 29, 2013
TellMeMore AutoClick
View gist:5481552
var myautotask = setInterval(function(){$("#wordBlock-10").trigger("click");},30000);
You can’t perform that action at this time.