Skip to content

Instantly share code, notes, and snippets.

View kanazux's full-sized avatar
🏠
Working from home

Silvio Giunge a.k.a kanazuchi kanazux

🏠
Working from home
View GitHub Profile
@kanazux
kanazux / BluePexUTM-repo.conf
Last active January 9, 2017 12:44
/usr/local/share/BluePexUTM/pkg/repos/BluePexUTM-repo.conf
FreeBSD: { enabled: no }
BluePexUTM-core: {
url: "http://beta.bluepex.com/pkg/BluePexUTM_bp-v4_0_amd64-core",
mirror_type: "none",
signature_type: "fingerprints",
fingerprints: "/usr/local/share/BluePexUTM/keys/pkg",
enabled: yes
}
@kanazux
kanazux / pythrough.md
Last active November 14, 2016 13:48
Teste usando o iperf3

[kanazuchi@freebsd]: ./pythrough.py -nt 5,10 -s 192.168.213.16 -d 500

Test using 5 ports
  • Bandwidth min: 560
  • Bandwidth max: 635
  • Bandwidth media: 583 Mbits/sec
  • Time to transfer 500 Mb: 7.14 seconds
Test using 10 ports
  • Bandwidth min: 711
@kanazux
kanazux / cat_1gb_file_txt.php
Last active November 17, 2016 16:35
gadi__ | kanazuchi cat 1gb_file.txt | telnet server 80
<?php
if ($_GET["redirurl"]) {
$redir_url = $_GET["redirurl"];
} else {
$redir_url = 'http://www.kanazuchi.com';
}
echo '<center><br/><br/><br/>';
@kanazux
kanazux / get_points.py
Last active November 9, 2016 14:59
get pokemao points
#!/usr/local/bin/python2.7
# -*- coding: UTF-8 -*-
import sys
import json
from itertools import groupby
from xml.dom import minidom
from urllib2 import urlopen
xmldoc = minidom.parse('pokemon.kml')

Keybase proof

I hereby claim:

  • I am SilvioGiunge on github.
  • I am kanazuchi (https://keybase.io/kanazuchi) on keybase.
  • I have a public key whose fingerprint is 2782 CB8A CA15 0F84 B3A7 99F7 F9BB 963E 293A 8FDE

To claim this, I am signing this object:

@kanazux
kanazux / screen_semp.sh
Last active February 26, 2016 15:29
create screen resolutiion xrandr
#!/bin/sh
xrandr --newmode "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync
xrandr --addmode VGA-1 1368x768_60.00
xrandr --output VGA-1 --mode 1368x768_60.00
@kanazux
kanazux / install_ipsec_monitor.php
Last active February 22, 2016 14:32
Install ipsec monitos on cron and files
<?php
/*
* Autor: Silvio Giunge a.k.a kanazuchi
* <[email protected]>
*
*/
require_once("config.inc");
require_once("services.inc");
@kanazux
kanazux / fix_files_ubuntu.pl
Last active December 7, 2015 13:56
install ubuntu server utm 100
#!/usr/bin/perl
#
# This script fixes problems when trying to make a bootable Ubuntu USB stick from an ISO image.
#
# How to use this script:
#
# 1. Make your bootable USB stick as per usual. I use "Linux Live USB creator".
#
# 2. Install perl
#
@kanazux
kanazux / get_insta_info.py
Last active May 3, 2016 11:09
Get instagram info - followers, followed.
#!/usr/local/bin/python2.7
# -*- coding: utf-8 -*-
#
# Autor: Silvio Giunge Silva a.k.a Kanazuchi
# <[email protected]>
#
# URL para gerar o token http://www.pinceladasdaweb.com.br/instagram/access-token/
# Crie um arquivo com o token e user id separados por ; (ponto e virgula)
# EX: echo '198754745546.5bdsa1e6.70b4234e28749efs80521a4c21314a2sd9b;suasenha' >> instadata
#
@kanazux
kanazux / create_fb_conversation_files.py
Last active August 29, 2015 14:27
Create files for conversations on facebook backup
#!/usr/local/bin/python
# -*- coding: UTF-8 -*-
#
# kanazuchi <[email protected]>
#
import re
import sys
import bs4
from urllib2 import urlopen