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
// ==UserScript== | |
// @name railwayTicketFormAutoField | |
// @namespace http://railway.hinet.net/ctno1.htm | |
// @description Change some element on login page | |
// @include http://*railway.hinet.net/ctno1.htm | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
// ==/UserScript== | |
var personalId = 'A123456789'; // 身份正字號 |
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
BEGIN { | |
} | |
{ | |
split($0, token, " "); | |
remoteIp = token[1]; | |
httpStauts = token[9]; | |
# time | |
split($0, timequote, "["); |
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
--- Day changed Sat Aug 20 2016 | |
01:06 < barneybook_mac> 應該都睡了吧 | |
02:57 < chusiang> test ~ test ~~ | |
02:57 < chusiang> 給所有還在趕進度的工作人員拍拍手 … (繼續忙了) | |
05:41 < Vdragon> 大家早安0w0/ | |
06:51 < Heero_Yuy> 早安 | |
07:12 < hashman> morning | |
07:23 < fntsrlike> Ping | |
07:36 < Vdragon> 太早到惹,被請去 MOS 吹冷氣QQ | |
07:39 < Heero_Yuy> … |
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
--- Day changed Sun Aug 21 2016 | |
00:05 <@chihchun> coscupbot: are you online? | |
00:06 < coscupbot> (chihchun) yes, I think you are. | |
00:06 <@chihchun> chusiang: https://gitter.im/COSCUP/coscup2016 | |
00:18 < hashman> test | |
00:19 < hashman> test | |
00:21 < hashman> test | |
00:33 < wens> 哇... unconf竟然有 runtime PM... 會不會太硬啊 | |
00:41 < chusiang> coscupbot: 戳戳 ~~ | |
00:44 < coscupbot> (chusiang) chusiang pong. |
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
var webduino = require('webduino-js'); | |
var board = new webduino.WebArduino('xxxx'); | |
var dht; | |
board.on('ready', function() { | |
dht = new webduino.module.Dht(board, board.getDigitalPin(10)); | |
dht.read(function(e) { | |
var temperature = dht.temperature; | |
var humidity = dht.humidity; | |
}, 1000); | |
}); |
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 | |
# time zone | |
timedatectl set-timezone Asia/Taipei | |
# user configure | |
mkdir -p /root/.ssh |
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
[ResilioSync] | |
title=Resilio Sync using Bittorent protocol | |
description=Sync data easily between devices | |
ports=3000/tcp|1900/udp|58610/udp|3838/udp|19717/tcp|50443/udp |
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 | |
declare(strict_types=1); | |
class IPv4 | |
{ | |
/** | |
* Check if input is a valid IPv4 address | |
* | |
* A valid IPv4 address is presents like `192.168.1.1` |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00 |
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 | |
$valid = [ | |
'production' => '10.0.1.0/24', | |
'stage' => '10.0.1.0/24', // 和 production 重複 | |
'dev' => '192.168.1.0/24', | |
]; |