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 / tim.py
Created November 6, 2014 18:23
tim
#!/usr/bin/env python
# 3/23/2014 - Wordpress TimThumb Finder 1.0 Beta
# Author: Rafay Baloch
# http://rafayhackingarticles.net
# Credits: Sunny Rockzz, Alex Infuhr
import requests
import re
import sys
@0xv
0xv / asd.js
Created December 3, 2014 07:40
/*
TUMBLR FEATURED POSTS SCRIPT
Automatically gets all posts tagged with "featured" and lists them
REQUIRES JQUERY!
--------------------------------------
Created by james <at> bandit.co.nz
http://blog.bandit.co.nz
Some code borrowed from Jacob DeHart's AJAX Search:
http://blog.bandit.co.nz/post/80415548/tumblr-ajax-inline-search
@0xv
0xv / voker
Created February 6, 2015 10:57
/////////// These are the buttons that Invoke the spells:
// 1 for alarcity
bind "1" "dota_ability_execute 1;dota_ability_execute 1;dota_ability_execute 2;dota_ability_execute 5"
// 2 for tornado
bind "2" "dota_ability_execute 0;dota_ability_execute 1;dota_ability_execute 1;dota_ability_execute 5"
// 3 for meteor
bind "3" "dota_ability_execute 1;dota_ability_execute 2;dota_ability_execute 2;dota_ability_execute 5"
// 4 for ghostwalk
bind "4" "dota_ability_execute 0;dota_ability_execute 0;dota_ability_execute 1;dota_ability_execute 5"
// 5 for deafening blast
@0xv
0xv / ikeh.py
Created December 11, 2015 20:50
import tweepy
consumer_key=""
consumer_secret=""
access_token=""
access_token_secret=""
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.secure = True
auth.set_access_token(access_token, access_token_secret)
// Rates
rate "128000"
cl_cmdrate "128"
cl_updaterate "128"
cl_interp "0.0"
cl_interp_ratio "1"
cl_lagcompensation "1"
// Mouse
zoom_sensitivity_ratio_mouse "1.0"
import urllib
def isup(domain):
httpcode = {
200 : 'site is up',
301 : "Moved Permanently",
400 : "Bad Request",
403 : "Forbidden",
403 : "404 Not Found",
408 : "Request Timeout",
@0xv
0xv / ffmpeg
Created December 8, 2016 01:17
yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel
mkdir ~/ffmpeg_sources
cd ~/ffmpeg_sources
curl -O http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar xzvf yasm-1.2.0.tar.gz
cd yasm-1.2.0
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin"
make
import re, json, urllib2, sys
class WpContent:
def __init__(self, url):
self.__url = url
self.__response = urllib2.urlopen(self.__url).read()
def get_api_wp(self):
return re.findall(r"https://api.w.org/' href='(.*)'", self.__response)[0]
@0xv
0xv / blash
Created February 15, 2017 13:42
public function details($appid){
$data["appdata"] = $this->db_models->app_detail($appid);
$data["similar"] = $this->papi_models->app_similar($appid,'5');
if(isset($data["appdata"]) && !empty($data["appdata"])){
//echo "ada di db langsung print dari db aja";
$data["gamebydev"] = json_decode($this->papi_models->developer($data["appdata"]["developer"]["devId"],"5"), true);
$this->load->view('detail/detail', $data);
//print_r($data["appdata"]["_id"]);
}
cd /var
mkdir repo && cd repo
mkdir site.git && cd site.git
git init --bare
cd hooks
cat > post-receive
#!/bin/sh
git --work-tree=/var/www/domain.com --git-dir=/var/repo/site.git checkout -f
chmod +x post-receive