Skip to content

Instantly share code, notes, and snippets.

View dhcmrlchtdj's full-sized avatar

H11 dhcmrlchtdj

View GitHub Profile
@dhcmrlchtdj
dhcmrlchtdj / app.html
Last active July 4, 2016 03:18
vuex structure
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"/>
</head>
<body>
<div id="app">
<v-app></v-app>
</div>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Tests</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.5.3/mocha.min.css" />
</head>
<body>
<div id="mocha"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.5.3/mocha.min.js"></script>
@dhcmrlchtdj
dhcmrlchtdj / example.py
Last active August 7, 2016 08:18
tornado.httpclient.AsyncHTTPClient + asyncio
#!/usr/bin/env python3
from tornado.ioloop import IOLoop
from tornado.httpclient import AsyncHTTPClient
IOLoop.configure('tornado.platform.asyncio.AsyncIOLoop')
AsyncHTTPClient.configure('tornado.curl_httpclient.CurlAsyncHTTPClient')
async def example():
/**
* https://github.com/chriskempson/base16/blob/master/styling.md
* http://chriskempson.github.io/base16/#solarized
*
* base00 - Default Background
* base01 - Lighter Background (Used for status bars)
* base02 - Selection Background
* base03 - Comments, Invisibles, Line Highlighting
* base04 - Dark Foreground (Used for status bars)
* base05 - Default Foreground, Caret, Delimiters, Operators
datauri() {echo "data:image/${1##*.};base64,$(openssl base64 -in $1 | tr -d '\n')"}
# forward f port remote-port remote-host
# forward c port remote-port remote-host
forward() {
case "$1" in
"f") ssh -v -O forward -R $3:localhost:$2 $4 ;;
"c") ssh -v -O cancel -R $3:localhost:$2 $4 ;;
esac
}
@dhcmrlchtdj
dhcmrlchtdj / fstab
Last active September 28, 2016 08:14
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0
#/dev/cdrom /media/cd auto ro,user,noauto,unhide 0 0
#/dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
#/dev/fd0 /media/fl auto user,noauto 0 0

𝐀 | 𝐁 | 𝐂 | 𝐃 | 𝐄 | 𝐅 | 𝐆 | 𝐇 | 𝐈 | 𝐉 | 𝐊 | 𝐋 | 𝐌 | 𝐍 | 𝐎 | 𝐏 | 𝐐 | 𝐑 | 𝐒 | 𝐓 | 𝐔 | 𝐕 | 𝐖 | 𝐗 | 𝐘 | 𝐙

𝐚 | 𝐛 | 𝐜 | 𝐝 | 𝐞 | 𝐟 | 𝐠 | 𝐡 | 𝐢 | 𝐣 | 𝐤 | 𝐥 | 𝐦 | 𝐧 | 𝐨 | 𝐩 | 𝐪 | 𝐫 | 𝐬 | 𝐭 | 𝐮 | 𝐯 | 𝐰 | 𝐱 | 𝐲 | 𝐳

𝐴 | 𝐵 | 𝐶 | 𝐷 | 𝐸 | 𝐹 | 𝐺 | 𝐻 | 𝐼 | 𝐽 | 𝐾 | 𝐿 | 𝑀 | 𝑁 | 𝑂 | 𝑃 | 𝑄 | 𝑅 | 𝑆 | 𝑇 | 𝑈 | 𝑉 | 𝑊 | 𝑋 | 𝑌 | 𝑍

𝑎 | 𝑏 | 𝑐 | 𝑑 | 𝑒 | 𝑓 | 𝑔 | 𝑖 | 𝑗 | 𝑘 | 𝑙 | 𝑚 | 𝑛 | 𝑜 | 𝑝 | 𝑞 | 𝑟 | 𝑠 | 𝑡 | 𝑢 | 𝑣 | 𝑤 | 𝑥 | 𝑦 | 𝑧 | 𝚤 | 𝚥

𝑨 | 𝑩 | 𝑪 | 𝑫 | 𝑬 | 𝑭 | 𝑮 | 𝑯 | 𝑰 | 𝑱 | 𝑲 | 𝑳 | 𝑴 | 𝑵 | 𝑶 | 𝑷 | 𝑸 | 𝑹 | 𝑺 | 𝑻 | 𝑼 | 𝑽 | 𝑾 | 𝑿 | 𝒀 | 𝒁

@dhcmrlchtdj
dhcmrlchtdj / kernel.log
Created January 11, 2017 07:37
leap second
Jan 1 07:59:59 hostname kernel: Clock: inserting leap second 23:59:60 UTC
@dhcmrlchtdj
dhcmrlchtdj / yarn_node_lts.sh
Last active January 17, 2017 09:43
yarn && node@6
$ ### install
$ brew install yarn
🍺 /usr/local/Cellar/node/7.4.0: 4,129 files, 46.3M
🍺 /usr/local/Cellar/yarn/0.18.1: 5,639 files, 18.2M
$ brew unlink node
Unlinking /usr/local/Cellar/node/7.4.0... 7 symlinks removed
$ brew install node@6