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 / get_hard_promos.py
Last active August 29, 2015 14:07
get hard mob promos
#!/usr/local/bin/python
# -*- coding: utf-8 -*-
# @kanazuchi_ <[email protected]>
import re
import sys
import time
import Tkinter
import argparse
import requests
@kanazux
kanazux / sed.sh
Created October 16, 2014 12:38
sed for parts of string
egrep -l '\$error[(\ +)?\=].*[^\)]\;' * --color | xargs -J % sed -e 's/\([\$error\ \=\ ]dgettext.*[^\;]\)/ syslog\(LOG\_NOTICE\, \1\)/g' -i.bak %
@kanazux
kanazux / bird.conf
Created October 24, 2014 00:05
bird help
bird> show ?
show interfaces Show network interfaces
show ospf ... Show information about OSPF protocol
show protocols [<protocol> | "<pattern>"] Show routing protocols
show route ... Show routing table
show static [<name>] Show details of static protocol
show status Show router status
bird> show ospf ?
show ospf [<name>] Show information about OSPF protocol XXX
#include <stdlib.h>
#include <curl/curl.h>
#include <unistd.h>
#define TIMEOUT 20
// Function prototypes
void upload_test(const char *, const char *);
void download_test(const char *);
void usage(void);
@kanazux
kanazux / create_files.py
Created November 7, 2014 13:16
Download and create file and folders for web filter
#!/usr/local/bin/python
# -*- coding: utf-8 -*-
#
# Get files for squid33 on packages server of the pfSense
# Author: Silvio Giunge a.k.a Kanazuchi
# 1410180880
# a2FuYXp1Y2hpQGFsdm9saXZyZS5jb20=
#
import os
@kanazux
kanazux / pkt_install.sh
Last active August 29, 2015 14:08
Packet installer for txz files used by web filter
#!/bin/sh
#
# Author: Silvio Giunge a.k.a Kanazuchi
# 1410180880
# a2FuYXp1Y2hpQGFsdm9saXZyZS5jb20=# Install packages for webfilter
#
SAMBAPATH="/var/run/samba4"
CONFPATH="/usr/local/etc"
SQUIDPATH="/usr/local/etc/squid"
@kanazux
kanazux / scrp_proxy.py
Last active August 29, 2015 14:16
Crawler(zinho) com bs4 request e wget
#!/usr/bin/python
# -*- coding: ISO-8859-15 -*-
#
# strsprox.py
# Autor: Silvio Giunge a.k.a kanazuchi <[email protected]>
#
import os
import re
import sys
@kanazux
kanazux / create_cidrs_files.py
Created March 11, 2015 15:03
get the country cidrs
#!/usr/local/bin/python
# -*- coding: UTF-8 -*-
#
# Autor: Silvio Giunge a.k.a kanazuchi
# <[email protected]>
#
import bs4
import requests
@kanazux
kanazux / display_info.py
Last active March 28, 2017 20:26
display info ezio 300
#!/usr/local/bin/python
# -*- coding: UTF-8 -*-
#
# Author Silvio Giunge <[email protected]>
# Display system info using ezio drivers
# For FreeBSD 8.1 use to compile the drivers on the version 9.1
#
import os
@kanazux
kanazux / natd.conf
Created April 15, 2015 18:02
Configure NAT with IPFW and NATD on FreeBSD
interface re0
dynamic yes
use_sockets yes
same_ports yes
unregistered_only yes