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
$ host 203.178.132.107 | |
107.132.178.203.in-addr.arpa is an alias for 107.64.132.178.203.in-addr.arpa. | |
107.64.132.178.203.in-addr.arpa domain name pointer napt3.tsukuba.wide.ad.jp. |
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/fish | |
function init_cookie | |
set LOGIN_URL "https://accounts.pixiv.net/login" | |
set TMP1 (mktemp) | |
set TMP2 (mktemp) | |
set TMP3 (mktemp) | |
if [ (count $argv) -ge 1 ] | |
set COOKIE $argv[1] | |
else |
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 | |
# http://radiko.jp/index/ から放送局のリストを取得 | |
curl -Ss "http://radiko.jp/index/" \ | |
| xmllint --xpath '//div[@class="content__rwd rwd channel-list"]//a' --html - 2>/dev/null | sed -e 's#</a>#</a>\n#g' \ | |
| sed -e 's#<a href="/index/##g' | sed -e 's#</a>##g' \ | |
| sed -e 's#/\?">#\t#g' | |
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 python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Create a PDF file with the same SHA-1 hash that displays two different images. | |
Works Cited ... | |
* JPEG: Still Image Data Compression Standard | |
* http://hp.vector.co.jp/authors/VA032610/JPEGFormat/markers.htm | |
Inspired by ... |
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 python3 | |
# -*- coding: utf-8 -*- | |
from http.server import HTTPServer, SimpleHTTPRequestHandler | |
class EchoHandler(SimpleHTTPRequestHandler): | |
def make_response(self): | |
table = str.maketrans("0123456789.:", "〇一二三四五六七八九、:") | |
real_address = "{}:{}".format(*self.client_address) | |
response = "You are: {}\n\n{}".format(real_address, str(self.headers)) |
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/python3 | |
import urllib.request | |
import urllib.parse | |
import re | |
import sys | |
inargs = sys.argv | |
inargs.remove(inargs[0]) | |
inargs = ' '.join(inargs) |
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 -Cue | |
if [ "$#" -lt 1 ]; then | |
echo "usage: $0 YOUTUBE_URL_TO_GET_INFO" 1>&2 | |
exit 1 | |
fi | |
curl -SsL "$1" | grep -oP '(?<=<title>).+(?=</title>)' |
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 -Ss -d 'payload={"text": "'"$USER has logged on $(hostname) in from $SSH_CLIENT at `date +\"%Y/%m/%d %p %I:%M:%S\"`"'"}' "https://hooks.slack.com/services/TOKEN/TOKEN/TOKEN" >/dev/null |
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
@keyframes shichihenge { | |
0% {background-color: #ff0080;} | |
10% {background-color: #ff0000;} | |
30% {background-color: #ffff00;} | |
50% {background-color: #00ff00;} | |
70% {background-color: #00ffff;} | |
90% {background-color: #ff00ff;} | |
100% {background-color: #ff0080;} | |
} | |
@keyframes nanahenge { |
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
\documentclass[twocolumn,twoside,a5j]{ltjtbook} | |
\title{Title Name} | |
\author{作者 名前} | |
\makeatletter | |
\renewcommand\maketitle{ | |
\onecolumn | |
\thispagestyle{empty} | |
\vspace*{\stretch{1}} |