Skip to content

Instantly share code, notes, and snippets.

@4ft35t
4ft35t / modsecurity.md
Last active March 8, 2016 07:43
ubuntu install modsecurity with nginx

fix APXS error

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

ref1 ref2

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 / ntfsutil.sh
Last active August 29, 2015 14:17 — forked from jsfaint/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
}
#!/usr/bin/env python
# coding=utf8
# author=evi1m0
# website=linux.im
'''
12306 Captcha Picture:
author: Evi1m0@20150316
1. Download Captcha
2. Pic Conver Text
@4ft35t
4ft35t / google.conf
Created March 6, 2015 08:07
google proxy config for nginx
server
{
deny all;
}
server
{
listen 80;
server_name gg.0xffff.tk;
@4ft35t
4ft35t / gist:1128da597e0946c103f3
Created March 5, 2015 09:19
iterm2-shortcuts

iterm2-shortcuts(iterm 2 快捷键)

#####标签

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

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

@4ft35t
4ft35t / autopdb.py
Last active June 25, 2018 06:03 — forked from notsobad/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
'''
#!/usr/bin/env python
# coding:utf-8
import sys
import os
try:
import gevent
import gevent.queue
import gevent.monkey
@4ft35t
4ft35t / gist:6398699
Last active December 22, 2015 01:48
twitter official clients keys

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