Skip to content

Instantly share code, notes, and snippets.

Hugo HugoPoi

Block or report user

Report or block HugoPoi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
HugoPoi / gist:3904692
Created Oct 17, 2012
How to change authentification https to ssh
View gist:3904692
git remote set-url origin
View gist:3904820
HugoPoi / survey.js
Created Nov 19, 2012
Valider ESGI MyGES Survey
View survey.js
HugoPoi /
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.
# Auto-merge script for git repo
# You must use auth 'ssh' and a cron task :-)
# Conf:
# Conf End
git fetch --tags
HugoPoi / gist:5481552
Created Apr 29, 2013
TellMeMore AutoClick
View gist:5481552
var myautotask = setInterval(function(){$("#wordBlock-10").trigger("click");},30000);
HugoPoi / htmlRemoveTagAttributes
Created Oct 15, 2013
View htmlRemoveTagAttributes
public String htmlRemoveTagAttributes(String input, String attribute) {
return input.replaceAll(" ((?!("+attribute+")).)*=\"[^\"]*\"*", "");
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 :
# PhotoRec Tool :
# ----Help----
# Get All extension in directory : find . -type f | perl -ne 'print $1 if m/\.([^.\/]+)$/' | sort -u
# ------------
# Author: 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 />
<entry name="!?*.java" />
<entry name="!?*.form" />
<entry name="!?*.class" />
<entry name="!?*.groovy" />
HugoPoi /
Created Apr 29, 2015
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 / generateWhoisConf.js
Last active Sep 8, 2018
Generate /etc/whois.conf file for gnu whois command
View generateWhoisConf.js
* Usage : node generateWhoisConf.js > /etc/whois.conf
var json = require('comment-json');
var request = require('request');
request('', function(error, response, body){
var obj = json.parse(body);
You can’t perform that action at this time.