Skip to content

Instantly share code, notes, and snippets.

View fumiyas's full-sized avatar
💭
> 突然の死 <

SATOH Fumiyasu fumiyas

💭
> 突然の死 <
View GitHub Profile
socat Examples
===============
* 注意
- SYSTEM で : を使う時は必ずエスケープすること
* 相手に接続
# telnet, netcat, socat それぞれの場合
$ socat - TCP:127.0.0.1:8000
@dogrunjp
dogrunjp / How2get_stringobj_instead_unicode.md
Last active September 2, 2020 02:31
Pythonのjson.load() で文字列の値をunicodeにcastしないで扱いたいとき…

Python のjson.load()で文字列の値をunicodeにcastしないで扱いたいとき。

たとえば JSONからid だけ読み込んで 内部的に生成されたasciiなstringと差分のリストを取得したいとかを想定しているのですが、 json.load()でunicodeに変換されないようにしたい!というだけなのに意外にちょっとした手間がかかるのでメモしておきます。


with open(file_path, 'r') as f:
@imjasonh
imjasonh / markdown.css
Last active January 3, 2025 20:15
Render Markdown as unrendered Markdown (see http://jsbin.com/huwosomawo)
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
digraph autoconf_automake {
graph [ fontname = "Helvetica" fontsize = 12 ]
node [ fontname = "Helvetica" fontsize = 12 shape = "box"
style=filled fillcolor=palegreen
]
edge [ fontname = "Helvetica" fontsize = 12 ]
aclocal_m4 [label="aclocal.m4"]
config_h_in [label="config.h.in"]
config_h [label="config.h"]
誰かこれ↓の現状をご存知ないでしょうか?
https://web.archive.org/web/20090228024115/http://blogs.sun.com/reiko/entry/%E3%82%B9%E3%82%BF%E3%82%A4%E3%83%AB%E3%82%AC%E3%82%A4%E3%83%89
その他、翻訳する人が最初に読んでおいた方がよさそうなもの。
https://web.archive.org/web/20090228024326/http://blogs.sun.com/reiko/entry/shaped_window_%E3%81%AF%E3%81%A9%E3%81%86%E8%A8%B3%E3%81%99_how_would
https://web.archive.org/web/20090301215629/http://blogs.sun.com/reiko/entry/%E5%8F%97%E5%8B%95%E6%85%8B%E3%81%AE%E7%BF%BB%E8%A8%B3
https://web.archive.org/web/20090228050234/http://blogs.sun.com/reiko/entry/%E7%BF%BB%E8%A8%B3%E3%81%AE%E5%93%81%E8%B3%AA
https://web.archive.org/web/20090301135955/http://blogs.sun.com/reiko/entry/%E6%80%9D%E3%81%84%E3%82%84%E3%82%8A%E3%81%AE%E3%81%82%E3%82%8B%E7%BF%BB%E8%A8%B3
@methane
methane / chat.go
Last active August 29, 2015 14:05
シンプルなチャット https://github.com/methane/go-chat-sample に移動
package main
import (
"bufio"
"bytes"
"errors"
"fmt"
"log"
"net"
"os"
@nvsofts
nvsofts / stop_twitter_keyboard_shortcuts.user.js
Last active June 8, 2018 20:32
Twitterのキーボードショートカットを無効化する (Stop Twitter Keyboard Shortcuts)
// ==UserScript==
// @name Stop Twitter Keyboard Shortcuts
// @namespace http://www.ns-koubou.com/
// @include http://twitter.com/*
// @include https://twitter.com/*
// @include http://*.twitter.com/*
// @include https://*.twitter.com/*
// @run-at document-start
// @version 3
// @grant none
@fumihito
fumihito / fledgling todo
Last active January 21, 2020 05:04
note for fledgling
駆け出しのサーバー寄りインフラエンジニアが読むべき各種ドキュメント
* 情報系の専門教育を受けていない、あるいは座学をサボってきた人向け。……と思っていたが、これらを全域カバーするレベルで座学をマヂにやっている人というのはあんまり存在しないかもしれない&微妙に属性が違うので、これはこれで必須。
* 1年目が終わるまでにこれぐらいは読んで&軽く実践しておけると望ましい。
* 3年目すぎてもこれらが把握できてなければ相当深刻にヤバいかもしれないが、理想が高すぎるかもしれない。
* 5年目ぐらいには何とか全部読んでいてほしいなぁ……ぐらい。
できるようになっているべきこと
================================
@mattn
mattn / err.go
Last active August 29, 2015 13:59
package main
import (
"log"
"os"
"syscall"
)
func main() {
f, err := os.Open("not-found-file.txt")
@saitoha
saitoha / LICENCE
Last active August 29, 2015 13:59
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2014 Hayaki Saito <[email protected]>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE