Skip to content

Instantly share code, notes, and snippets.

/*!
* jQuery throttle / debounce - v1.1 - 3/7/2010
* http://benalman.com/projects/jquery-throttle-debounce-plugin/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
// Script: jQuery throttle / debounce: Sometimes, less is more!
# sniproxy example configuration file
# lines that start with # are comments
# lines with only white space are ignored
user daemon
# PID file
pidfile /var/run/sniproxy.pid
error_log {

WNDR4300

1.關機狀態下,按住Reset

2.接通電源,等待電源燈閃爍的時候,鬆開Reset

>3.通過TFPT傳送固件

@Wind4
Wind4 / vpn.sh
Last active August 29, 2015 14:17
#!/bin/bash
#
# Author: yeho <lj2007331 AT gmail.com>
# Blog: http://blog.linuxeye.com
#
# Installs a PPTP VPN-only system for CentOS
# Check if user is root
[ $(id -u) != "0" ] && echo "Error: You must be root to run this script" && exit 1
@Wind4
Wind4 / transmission.md
Last active August 29, 2015 14:17
Centos7安装transmission
{
"highlight_line": true,
"ignored_packages":
[
"Vintage"
],
"tab_size": 4,
"theme": "Soda Dark 3.sublime-theme",
"word_wrap": false
}
@Wind4
Wind4 / ssl.conf
Created April 8, 2015 04:56
Nginx ssl config
# 只支持新的TLS协议,旧的SSLv2、SSLv3协议有漏洞都不应该再使用
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
# 使用服务器握手密匙,密匙生成用以下命令
# openssl dhparam -out dhparam.pem 4096
# 生成4096位的密匙需要很长时间(数小时),但建议至少2048位
ssl_dhparam /usr/local/nginx/conf/ssl/dhparam.pem;
@Wind4
Wind4 / pre-commit.cmd
Created April 15, 2015 08:19
SVNHooks
@echo off
setlocal enabledelayedexpansion
:: *******************************************************
:: Get values from action
:: *******************************************************
set REPOS=%1
set TXN=%2
:: *******************************************************
:: If the file doesn't have the correct amount of
fallocate -l 512M /var/swapfile
chmod 0600 /var/swapfile
mkswap /var/swapfile
swapon /var/swapfile
echo "/var/swapfile swap swap sw 0 0" >> /etc/fstab
安装yum-utils:
yum install yum-utils开始清理:
清理不被当前系统任何软件所使用的依赖包(应多运行几次):
package-cleanup --leaves
清理当前软件仓库不再支持的孤儿包:
package-cleanup --orphans
清理旧内核:
package-cleanup --oldkernels
更多请man yum-utilsman package-cleanup
也可以利用yum插件删除依赖关系: