Skip to content

Instantly share code, notes, and snippets.

View kyokuheki's full-sized avatar

Okuda kyokuheki

  • Tokyo, Japan
View GitHub Profile

ocn

  • ntp-tk01.ocn.ad.jp 202.234.233.106
  • ntp-tk02.ocn.ad.jp 202.234.233.109
  • ntp-os01.ocn.ad.jp 210.145.255.76

nict

  • ntp.nict.jp
    • 133.243.238.163
    • 133.243.238.244
  • 133.243.238.243
@kyokuheki
kyokuheki / sping.sh
Last active September 28, 2018 05:01
#!/usr/bin/env bash
progname=sping
usage="usage: $progname <prefix> <source> <mask> <dev> <opts>..
example:
$progname 10.0 41 16 eth0
"
function sping24 () {
@kyokuheki
kyokuheki / redmine.md
Last active August 2, 2016 12:51
redmine 手動構築手順(書きかけ)
sudo locale-gen ja_JP.UTF-8
sudo apt update && sudo apt full-upgrade -y
sudo apt install -y git build-essential libssl-dev
sudo apt install -y ruby2.0 mysql-server apache2 subversion ruby-rmagick/trusty libmagick++-dev
cd /opt
svn checkout http://svn.redmine.org/redmine/branches/3.2-stable redmine
sudo chown -R www-data .
sudo apt install subversion
vim ~/.subversion/servers
@kyokuheki
kyokuheki / file0.txt
Last active February 13, 2019 06:03
DHCPで静的経路の配布 (Classless Static Routes) ref: https://qiita.com/kyokuheki/items/ccf770c6475a236d2035
option rfc3442-classless-static-routes code 121 = array of integer 8;
option rfc3442-classless-static-routes 24, 192,168,30, 192,168,1,254, 0, 192,168,1,1;
@kyokuheki
kyokuheki / file0.txt
Created July 11, 2017 12:58
DNSのオンラインチェックツール ref: http://qiita.com/kyokuheki/items/8c8605bc142fc17d6800
# gem install dnstraverse
Fetching: dnsruby-1.52.gem (100%)
Fetching: dnstraverse-0.1.0.gem (100%)
Successfully installed dnsruby-1.52
Successfully installed dnstraverse-0.1.0
2 gems installed
Installing ri documentation for dnsruby-1.52...
Installing ri documentation for dnstraverse-0.1.0...
Installing RDoc documentation for dnsruby-1.52...
Installing RDoc documentation for dnstraverse-0.1.0...
@kyokuheki
kyokuheki / kubecon_curl.sh
Last active December 11, 2017 04:57 — forked from superbrothers/kubecon_curl.sh
Download Kubecon Austin 2017 presentations from Sched
#!/bin/bash
mkdir -p kubecon_files
DAYS=("2017-12-06" "2017-12-07" "2017-12-08")
for DAY in "${DAYS[@]}"; do
#Super shitty pipefest because of grep matched groups sadness
LINKS=($(curl https://kccncna17.sched.com/${DAY}/overview | grep -oEi "f='(.*)' cl" | cut -d\' -f 2 | tr '\n' ' '))
for LINK in "${LINKS[@]}"; do
echo "Requesting https://kccncna17.sched.com/${LINK}"
@kyokuheki
kyokuheki / parted_badblocks.sh
Created January 11, 2018 12:27
partedでのディスク初期化とbadblocks
sudo parted -s -a optimal -- /dev/sda mklabel msdos mkpart primary ext4 1 -1
sudo mkfs.ext4 -L NONAME /dev/sda1
sudo badblocks -vs -o bad.txt /dev/disk/by-id/usb-TOSHIBA_External_USB_3.0_20140910010732-0\:0
@kyokuheki
kyokuheki / mintty.md
Created February 7, 2018 01:14
Windows上で実行ファイルをminttyから開き,エンコードを指定する

Windows上で実行ファイルをminttyから開き,エンコードを指定する

CP932

C:\cygwin64\bin\mintty.exe -o Locale=ja_JP -o Charset=CP932 /cygdrive/c/Windows/System32/cmd.exe

UTF-8

C:\cygwin64\bin\mintty.exe -o Locale=ja_JP -o Charset=UTF-8 /cygdrive/c/Windows/System32/cmd.exe
@kyokuheki
kyokuheki / install.sh
Created February 23, 2018 03:14
docker-compose installer script for coreos
#!/usr/bin/bash
mkdir -p /opt/bin
sudo curl -L https://github.com/docker/compose/releases/download/1.19.0/docker-compose-`uname -s`-`uname -m` -o /opt/bin/docker-compose
chmod +x /opt/bin/docker-compose