- その面白そうな話、私も参加していいよね?なぜなら私は無条件に受け入れられているからおじさん(闖入おじさん) #おじさんパターン
- 後出し難癖おじさん #おじさんパターン
- 困難は成長のチャンス!だから君たちに成長の機会をあげようおじさん (成長おじさん) #おじさんパターン
- あらゆる事案に一般論コメントおじさん #おじさんパターン
- 俺ってあらゆることに精通してるじゃん?だから力になるよおじさん (精通おじさん) #おじさんパターン
This file contains hidden or 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
| package main | |
| import ( | |
| "log" | |
| "os" | |
| "syscall" | |
| ) | |
| func main() { | |
| f, err := os.Open("not-found-file.txt") |
This file contains hidden or 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 pixiv_secure_login | |
| // @namespace http://sorah.jp/ | |
| // @description secure | |
| // @include http://www.pixiv.net/* | |
| // ==/UserScript== | |
| var forms = document.querySelectorAll('form[action="/login.php"]') | |
| for(var i = 0; i < forms.length; i++) |
This file contains hidden or 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 ruby | |
| # coding: utf-8 | |
| require 'open3' | |
| require 'tempfile' | |
| class Avconv | |
| def initialize(path, bin = 'avconv') | |
| @path = path | |
| @bin = bin | |
| @tempfile = Tempfile.new ['sd-hd', '.ts'] |
This file contains hidden or 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 | |
| [[ -n "$1" && -n "$2" ]] || { echo "Usage: $0 <interface to grab multicast packets from> <interface to send modified packets to> [target MAC address 1] [target MAC address 2] ..."; exit 0 ; } | |
| IIF=$1 | |
| OIF=$2 | |
| shift | |
| shift | |
| SRC_MACADDR=`ip link show $OIF | awk '/ether/ {print $2}' | tr -d :` |
-
HP ProLiant MicroServer http://h50146.www5.hp.com/products/servers/proliant/micro/
- ちっこいやつ。18000 円くらいで手に入る。低消費電力だけど CPU が Atom 相当なのでそれなりに遅い。
-
CPU model name:
AMD Turion(tm) II Neo N40L Dual-Core Processor -
CPU MHz:
800.000
This file contains hidden or 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 ruby | |
| Dir.chdir(File.dirname(__FILE__)) | |
| require 'digest/sha2' | |
| require 'uri' | |
| require 'open-uri' | |
| require 'json' | |
| API_KEY = 'api_key' | |
| TUMBLELOG = 'scrap.sorah.jp' |
This file contains hidden or 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 | |
| IF=$1 | |
| # Gets MAC address of the interface | |
| MY_MAC_ADDR=`ip link show $IF | awk '/ether/ {print $2}'` | |
| # Get the ID of the subnet that the interface is connected to | |
| MY_SUBNET_ID=`curl http://169.254.169.254/latest/meta-data/network/interfaces/macs/$MY_MAC_ADDR/subnet-id 2> /dev/null` |
This file contains hidden or 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
| $OutputEncoding = New-Object -typename System.Text.UTF8Encoding | |
| [Console]::OutputEncoding = New-Object -typename System.Text.UTF8Encoding |