Skip to content

Instantly share code, notes, and snippets.

View h3xxx's full-sized avatar
:octocat:
hello :trollface: 💻 :hurtrealbad:

Roger Bonin h3xxx

:octocat:
hello :trollface: 💻 :hurtrealbad:
View GitHub Profile
@h3xxx
h3xxx / 4chan.sh
Created May 20, 2016 22:21 — forked from 0xAether/4chan.sh
A bash function to download all the images in a 4chan thread
function 4chan() {
if [ $# -ne 1 ]
then
echo 'No URL specified! Give the URL to thread as the ONLY argument'
return 1
fi
url=$1
@h3xxx
h3xxx / imgur.sh
Created May 20, 2016 22:22 — forked from 0xAether/imgur.sh
A script that scrapes the image hosting website imgur.com
#!/usr/bin/env bash
while [ 1 == 1 ]
do
##########################################################################
url=$(cat /dev/urandom | tr -cd "[:alnum:]" | head -c 5)
curl -f -s http://imgur.com/$url > /dev/null
exitstatus=$?
@h3xxx
h3xxx / DAWs_And_Their_Users.txt
Created June 6, 2016 11:15
DAWs And Their Users
SRC: http://vi-control.net/community/threads/daw-users-poll-and-the-who-uses-what-list.35147/
EDIT: The poll results were erased when moved to the new VI-C site in 2015, rendering it useless. Newer polls have emerged since.
Please feel free to add to the list, and provide a source if you can.
NOTE: These are DAWs used as the "primary composition and sequencing software". The 'Desert Island' DAW.
DAWs And Their Users
==============
@h3xxx
h3xxx / ajax-promise.js
Created March 21, 2017 13:27
Ajax-Promise solution
// taken from https://medium.com/front-end-hacking/ajax-async-callback-promise-e98f8074ebd7#.55p53btpl
function makeAjaxCall(url, methodType){
var promiseObj = new Promise(function(resolve, reject){
var xhr = new XMLHttpRequest();
xhr.open(methodType, url, true);
xhr.send();
xhr.onreadystatechange = function(){
if (xhr.readyState === 4){
if (xhr.status === 200){
@h3xxx
h3xxx / windows-cmds-aliases.bat
Created May 22, 2018 16:40
Windows commands aliases
@echo off
DOSKEY ls=dir /B
DOSKEY lsport=netstat -a -n -o | find "%1"
@h3xxx
h3xxx / git-aliases
Created October 3, 2018 09:50
git-aliases.txt
https://stackoverflow.com/questions/1057564/pretty-git-branch-graphs
[alias]
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg3 = log --graph --abbrev-commit --decorate --format=format:'%C(yellow)%h%C(reset)%C(auto)%d%C(reset) %C(normal)%s%C(reset) %C(dim white)%an%C(reset) %C(dim blue)(%ar)%C (reset)' --all
lg4 = log --all --decorate --oneline --graph
lg = !"git lg1"
@h3xxx
h3xxx / install_apps_wsl.sh
Last active March 27, 2019 10:57
apps to install on Ubuntu WSL
apt install mc nmap hping3 htop unzip
apt install nodejs npm
apt install git-flow
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
apt install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
@h3xxx
h3xxx / tizenrecover.java
Created June 25, 2019 11:23 — forked from rgngl/tizenrecover.java
Recovery utility for Tizen certificate passwords
// Small utility to recover forgotten Tizen certificate password.
// If you still have the Eclipse IDE remembering the password, you
// can find it in encrypted form in a file:
// <WORKSPACE>/.metadata/.plugins/org.tizen.common.sign/profiles.xml
// Then simply paste the password from that file to this utility as
// a command line parameter.
// Code is mostly copied from Tizen IDE source code.
package fi.ustun.tizendecipher;
@h3xxx
h3xxx / response.json
Created March 6, 2020 13:54
example json response
{"ip":"127.0.0.1","country":"Poland","cc":"PL"}
@h3xxx
h3xxx / postman-visualizer.txt
Created May 11, 2020 13:29
postman-visualizer.txt
BONUS: here's a test rule for POSTMAN that help you quickly copy/paste results (more info https://learning.postman.com/docs/postman/sending-api-requests/visualizer/):
var template = `
<table bgcolor="#FFFFFF">
<tr>
<td>Video</td>
<td>
{{#response.video}}