$ time ./a.out
4./a.out 18.75s user 0.01s system 99% cpu 18.879 total
$ time ./b.out
4./b.out 23.44s user 0.02s system 99% cpu 23.550 total
$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.0 (clang-1100.0.33.8)
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
alert(document.domain); |
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 | |
# Encodes a bluray disc into mp4. | |
# ffmpeg parameters are tuned for blu-ray anime. | |
usage(){ | |
echo "Usage: sudo $(basename $0) BD_ISO" | |
} | |
if [ $# -ne 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
aaa |
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
# 'self' と trusted.example.comのJSのみ実行を許可する | |
content-security-policy: script-src 'self' trusted.example.com | |
# 上記に加えてinline scriptの実行も許可する (XSS対策としての恩恵はほぼ無い) | |
content-security-policy: script-src 'self' trusted.example.com 'unsafe-inline' |
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 src="https://platform.twitter.com/widgets.js"></script> | |
<script src="https://cdn.syndication.twimg.com/timeline/profile?callback=__twttr/window.alert&screen_name=shinkbr"></script> |
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
{ | |
"settingsVersion": "1.64", | |
"exclusionRules": [ | |
{ | |
"pattern": "https?://mail.google.com/*", | |
"passKeys": "" | |
} | |
], | |
"filterLinkHints": false, | |
"waitForEnterForFilteredHints": true, |
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 ruby | |
# coding: utf-8 | |
length = 12 | |
if ARGV.size > 0 && (ARGV[0].to_i.to_s == ARGV[0]) && | |
ARGV[0].to_i >= 4 && ARGV[0].to_i <= 128 | |
length = ARGV[0].to_i | |
end |
I hereby claim:
- I am shinkbr on github.
- I am shinkbr (https://keybase.io/shinkbr) on keybase.
- I have a public key ASBsCQn4yQsMGCbliF0qFt3zEUj1FjLnObjjDNV4UqNo8Ao
To claim this, I am signing this object:
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 bash | |
read uri | |
query=${uri##*\?} | |
echo -n "$query" | tr "&" "\n" |
NewerOlder