Skip to content

Instantly share code, notes, and snippets.

View mitsutaka's full-sized avatar
:shipit:
I'm here

Mitz Amano mitsutaka

:shipit:
I'm here
View GitHub Profile
@mitsutaka
mitsutaka / aerofs.linux
Created July 7, 2013 07:33
Aerofs init script for linux
#! /bin/sh
USER=mitz
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="Aerofs CLI Client"
NAME=aerofs
START_DAEMON="/usr/bin/aerofs-cli"
STOP_DAEMON="/usr/bin/aerofs-sh shutdown"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
@mitsutaka
mitsutaka / btsync.freenas
Created July 7, 2013 07:44
BitTorrent Sync init script for FreeNAS Jail
#!/bin/sh
#
# PROVIDE: btsync
# REQUIRE: LOGIN DAEMON NETWORKING
# KEYWORD: shutdown
#
# To enable BTSync, add this line to your /etc/rc.conf:
#
# btsync_enable="YES"
#
@mitsutaka
mitsutaka / btsync.debian
Created July 7, 2013 09:47
BitTorrent Sync init script for Debian
#!/bin/sh
### BEGIN INIT INFO
# Provides: btsync
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Multi-user daemonized version of btsync.
@mitsutaka
mitsutaka / stone.debian
Created July 7, 2013 09:47
stone init script for Debian
#!/bin/sh
. /lib/lsb/init-functions
NAME=stone
DAEMON=/usr/local/sbin/${NAME}
CONFIG=/etc/stone/stone.conf
PIDFILE=/var/run/${NAME}.pid
start() {
@mitsutaka
mitsutaka / arm-apple-darwin10-gcc
Created July 17, 2013 05:14
Cross compile configuration for iOS 6.x on OSX 10.8
#!/bin/sh
TARGET_PLATFORM=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
TARGET_BIN="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin"
TARGET_GCC=$TARGET_BIN/arm-apple-darwin10-llvm-gcc-4.2
TARGET_CFLAGS="-isysroot $TARGET_PLATFORM -march=armv7 -mcpu=cortex-a8 -mfpu=neon"
exec $TARGET_GCC $TARGET_CFLAGS "$@"
@mitsutaka
mitsutaka / arm-apple-darwin10-ld
Created July 17, 2013 05:15
Cross compile configuration for iOS 6.x on OSX 10.8
#!/bin/sh
TARGET_PLATFORM=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
TARGET_BIN="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin"
TARGET_LD=$TARGET_BIN/ld
TARGET_LDFLAGS="-L$TARGET_PLATFORM/usr/lib/"
@mitsutaka
mitsutaka / stone.service
Created April 25, 2015 03:20
stone systemd service file
[Unit]
Description=TCP/IP packet repeater in the application layer
ConditionPathExists=/etc/stone/stone.conf
[Service]
PIDFile=/var/run/stone.pid
ExecStart=/usr/local/sbin/stone -C /etc/stone/stone.conf
Restart=on-abort
[Install]
@mitsutaka
mitsutaka / tzupdate
Last active March 24, 2017 07:43
Automatically update timezone after network connection by NetworkManager
#!/bin/sh
#
# require: https://github.com/cdown/tzupdate
# path: /etc/NetworkManager/dispatcher.d/tzupdate
if [ "$2" = "up" ]; then
tzupdate
fi

2018 Kubernetes Contributor Summit EU

Welcome and Introduction

  • 191 key speakers

  • we've adopted the CNCF Code of Conduct

  • Wear T-shirts

  • Lunch is at 1 pm (not 12 pm)

  • SIG Updates start at 2pm, 5mins per SIG.

#!/bin/sh -eux
sudo apt update
sudo apt install -y pkg-config libglib2.0-dev libseccomp-dev libdevmapper-dev libostree-dev btrfs-progs libgpgme-dev dirmngr go-md2man
for repo in github.com/opencontainers/runc github.com/projectatomic/buildah; do
/usr/local/go/bin/go get -u $repo
(cd $GOPATH/src/$repo; make && sudo make install)
done