Skip to content

Instantly share code, notes, and snippets.

View miettal's full-sized avatar

Hiromasa Ihara miettal

View GitHub Profile
import curses
import locale
import time
import threading
from pykobuki.kobuki import Kobuki, FeedbackListener
locale.setlocale(locale.LC_ALL, "")
state = "STOP"
angle = 0.0
$ cat download.sh
curl http://cs.video.gogoinflight.com/media/JLCZFF0262/JLCZFF0262_p.mp4 > "さんまのお笑い向上委員会 ~モノマネ芸人vs向上委員会!~.mp4"
curl http://cs.video.gogoinflight.com/media/JLCZFF0253/JLCZFF0253_p.mp4 > "全力!脱力タイムズ ~サンド伊達&志田未来、ちょっと何言ってるかわからないの巻.mp4"
curl http://cs.video.gogoinflight.com/media/JLCZFF0258/JLCZFF0258_p.mp4 > "今ちゃんの「実は…」 ~世の中の「実は…」を明かしていきます~.mp4"
curl http://cs.video.gogoinflight.com/media/JLCZFF0256/JLCZFF0256_p.mp4 > "見たい!知りたい!北海道 ~新千歳空港は行列のできる人気店が勢揃い!~.mp4"
curl http://cs.video.gogoinflight.com/media/JLCZFF0259/JLCZFF0259_p.mp4 > "J-POP Music CLIPS ~旅うた特集~.mp4"
curl http://cs.video.gogoinflight.com/media/JLCZFF0236/JLCZFF0236_p.mp4 > "もっと、沖縄が好きになる。沖縄CLIP ~読谷でやちむんに出会う~.mp4"
curl http://cs.video.gogoinflight.com/media/JLCZFF0234/JLCZFF0234_p.mp4 > "日曜もアメトーーク! ~ド田舎芸人~.mp4"
curl http://cs.video.gogoinflight.com/media/JLCZFF0230/JLCZFF0230_p.mp4 > "ネタパレ ~特別編・歴史ネタSP~.mp4"
curl http://cs.video.gogoinflight.com/media/JLCZFF0242/JLCZFF0242_p.mp4 > "マツコの知らない世界 ~チョコレートの世界 Part 2~.mp4"
satysfi demo.saty
---- ---- ---- ----
target file: 'demo.pdf'
dump file: 'demo.satysfi-aux' (will be created)
parsing 'demo.saty' ...
parsing 'stdjabook.satyh' ...
parsing 'pervasives.satyh' ...
parsing 'gr.satyh' ...
parsing 'list.satyh' ...
parsing 'math.satyh' ...
$ httpstat http://example.com
Connected to 2606:2800:220:1:248:1893:25c8:1946:80 from 2400:4050:a5c0:8100:108d:4c14:3ee4:5144:57474
HTTP/1.1 200 OK
Cache-Control: max-age=604800
Content-Type: text/html
Date: Fri, 26 Jan 2018 16:40:30 GMT
Etag: "359670651+gzip+ident"
Expires: Fri, 02 Feb 2018 16:40:30 GMT
Last-Modified: Fri, 09 Aug 2013 23:54:35 GMT
$ httpstat --help
Usage: httpstat URL [CURL_OPTIONS]
httpstat -h | --help
httpstat --version
Arguments:
URL url to request, could be with or without `http(s)://` prefix
Options:
CURL_OPTIONS any curl supported options, except for -w -D -o -S -s,
MemTotal: 8176228 kB
MemFree: 4417472 kB
Buffers: 30348 kB
Cached: 639204 kB
SwapCached: 0 kB
Active: 3235984 kB
Inactive: 372336 kB
Active(anon): 2939448 kB
Inactive(anon): 9064 kB
Active(file): 296536 kB
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 47
model name : Intel(R) Xeon(R) CPU E7- 4850 @ 2.00GHz
stepping : 2
microcode : 0x37
cpu MHz : 1995.000
cache size : 24576 KB
physical id : 0
#!/usr/bin/env python
# coding:utf-8
from pprint import pprint as pp
import requests
import json
url = "http://airbornemedia.gogoinflight.com/asp/api/media/ja-JP/collections/browse"
movie_url = "http://airbornemedia.gogoinflight.com/asp/api/media/ja-JP/{:s}"
<!DOCTYPE HTML>
<!--
test.html
Author: Hiromasa Ihara (miettal)
URL: https://github.com/miettal
License: MIT License
Created: 2017-02-17
-->
<html>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.