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
HugoPoi / dbxcligetfiles.sh
Created Jul 5, 2017
Download only certain file with dbxcli
View dbxcligetfiles.sh
#!/bin/bash
#
# Usage : dbxcligetfiles.sh "\*\.png" /Webdesign
#
dbxcli search $1 $2 | while read line
do
echo $line
mkdir -p ".${line%/*}"
dbxcli get "$line" ".$line"
done
@HugoPoi
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
http://192.168.1.97:8081/|-20
@HugoPoi
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){
//console.log(stdout);
var essid = /ESSID:"(.+)"/.exec(stdout),
power = /Bit Rate=([0-9]+) +Mb\/s +Tx\-Power=([0-9]+) dBm/.exec(stdout),
@HugoPoi
HugoPoi / Game.ini
Created Jan 14, 2017
Backup Config Ark Server Modded
View Game.ini
[/script/shootergame.shootergamemode]
GlobalSpoilingTimeMultiplier=5
GlobalItemDecompositionTimeMultiplier=3
GlobalCorpseDecompositionTimeMultiplier=3
MatingIntervalMultiplier=0.1
EggHatchSpeedMultiplier=16.0
BabyMatureSpeedMultiplier=16.0
BabyCuddleIntervalMultiplier=0.1
bPassiveDefensesDamageRiderlessDinos=true
PerLevelStatsMultiplier_DinoTamed_Add[0]=0.50
@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 / 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('https://github.com/weppos/whois/raw/master/data/tld.json', function(error, response, body){
var obj = json.parse(body);
Object.keys(obj).forEach(function(key){
@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 / 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 / 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 / htmlRemoveTagAttributes
Created Oct 15, 2013
htmlRemoveTagAttributes
View htmlRemoveTagAttributes
public String htmlRemoveTagAttributes(String input, String attribute) {
return input.replaceAll(" ((?!("+attribute+")).)*=\"[^\"]*\"*", "");
}
You can’t perform that action at this time.