Skip to content

Instantly share code, notes, and snippets.

View yutannihilation's full-sized avatar
🍣
Nobody loves you

Hiroaki Yutani yutannihilation

🍣
Nobody loves you
View GitHub Profile
--- preseed-14.04.txt 2014-03-27 21:01:09.000000000 +0900
+++ preseed-16.04.txt 2016-02-05 21:01:44.000000000 +0900
@@ -1,4 +1,4 @@
-#### Contents of the preconfiguration file (for squeeze)
+#### Contents of the preconfiguration file (for xenial)
### Localization
# Preseeding only locale sets language, country and locale.
d-i debian-installer/locale string en_US
@@ -8,16 +8,15 @@ d-i debian-installer/locale string en_US
#d-i debian-installer/country string NL

estatapi v0.2.0 -> v0.3.0

estat_getStatsData()

  • @XXX -> XXX_code
  • XXX_info -> human-readable name

v0.2.0

test gist for bl.ocks.org

@yutannihilation
yutannihilation / lxd-playbook.yml
Created February 21, 2016 05:08
Ansible playbook to install LXD
---
- hosts: localhost
connection: local
tasks:
- name: add apt repo
apt_repository: repo='ppa:ubuntu-lxc/lxd-stable'
- name: install lxc and lxd
apt: name=lxd state=latest update_cache=yes cache_valid_time=600

a

b

c d e f g

@yutannihilation
yutannihilation / grafana-playbook.yml
Last active March 12, 2021 13:39
Ansible Playbook to install Grafana
---
- hosts: HOST
vars:
grafana_version: 2.5.0
arch: amd64
grafana_filename: grafana_{{ grafana_version }}_{{ arch }}.deb
tasks:
- name: Verify version
command: dpkg-query -W --showformat='${version}' grafana
d2 <- data_frame(orig_id = sapply(l_union@polygons, function(x) x@ID)) %>%
mutate(target_id = str_split(str_to_lower(orig_id), " ")) %>%
rowwise() %>%
summarise(orig_id, target_id = target_id[1])
d2[13,"target_id"] <- "hokkaido"
d_ordered <- left_join(d, d2, by = c("pref_alpha" = "target_id"))
rownames(d_ordered) <- d_ordered$orig_id
@yutannihilation
yutannihilation / kakasi.r
Created October 26, 2015 15:35
Nippon、文字化け...
library(Nippon)
data(prefectures)
kakasi(head(prefectures$name))
#> <NA> <NA> 蟯ゥ謇狗恁 螳ョ蝓守恁 <NA> <NA>
#> "NA" "NA" "gyouukenkujin" "touyoyushujin" "NA" "NA"
head(prefectures$name)
#> [1] "北海道" "青森県" "岩手県" "宮城県" "秋田県" "山形県"
@yutannihilation
yutannihilation / as.iframe_test.Rmd
Created October 12, 2015 06:23
add as.iframe option in htmlwidgets
---
title: "leaflet test"
author: "Hiroaki Yutani"
date: "`r Sys.Date()`"
output:
html_document:
as.iframe: true
---
source code of this Rmd is here: https://gist.github.com/yutannihilation/7d05bf4c34970258e693
@yutannihilation
yutannihilation / nomad.md
Last active January 7, 2020 08:56
Nomadについて調べたこと

Nomad

Intro

Nomadとは

  • cluster manager
  • task scheduler