Skip to content

Instantly share code, notes, and snippets.

View HugoPoi's full-sized avatar

Hugo Poissonnet HugoPoi

View GitHub Profile
@HugoPoi
HugoPoi / htmlRemoveTagAttributes
Created October 15, 2013 15:43
htmlRemoveTagAttributes
public String htmlRemoveTagAttributes(String input, String attribute) {
return input.replaceAll(" ((?!("+attribute+")).)*=\"[^\"]*\"*", "");
}
@HugoPoi
HugoPoi / gist:5481552
Created April 29, 2013 13:24
TellMeMore AutoClick
var myautotask = setInterval(function(){$("#wordBlock-10").trigger("click");},30000);
@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 / 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 / gist:3904820
Created October 17, 2012 10:13
Egit doc
http://www.vogella.com/articles/EGit/article.html
@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