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
> netsh wlan set hostednetwork mode=allow | |
> netsh wlan set hostednetwork ssid=ssidtest | |
> netsh wlan set hostednetwork key=password keyusage=persistent | |
> netsh wlan start hostednetwork |
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
jq -r '[ .dateTime[:4] + "/" + .dateTime[4:6] + "/" + .dateTime[6:8], .tempoCode ] | @tsv ' |
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
go get -v github.com/nsf/gocode | |
他に | |
go get -u -v github.com/zmb3/gogetdoc | |
go get -u -v github.com/golang/lint/golint | |
go get -u -v sourcegraph.com/sqs/goreturns | |
go get -u -v golang.org/x/tools/cmd/gorename | |
go get -u -v github.com/tpng/gopkgs |
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
export GOROOT=$HOME/go | |
export GOPATH=$HOME/go/goroot | |
export PATH=$PATH:$HOME/go/bin |
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
$ script -f |
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
foreach ($ret_array as $key => $value ) { | |
$sql = <<< EOM | |
desc $value; | |
EOM; | |
$stmt = $pdo->query($sql); | |
$koumoku = ""; | |
while($result = $stmt->fetch(PDO::FETCH_ASSOC)){ | |
$Field = $result['Field']; | |
$koumoku = $koumoku . "\t" . $Field; |
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
$ sudo curl https://dl.minio.io/server/minio/release/linux-amd64/minio -o /usr/local/bin/minio | |
$ sudo chmod +x /usr/local/bin/minio | |
$ sudo curl https://raw.githubusercontent.com/minio/minio-service/master/linux-systemd/minio.service -o /etc/systemd/system/minio.service | |
$ sudo useradd -s /sbin/nologin minio-user |
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
export PORT=18080 | |
export MATTERMOST_ENDPOINT=/hubot/incoming | |
export MATTERMOST_TOKEN=jxh3dhx8yfn17ygo4pjrgqgrxy | |
export MATTERMOST_INCOME_URL=http://192.168.11.224/hooks/bg54t5czcpyzuxjt9ssaozw9we | |
export MATTERMOST_HUBOT_USERNAME=matter-bot |
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
curl -i -X POST -d 'payload={"icon_url": "/static/emoji/1f697.png", "username": "echo", "text": "今日は\nいい天気"}' http://192.168.1.128:19191/hooks/3p9ko4zkoifk8gtkyztcaqhm4a |
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 | |
if ($_POST['token'] != "bsfwydtxc3rgznwki35gw6s5to") { return; } | |
$text = $_POST['text']; | |
$query = preg_split('/[\s\x{3000}]/u', $text, 2); | |
echo json_encode(array("icon_url" => "/static/emoji/1f697.png", "username" => "echo", "text" => date("Y/m/d H:i:s") . " " . $query[1])); | |
return; |
NewerOlder