- 自宅にキャッシュDNSサーバーを置き, dnssec validation 環境を試しています
- その中で見つけた IPv4アドレスが引けない & 原因がよくわからない ものです
- たまたまアクセスしたサイトです 😄
- たぶんわたし以外困っていません
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 | |
# | |
# Read standard input or a file specified by the argument and notify devices | |
# via im.kayac.com. | |
# | |
# Usage: | |
# | |
# echo 'something' | $0 -u user_name -s secret | |
# $0 -u user_name -p password text_file | |
# |
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
(defadvice w3m-header-arguments (around alc activate) | |
"If URL matches with \"alc.co.jp\", modify w3m-user-agent tentatively" | |
(if (string-match "alc.co.jp" url) | |
(let ((w3m-user-agent | |
"Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)")) | |
ad-do-it) | |
ad-do-it)) | |
(eval-after-load "w3m-search" | |
'(add-to-list |
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
diff --git a/src/background.js b/src/background.js | |
index 9c0b369..e406ec8 100644 | |
--- a/src/background.js | |
+++ b/src/background.js | |
@@ -213,11 +213,11 @@ chrome.webRequest.onHeadersReceived.addListener( | |
details.responseHeaders, | |
xhrHeaderFinalURL, details.url | |
) | |
- return { | |
- cancel: !isSameOrigin( |
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
bind generic ^b move-page-up | |
bind generic ^f move-page-down |
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
(defvar url-pattern "https\?://[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+") | |
(defun expand-url-region (beginning end) | |
"Expand shortened URLs within region." | |
(interactive "r") | |
(save-excursion | |
(goto-char beginning) | |
(setq expanded-text "") | |
(setq cursor beginning) |
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
# Description | |
# Open a github issue to mitigate DDoS | |
# | |
# Commands: | |
# hubot anti ddos <path> <title>\n<yaml data> - Open a github issue with template and data | |
# | |
# Author: | |
# Shintaro Kojima <goodies@codeout.net> | |
yaml = require('js-yaml') |
$ gem install ipaddress
$ ruby -r ipaddress -e "puts IPAddress('2404:6800:400a:804::2004').data.unpack('C16').join('.')"
36.4.104.0.64.10.8.4.0.0.0.0.0.0.32.4
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 | |
require 'easy_diff' | |
require 'junoser' | |
require 'net/http' | |
require 'rugged' | |
require 'uri' | |
class Tracker |
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
require 'json' | |
require 'net/http' | |
require 'uri' | |
require 'webrick' | |
class Receiver | |
def initialize(pattern, slack_endpoint) | |
@pattern = pattern | |
@endpoint = slack_endpoint | |
end |
OlderNewer