This file contains 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
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | |
<meta name="GENERATOR" content="Mozilla/4.78 [en] (X11; U; Linux 2.4.2-2smp i686) [Netscape]"> | |
</head> | |
<body> | |
| |
<table BORDER=0 COLS=1 WIDTH="100%" BGCOLOR="#000000" NOSAVE > | |
<tr NOSAVE> |
This file contains 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
<?php | |
/** | |
* Anti-XP Script | |
* | |
* @author 小傅Fox[<xfox@cotr.me>] | |
*/ | |
/** | |
* 获得客户端的操作系统 | |
* Source:{@link http://lok.me/a/1027.html} | |
* |
This file contains 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
pacman -S -y --root /mnt --config /mnt/etc/pacman.conf.pacsave --cachedir /mnt/var/cache/pacman/pkg base base-devel bash-completion vim grub wireless_tools net-tools inetutils dnsutils btrfs-progs ntfsprogs ntfs-3g arch-install-scripts gnome gdm xorg-drivers networkmanager networkmanager-dispatcher-ntpd networkmanager-dispatcher-sshd networkmanager-openconnect networkmanager-openvpn networkmanager-pptp networkmanager-vpnc rp-pppoe |
This file contains 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
# http://hong.im/2013/04/20/linux-tcp-tuning/ | |
net.ipv4.tcp_syncookies = 1 | |
# 表示开启 SYN Cookies。当出现 SYN 等待队列溢出时,启用 cookies 来处理,可防范少量 SYN 攻击,默认为 0,表示关闭; | |
net.ipv4.tcp_tw_reuse = 1 | |
# 表示开启重用。允许将 TIME-WAIT sockets 重新用于新的 TCP 连接,默认为 0,表示关闭; | |
net.ipv4.tcp_tw_recycle = 1 | |
# 表示开启 TCP 连接中 TIME-WAIT sockets 的快速回收,默认为 0,表示关闭; | |
net.ipv4.tcp_fin_timeout = 15 | |
# 修改系統默认的 TIMEOUT 时间。 |
This file contains 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
#!/bin/bash | |
_RETRY_COUNT=0 | |
while true | |
do | |
("$@") && break | |
let _RETRY_COUNT=${_RETRY_COUNT}+1 | |
echo -e "\e[1;31mRetry ${_RETRY_COUNT}...\e[0m" | |
sleep 0.5; echo -ne '\a'; sleep 0.5; echo -ne '\a'; sleep 0.5; echo -ne '\a'; sleep 0.5 | |
done |
This file contains 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
#!/bin/bash | |
set -e | |
outpemfile="${1:-cert.pem}" | |
tmpprefix="/tmp/gensslcert-$$" | |
openssl genrsa -des3 -out "$tmpprefix.key" 2048 | |
openssl req -new -key "$tmpprefix.key" -out "$tmpprefix.csr" | |
openssl rsa -in "$tmpprefix.key" -out "$outpemfile" | |
rm -f "$tmpprefix.key" | |
openssl x509 -req -days 365 -in "$tmpprefix.csr" -signkey "$outpemfile" -out "$tmpprefix.crt" |
This file contains 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
# Geordi memory dumper | |
geordi: {size_t s=0x400000;printf("0x%08zx: ",s);for(size_t p=s;p<s+64;p++){unsigned char c=*(const unsigned char *)p;printf((c>31&&c<127)?"%c":"\\x%02x",c);}} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
/* usbreset -- send a USB port reset to a USB device */ | |
/* http://askubuntu.com/a/661/299378 */ | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <errno.h> | |
#include <sys/ioctl.h> | |
#include <linux/usbdevice_fs.h> |
This file contains 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 | |
'''Dump the command line passed to it''' | |
import sys | |
def quote_argv(argv): | |
for i in argv: | |
apos = ' ' in i or '\\' in i |
OlderNewer