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 | |
/** | |
* CIDR.php | |
* | |
* Utility Functions for IPv4 ip addresses. | |
* Supports PHP 5.3+ (32 & 64 bit) | |
* @author Jonavon Wilcox <jowilcox@vt.edu> | |
* @revision Carlos Guimarães <cvsguimaraes@gmail.com> | |
* @version Wed Mar 12 13:00:00 EDT 2014 | |
*/ |
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/sh | |
# description: check cht-wifi login status, and auto login if no login. | |
# default script path: /mnt/sda1/mnt/scripts/login-cht-wifi.sh | |
# author: JustinTWD <justintwd@gmail.com> | |
# date: 2016/03/12 | |
USERNAME=YOUR_CHT_ACCOUNT | |
PASSWD=YOUR_CHT_PASSWORD | |
LOGFILE=/mnt/sda1/log/cht-wifi.log | |
TMPSESSION=/tmp/cht_session.tmp |
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 | |
/** | |
* php-ansi-color | |
* | |
* Original | |
* https://github.com/loopj/commonjs-ansi-color | |
* | |
* @code | |
* <?php | |
* require_once "ansi-color.php"; |
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
/** | |
Handle multiple socket connections with select and fd_set on Linux | |
Raj Abishek <rajabishek@hotmail.com> | |
*/ | |
#include <stdio.h> | |
#include <string.h> //strlen | |
#include <stdlib.h> | |
#include <errno.h> | |
#include <unistd.h> //close |
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
REGEDIT4 | |
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink] | |
"FontLinkControl"=dword:00004000 | |
"FontLinkDefaultChar"=dword:00003000 | |
/* 替換字型1 */ | |
/* 安裝Wine不會提供字型,所以需要替換字型,我以Noto Sans CJK TC Medium替換 */ | |
/* 取代字型 */ | |
/* Wine 1.1.12 打補丁後也會有亂碼,所以要修改這裡 */ | |
/* Wine 1.1.12 之前可以不用修改,改了應該也沒關係 */ | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink] |
OlderNewer