This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////// 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"]); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |