Skip to content

Instantly share code, notes, and snippets.

0x0ad01b1a68ccc08745c33fce23d333ac89346fef047b397f247ef2977684eb6e

@alfetopito
alfetopito / openvpn.sh
Last active August 2, 2020 23:30
Shell script for setting up PIA openvpn profiles on OpenWrt
#!/bin/sh
OVPN_DIR="/etc/openvpn"
install() {
BASE_PATH=https://www.privateinternetaccess.com/openvpn/
FILE_NAME=openvpn
if [ "$1" ]; then
FILE_NAME=$FILE_NAME-"$1"

Keybase proof

I hereby claim:

  • I am alfetopito on github.
  • I am alfeto (https://keybase.io/alfeto) on keybase.
  • I have a public key ASD2MMLXUnngv6-G6xUYuf1I1HiBaKP3TFcP4Oj5prW9PAo

To claim this, I am signing this object:

Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "private_network", ip: "192.168.33.122"
config.vm.network "forwarded_port", guest: 8000, host: 8000
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048"]
end
+ parse_args git-receive-pack ''\''myapp'\'''
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ for arg in '"$@"'
+ [[ git-receive-pack =~ ^--.* ]]
+ for arg in '"$@"'
+ [[ 'myapp' =~ ^--.* ]]
+ parse_args git-receive-pack ''\''myapp'\'''
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ for arg in '"$@"'
+ [[ git-receive-pack =~ ^--.* ]]
+ for arg in '"$@"'
+ [[ 'myapp' =~ ^--.* ]]
Wordlist ver 0.732 - EXPECT INCOMPATIBLE CHANGES;
acrobat africa alaska albert albino album
alcohol alex alpha amadeus amanda amazon
america analog animal antenna antonio apollo
april aroma artist aspirin athlete atlas
banana bandit banjo bikini bingo bonus
camera canada carbon casino catalog cinema
citizen cobra comet compact complex context
credit critic crystal culture david delta
dialog diploma doctor domino dragon drama
@alfetopito
alfetopito / DNS Vivo SP
Created November 27, 2014 22:50
DNS Vivo SP
primary dns 200.204.0.10
secondary dns 200.204.0.138
# using fuzzy_like_this_field query
curl -XGET 'http://localhost:9200/tokens/pt_BR/_search?pretty=true' -d '
{
"query": {
"fuzzy_like_this_field": {
"pt_BR.keyword": {
"like_text": "cartões bradesco",
"prefix_length": 1,
"min_similarity": 0.7
}
curl -XGET 'http://localhost:9200/keywords/pt_BR/_search?pretty=true' -d '
{
"query": {
"fuzzy": {
"keyword": {
"value": "cartões bradesco",
"prefix_length": 0,
"min_similarity": 0.6
}
}