Skip to content

Instantly share code, notes, and snippets.

@tomill
tomill / main.go
Created Mar 16, 2022
go 1.18 debug.ReadBuildInfo() testing
View main.go
package main
import (
"flag"
"fmt"
"runtime/debug"
"strings"
)
var (
@tomill
tomill / cpanfile
Created Mar 21, 2021
koneta cpanfile
View cpanfile
FROM perl:5.32-buster
ENV PERL_TEXT_MECAB_ENCODING=utf8
RUN apt update && apt install mecab libmecab-dev mecab-ipadic-utf8 -y
WORKDIR /usr
COPY cpanfile /usr
RUN cpanm Carton
View main_test.go
package main
import (
"fmt"
"github.com/nkall/compactnumber"
"golang.org/x/text/language"
)
type compact int
@tomill
tomill / internal-repo-readme-boilerplate.md
Created Dec 25, 2019
社内のレポジトリのreadmeテンプレ
View internal-repo-readme-boilerplate.md

プロジェクト名(サーバー名やバッチ名)

タイトルだけだとわからない場合は1行説明

Overview



なんか
View ja<=>en
javascript:void((function () {
var q = location.search;
if (q.search(/hl=en/) > 0) {
q = q.replace(/hl=en/, "hl=ja");
} else if (q.search(/hl=ja/) > 0) {
q = q.replace(/hl=ja/, "hl=en");
} else if (q) {
q = q + "&hl=en";
} else {
@tomill
tomill / init.lua
Created May 6, 2017
"auto alt + yen" watcher #hammerspoon
View init.lua
-- based on: http://qiita.com/tanakahisateru/items/d8a67ad89c07baf8c0da
local VK_JIS_YEN = 0x5d
watcher = hs.eventtap.new({
hs.eventtap.event.types.keyDown
}, function(event)
local code = event:getKeyCode()
-- hs.logger.new('test', 'debug').d(code)
@tomill
tomill / apns-test-push.go
Last active Sep 6, 2016
go apns test cmd
View apns-test-push.go
package main
import (
"flag"
"fmt"
apns "github.com/anachronistic/apns"
)
func main() {
View gist:d3a47a73ee04b3859643
#showtooltip
/cleartarget
/tar Void Tendrils
/tar Cloudburst Totem
/tar Healing Stream Totem
/tar Spirit Link Totem
/tar Healing Tide Totem
/targetenemy [noharm]
/stopmacro [noharm]
/startattack
View gist:085f9d51c61b7b8e47d6
dqe8faGiqXNuvrJsuvNsuXSuPk3ck1UGQYWavhJk1YujpJkAAkvxJkzBqv(gO04GIZPQmpHs19uPQ2Nkv0bvv1cvqEivWeHQQlQq2OqXhvqnsvv4KkqRuHAMcLStOYpvadvuPLQiEkXub5QuHoRkvQ5QQs7v6VkLbtYHfSyvkpMuMSsCzuBwu(mPA0kQttXQvPsMTkUTq2nKFRkdxjTCQ65uA6ixxKTRi9DrvgpuY5fQwVkvy(cLY(bUUluftLbre7ZcA8VdQ9q2F)FZCmu8Tjp9eVHFJLJU9YJpvSvUWhC89HpmvIQSuzPqvYEism3bxCxxv0ENNVqfN7gdg3x7U3H7c((fS45(ZzZW2LZI7QXS76Y9fEWXa)YjSFW(D1mSD9vColo4f3EJbJB44Td7NtmxFUC(H5Rzy7YzPklg76jehIXIQm5PNyG6)H9ufTKLErqmwufWyW4kXhilZYuJz)dZfSxW6edMDNWDU7SzyVVxXZ6Mhck(kxHySOkAjl9IGySihxxcexHNYiQsyzXqMhkC2iVrxN92cvCUlufYB01zFHQqXx5kAjl9IQSYEngrZC4qZvGxXMUXtzejPSmdwv2C4VaTjq)NavjH4PmIQes0RYsYhiZdvXvfEkJOk)GdhAUInDJNYikxpNzWQIK7OyfRkAjl9I2O4RCfEkJOkjKHQqbVotv4PmISvYnw)V7rt2G(pz4rqBo8J)4gEe(RKS8wczOoufTKLErvYsinY8q5NdymqbuafqDEAHdqPDcw79akTtWArHigOUpq5iYqoCcwB(WqbVotWKdymqbuafqbgduafqbuMmGkFhrgAq7iehfpFywpH4ShM7buWqbVotWKdqfqlav(ANG1IcrmqbIT7duWmzGHDCem5KdqrZmcmgOakGcOakGcOakptjpcOiFIbJbkGcOak(yzWyGcOakGcOakGcO8mL8iGklCSmymqbuafqXOfWygTujz5Tv2RXiAMdhAUdvzL9AmIM5WHM3ERSpqpFL7SIwYsVOTzZcx