Skip to content

Instantly share code, notes, and snippets.

@4ft35t
4ft35t / gist:6398699
Last active Dec 22, 2015
twitter official clients keys
View gist:6398699

Twitter公式クライアントのコンシューマキー

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for Google TV

Consumer key: iAtYJ4HpUVfIUoNnif1DA
View gevent_wtf.py
#!/usr/bin/env python
# coding:utf-8
import sys
import os
try:
import gevent
import gevent.queue
import gevent.monkey
View autopdb.py
'''
original: http://code.activestate.com/recipes/65287/
Put this in python module dir, on mac: /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
or /usr/local/lib/python3.*/site-packages
Run your script this way:
>> python -m autopdb /path/script.py
'''
View gist:1128da597e0946c103f3

iterm2-shortcuts(iterm 2 快捷键)

#####标签

  • 新建标签:command + t
  • 关闭标签:command + w
  • 切换标签:command + 数字 command + 左右方向键

#####切换全屏:command + enter #####查找:command + f

@4ft35t
4ft35t / google.conf
Created Mar 6, 2015
google proxy config for nginx
View google.conf
server
{
deny all;
}
server
{
listen 80;
server_name gg.0xffff.tk;
View PicConverText.py
#!/usr/bin/env python
# coding=utf8
# author=evi1m0
# website=linux.im
'''
12306 Captcha Picture:
author: Evi1m0@20150316
1. Download Captcha
2. Pic Conver Text
View ntfsutil.sh
#!/bin/bash
mount_disk()
{
sudo umount $disk
mkdir ~/Desktop/$diskname
sudo mount_ntfs -o rw,auto,nodev,nobrowse,noowners,noatime $disk ~/Desktop/$diskname
echo "Mount $disk to ~/Desktop/$diskname"
open ~/Desktop/$diskname
}
View gist:d8970f18f33019d039d4

upgrade the system

Make sure you can ssh to the router by root and type in the command:

cd /tmp
wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-mw4530r-v1-squashfs-sysupgrade.bin
sysupgrade -v openwrt-ar71xx-generic-mw4530r-v1-squashfs-sysupgrade.bin
@4ft35t
4ft35t / modsecurity.md
Last active Mar 8, 2016
ubuntu install modsecurity with nginx
View modsecurity.md

fix APXS error

configure: error: couldn’t find APXS
apache2-prefork-dev

ref1 ref2

@4ft35t
4ft35t / http-request.sh
Last active Aug 29, 2015
Get HTTP request by tshark from pcap
View http-request.sh
#!/bin/bash
######
# https://ask.wireshark.org/questions/14811/follow-tcp-stream-with-tshark-still-can-not-in-batch-mode
# Useage: http_header.sh *.pcap
######
filter='http'
files=$(ls $@)
filter_http () {