Skip to content

Instantly share code, notes, and snippets.

View HugoPoi's full-sized avatar

Hugo Poissonnet HugoPoi

View GitHub Profile
@HugoPoi
HugoPoi / robomongo.desktop
Created November 10, 2017 14:45
Shorcut robomongo cinnamon ~/.local/share/applications/
#!/usr/bin/env xdg-open
[Desktop Entry]
Encoding=UTF-8
Name=Robomongo
Comment=Launch Robomongo
Icon=/opt/robomongo/robomongo.png
Exec=/usr/sbin/robomongo
Terminal=false
Type=Application
Categories=Developer;
@HugoPoi
HugoPoi / dbxcligetfiles.sh
Created July 5, 2017 12:44
Download only certain file with dbxcli
#!/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 January 28, 2017 16:36
iot failed to secure things, today i choose to pilote my thing with a file injected in a shell script running as root
http://192.168.1.97:8081/|-20
@HugoPoi
HugoPoi / wifi-power-sample.js
Created January 26, 2017 13:44
Use iwconfig and extract signal and link quality to csv (nodejs)
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 January 14, 2017 14:50
Backup Config Ark Server Modded
[/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 June 30, 2016 15:07
A uptodate /etc/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 September 8, 2018 14:43
Generate /etc/whois.conf file for gnu whois command
/*
* 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 April 29, 2015 17:19
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
HugoPoi / XMLValidator_.idea_compiler.xml
Created December 3, 2014 16:48
XMLValidator JAVA no externals libraries
<?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 April 11, 2014 22:29
Rules for Maid file cleaner, bunch of rules to sorting Photorec output folder
#
# 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
#