Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am vtrbtf on github.
  • I am vtrbtf (https://keybase.io/vtrbtf) on keybase.
  • I have a public key ASCTt1FxUlu3x4uel0coiDPsx5sHT5lP04cETSrY06qsOQo

To claim this, I am signing this object:

@vtrbtf
vtrbtf / Vagrantfile
Created September 3, 2017 11:14 — forked from oblique63/Vagrantfile
Opencart Vagrantfile (with VQMod and VQGen)
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
PORT = 9999
# Ignore this, cli-installation is buggy
AUTO_INSTALL = false
@vtrbtf
vtrbtf / xkpassgen.sh
Created July 21, 2017 14:14
xkpassgen
curl -s 'https://xkpasswd.net/s/index.cgi' -H 'Origin: https://xkpasswd.net' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: pt-BR,pt;q=0.8,en-US;q=0.6,en;q=0.4' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Accept: */*' --data 'a=genpw&n=3&c=%7B%22num_words%22%3A4%2C%22word_length_min%22%3A4%2C%22word_length_max%22%3A8%2C%22case_transform%22%3A%22RANDOM%22%2C%22separator_character%22%3A%22-%22%2C%22padding_digits_before%22%3A1%2C%22padding_digits_after%22%3A0%2C%22padding_type%22%3A%22FIXED%22%2C%22padding_character%22%3A%22RANDOM%22%2C%22symbol_alphabet%22%3A%5B%22!%22%2C%22%40%22%2C%22%24%22%2C%22%25%22%2C%22%5E%22%2C%22%26%22%2C%22*%22%2C%22-%22%2C%22_%22%2C%22%2B%22%2C%22%3D%22%2C%22%3A%22%2C%22%7C%22%2C%22~%22%2C%22%3F%22%2C%22%2F%22%2C%22.%22%2C%22%3B%22%5D%2C%22padding_characters_before%22%3A1%2C%22padding_characters_after%22%3A2%2C%22random_increment%22%3A%22AUTO%22%7D' | jq .passwords[0]
#!/bin/bash
#
# API: ./forwardPorts.sh add|rm p1:p1' p2:p2' ...
#
# Results in the appending (-A) or deleting (-D) of iptable rule pairs that
# would otherwise facilitate port forwarding.
#
# E.g
# sudo iptables -t nat -A PREROUTING -s 127.0.0.1 -p tcp --dport 80 -j REDIRECT --to 8080
# sudo iptables -t nat -A OUTPUT -s 127.0.0.1 -p tcp --dport 80 -j REDIRECT --to 8080
#!/bin/bash
echo "Starting 1Password..."
wine ~/.wine/drive_c/Program\ Files\ \(x86\)/1Password\ 4/1Password.exe > /tmp/1pwd.txt 2>&1 &
wine ~/.wine/drive_c/Program\ Files\ \(x86\)/1Password\ 4/Agile1pAgent.exe > /tmp/1pwd.txt 2>&1 &
tail /tmp/1pwd.txt
echo "Started..."