Skip to content

Instantly share code, notes, and snippets.

View tanksuzuki's full-sized avatar

Asuka Suzuki tanksuzuki

View GitHub Profile
@tanksuzuki
tanksuzuki / plot.go
Created March 19, 2018 15:12
plot.go
package main
import (
"bytes"
"context"
"fmt"
"image"
"image/color"
"image/draw"
"image/png"
@tanksuzuki
tanksuzuki / 0_reuse_code.js
Created October 17, 2016 01:30
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@tanksuzuki
tanksuzuki / sample
Created July 23, 2015 10:40
using taxonomies in hugo
+++
date = "2015-05-14T20:50:06+09:00"
draft = true
slug = "lorem-ipsum-test"
tags = ["lorem", "ipsum"]
title = "lorem-ipsum"
+++
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
@tanksuzuki
tanksuzuki / supervisor.txt
Last active November 20, 2020 00:05
yum install supervisor
[root@a59c35ad939a /]# yum install epel-release
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: ftp.riken.jp
* extras: ftp.riken.jp
* rpmforge: ftp.riken.jp
* updates: ftp.riken.jp
Resolving Dependencies
--> Running transaction check
priority = []string{
"aufs",
"btrfs",
"zfs",
"devicemapper",
"overlay",
"vfs",
}
priority = []string{
"aufs",
"btrfs",
"devicemapper",
"overlay",
"vfs",
}
func New(root string, options []string) (driver Driver, err error) {
for _, name := range []string{os.Getenv("DOCKER_DRIVER"), DefaultDriver} {
if name != "" {
return GetDriver(name, root, options)
}
}
// Check for priority drivers first
for _, name := range priority {
driver, err = GetDriver(name, root, options)
@tanksuzuki
tanksuzuki / hugo-build.sh
Created May 18, 2015 15:25
hugo build and push for mac #hugo #git #mac
#!/bin/bash
rm -rf public/post/*
hugo -t angels-ladder
cd public
git add -A
git commit -m "Update public files"
@tanksuzuki
tanksuzuki / styles.less
Last active August 29, 2015 14:19
Atom Custom Stylesheet #atom #markdown #less #css
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed.
*
* If you are unfamiliar with LESS, you can read more about it here:
* http://www.lesscss.org
*/