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 /
Created Jul 5, 2017
Download only certain file with dbxcli
# Usage : "\*\.png" /Webdesign
dbxcli search $1 $2 | while read line
echo $line
mkdir -p ".${line%/*}"
dbxcli get "$line" ".$line"
HugoPoi / madplay.conf
Last active Jan 28, 2017
iot failed to secure things, today i choose to pilote my thing with a file injected in a shell script running as root
View madplay.conf|-20
HugoPoi / wifi-power-sample.js
Created Jan 26, 2017
Use iwconfig and extract signal and link quality to csv (nodejs)
View wifi-power-sample.js
var exec = require('child_process').exec;
var argv = require('minimist')(process.argv.slice(2));
var stringify = require('csv-stringify');
var fs = require('fs');
function takeMesure(callback){
exec('iwconfig wlan0', function(err, stdout, stderr){
var essid = /ESSID:"(.+)"/.exec(stdout),
power = /Bit Rate=([0-9]+) +Mb\/s +Tx\-Power=([0-9]+) dBm/.exec(stdout),
HugoPoi / Game.ini
Created Jan 14, 2017
Backup Config Ark Server Modded
View Game.ini
HugoPoi / whois.conf
Last active Jun 30, 2016
A uptodate /etc/whois.conf
View whois.conf
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);
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 / 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 / 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 / htmlRemoveTagAttributes
Created Oct 15, 2013
View htmlRemoveTagAttributes
public String htmlRemoveTagAttributes(String input, String attribute) {
return input.replaceAll(" ((?!("+attribute+")).)*=\"[^\"]*\"*", "");
You can’t perform that action at this time.