Skip to content

Instantly share code, notes, and snippets.

View 0xv's full-sized avatar
🌴
On vacation

Nathan 0xv

🌴
On vacation
View GitHub Profile
@0xv
0xv / check_username.py
Created August 27, 2012 12:12
check available username on twitter
#!/usr/bin/env python
'''@0xv'''
import json, urllib2
user_agent = 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0.1'
username = raw_input('username: ')
url = 'https://www.twitter.com/users/username_available?suggest=1&username=%s&full_name=&email=&suggest_on_username=true&context=front&custom=1' % (username)
req = urllib2.Request(url)
get = urllib2.urlopen(req).read()
@0xv
0xv / twit.py
Created December 16, 2012 12:48
twitter Module for phenny
"""
twit.py - twitter Module for phenny
Copyright 24-05-2011, 0xv
Licensed under the yogyacarderlink Forum License 2.
thx to #yogyacarderlink #1st
http://yogyacarderlink.web.id | http://ycl.sch.id
follow @0xv @yogyacarderlink
"""
##twitter
@0xv
0xv / gist:6169297
Created August 6, 2013 22:24
VIM highligting
function Matches()
highlight curword ctermbg=white ctermfg=black cterm=bold gui=bold guibg=darkgrey
try
call matchdelete(w:lastmatch)
unlet w:lastmatch
catch
endtry
silent! let w:lastmatch=matchadd ('curword', printf('\V\<%s\>', escape(expand(''), '/\')), -1)
highlight eolspace ctermbg=red guibg=red
2match eolspace /\s\+$/
@0xv
0xv / twitter
Created October 22, 2013 18:09
#!/usr/bin/env python
#------------------------------------------------------------------------------
# Disclaimer: For educational purpose ONLY. Use at your own risk.
# Note : Just comment out the app that you don't wanna use, it'll save
# your time approving all of them.
#------------------------------------------------------------------------------
# Perhatian : Hanya untuk tujuan pembelajaran semata. Pembuat script ini tidak
# bertanggungjawab atas penggunaan/penyalahgunaan script ini.
# Catatan : Cukup gunakan aplikasi yang diinginkan, yang tidak digunakan bisa
# di-comment untuk mempercepat proses approval.
@0xv
0xv / mailchecker.py
Created October 26, 2013 05:28
huft
import sys, poplib
#i lost 100exp on dota 2 for create this shit.
#http://twitter.com/0xv
def save(log):
f = open('result.txt', 'a')
f.write(log)
def help():
print 'usage : ./mailchecker.py <emaillist>'
@0xv
0xv / ubuntu
Created March 26, 2014 15:09
Ubuntu 12.04 LTS
root@ubuntu:~# apt-get update
Err http://ppa.launchpad.net precise InRelease
Err http://archive.ubuntu.com precise InRelease
Err http://archive.ubuntu.com precise-updates InRelease
Err http://archive.ubuntu.com precise-backports InRelease
Err http://security.ubuntu.com precise-security InRelease
[0xv@localhost ~]$ sudo yum install nodejs
[sudo] password for 0xv:
Loaded plugins: fastestmirror, langpacks, refresh-packagekit
Loading mirror speeds from cached hostfile
* fedora: mirror.dhakacom.com
* rpmfusion-free: mirror.bjtu.edu.cn
* rpmfusion-free-updates: mirror.bjtu.edu.cn
* rpmfusion-nonfree: mirror.bjtu.edu.cn
* rpmfusion-nonfree-updates: mirror.bjtu.edu.cn
* updates: ftp.isu.edu.tw
@0xv
0xv / autoexec.cfg
Last active August 29, 2015 14:04
My Dota 2 cfg
//////////////////////////
/// BASIC SETTINGS ///
//////////////////////////
// Enables the console
con_enable 1
//preload map
cl_forcepreload 1
@0xv
0xv / infoleak.py
Last active August 29, 2015 14:06
Get detailed information about a Twitter user activity
#!/usr/bin/python -u
# -*- coding: utf-8 -*-
import tweepy
import sys
import getopt
import datetime
import urllib2
import os
import string
@0xv
0xv / dnscrypt.bat
Created November 6, 2014 12:46
dnscrypt.bat
cd /d E:\Master\dnscrypt-proxy-win32\bin
netsh interface ipv4 set dnsserver name="Wi-Fi" static 127.0.0.1
dnscrypt-proxy.exe -R opendns