Skip to content

Instantly share code, notes, and snippets.

@mait
mait / socat.fish
Last active January 4, 2016 02:09
# server side. service-journal-gatewayd.socket listening on [::1]:19531, curl localhost:19531 OK.
sudo socat -d -d \
TCP6:[::1]:19531 \
OPENSSL-LISTEN:10000,cert=/etc/cert.pem,cafile=/etc/cert.pem,key=/etc/key.pem,reuseaddr,fork
# client side. first curl 'localhost:10000/entries?follow&boot' OK. second attempt hangup.
socat \
tcp-listen:10000,reuseaddr,fork \
OPENSSL:do0:10000,cert=/home/user/.ssh/cert.pem,cafile=/home/user/.ssh/cert.pem,key=/home/user/.ssh/key.pem
@mait
mait / README.md
Last active January 3, 2016 19:19 — forked from JoelBesada/README.md
Blogtrottr for backtick.io

Blogtrottr - Delicious news, fed to your inbox

http://blogtrottr.com

Blogtrottr delivers updates from all of your favourite news, feeds, and blogs directly to your email inbox, giving you the flexibility to stay updated whilst on the go. Yummy!

systemd의 장단점에 대해서 논의하는 격렬한 글타래는 여기저기서 많이 봤는데 이 두 군데만 보시면 웬만한 의견은 다 담겨 있는 것 같습니다.

다음은 systemd 공식 프로젝트 페이지와 systemd에 빈번하게 제기되는 비판 중 오해라고 생각하는 부분에 대해서 개발자 자신이 직접 해명한 글입니다.

Thinking about 'meta' torrent file format.

Let's say I've downloaded big file using torrent. Then add very small file and recreate new torrent file. Like subtitle.

Now two torrent files are totally different file to machine. Tracker and torrent client would treat them different torrent. Of course we don't need duplicate original data file for multi seeding. But seeders and leechers split by two torrent file. They don't know about they have exact same file. Torrent client and tracker cannot connect people for exact same data. We have split share pool for exact same file. It's not efficient. More seeders, more speed.

Let's say original torrent file is 1.torrent.

[ file1 ]
@mait
mait / README.md
Last active December 31, 2015 14:29 — forked from JoelBesada/README.md

Mozilla X-Ray Goggles for Bactick.

@mait
mait / Dockerfile
Last active December 19, 2015 16:28
# vim: ft=sh
from ubuntu:precise
# change to fast mirror
# run echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
run echo "deb http://ftp.neowiz.com/ubuntu precise main universe" > /etc/apt/sources.list
# reduce output from debconf
env DEBIAN_FRONTEND noninteractive
2013-06-12 14:43:37,367 unit:discourse/0: hook.output INFO: Installing rake (10.0.4)
2013-06-12 14:43:37,587 unit:discourse/0: hook.output INFO:
2013-06-12 14:43:38,130 unit:discourse/0: hook.output INFO: Installing i18n (0.6.4)
2013-06-12 14:43:38,356 unit:discourse/0: hook.output INFO:
2013-06-12 14:43:38,901 unit:discourse/0: hook.output INFO: Installing multi_json (1.7.6)
2013-06-12 14:43:38,914 unit:discourse/0: hook.output INFO:
2013-06-12 14:43:40,534 unit:discourse/0: hook.output INFO: Installing activesupport (3.2.12)
@mait
mait / postgresql-9.1-main.log
Created June 12, 2013 06:07
postgresql-9.1-main.log
2013-06-12 05:37:23 UTC LOG: database system was shut down at 2013-06-12 05:37:18 UTC
2013-06-12 05:37:23 UTC LOG: database system is ready to accept connections
2013-06-12 05:37:23 UTC LOG: autovacuum launcher started
2013-06-12 05:37:24 UTC LOG: incomplete startup packet
2013-06-12 05:37:29 UTC LOG: received SIGHUP, reloading configuration files
2013-06-12 05:37:30 UTC LOG: received SIGHUP, reloading configuration files
2013-06-12 05:37:31 UTC LOG: received fast shutdown request
2013-06-12 05:37:31 UTC LOG: aborting any active transactions
2013-06-12 05:37:31 UTC LOG: autovacuum launcher shutting down
2013-06-12 05:37:31 UTC LOG: shutting down
@mait
mait / discourse.log
Created June 12, 2013 06:03
discourse.log
05:48:36 web.1 | started with pid 18454
05:48:36 web.2 | started with pid 18457
05:48:36 sidekiq.1 | started with pid 18459
05:48:36 clockwork.1 | started with pid 18463
05:48:44 web.2 |
05:48:44 web.2 | *** Mocha deprecation warning: Change `require 'mocha'` to `require 'mocha/setup'`.
05:48:44 web.2 |
05:48:44 web.1 |
05:48:44 web.1 | *** Mocha deprecation warning: Change `require 'mocha'` to `require 'mocha/setup'`.
05:48:44 web.1 |
@mait
mait / 80-kopub.conf
Created April 21, 2012 23:29
KoPub font settings
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="scan">
<test name="fullname">
<string>KoPubDotum Bold</string><string>KoPub돋움체 Bold</string>
<string>KoPubBatang Bold</string><string>KoPub바탕체 Bold</string>
</test>
<edit name="style" mode="assign">