Skip to content

Instantly share code, notes, and snippets.

@hiroyuki-sato
hiroyuki-sato / gist:4e9d36f1b365157963cf
Created December 8, 2014 14:59
VyOS 1.1.1リリース等

VyOSアドベントカレンダー8日目の記事です。

VyOS 1.1.1リリース等

2014年12月8日に新しいVyOSがリリースされました。1.1.0で見つかった多くの不具合が修正されています。1.1.0を使っている人は是非こちらをお試しください。

@kesor
kesor / Vagrantfile
Last active August 29, 2015 14:02
docker workshop
ENV['VAGRANT_NO_PLUGINS'] = 'true'
Vagrant.configure("2") do |v|
v.vm.box = "yungsang/boot2docker"
v.vm.box_version = ">= 1.3.7"
v.vm.box_check_update = false
v.vm.network :forwarded_port, guest: 5000, host: 60050
v.vm.network :forwarded_port, guest: 8500, host: 60085
v.vm.network :forwarded_port, guest: 8080, host: 60080
# using VirtualBox version $VBOX_VERSION
FROM boot2docker/boot2docker
RUN apt-get install p7zip-full
RUN mkdir -p /vboxguest && \
cd /vboxguest && \
curl -L -o vboxguest.iso http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso && \
7z x vboxguest.iso -ir'!VBoxLinuxAdditions.run' && \
sh VBoxLinuxAdditions.run --noexec --target . && \
@mopemope
mopemope / nspawn-container
Last active October 29, 2016 16:53
nspawn-container
#!/bin/bash
TOOLBOX_DOCKER_IMAGE=$1
TOOLBOX_USER=root
machinename=$(echo "${USER}-${TOOLBOX_DOCKER_IMAGE}" | sed -r 's/[^a-zA-Z0-9_.-]/_/g')
machinepath="/var/lib/toolbox/${machinename}"
if [ ! -d ${machinepath} ] || systemctl is-failed ${machinename} ; then
sudo mkdir -p "${machinepath}"
@nsfmc
nsfmc / Dockerfile.tmpl
Created March 29, 2014 20:23
a dockerfile which i
# $VBOX_VERSION should probably be something like 4.3.10 or somesuch
#
FROM boot2docker/boot2docker-rootfs
RUN apt-get install p7zip-full
RUN mkdir -p /vboxguest && \
cd /vboxguest && \
curl -L -o vboxguest.iso http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso && \
7z x vboxguest.iso -ir'!VBoxLinuxAdditions.run' && \
sh VBoxLinuxAdditions.run --noexec --target . && \
@tcnksm
tcnksm / docker_cheat.md
Last active August 5, 2021 03:59 — forked from wsargent/docker_cheat.md
Docker 虎の巻

Docker 虎の巻

何故Dockerを使うべきか

Why Should I Care (For Developers)

"Dockerが面白いのはシンプルな環境に隔離性と再現性をもたらしてくれることだ.ランタイムの環境を一度作れば、パッケージにして別のマシンでも再利用することできる.さらに,すべてはホスト内の隔離された環境で行われる(VMのように).最も素晴らしい点は,シンプルかつ高速であることだ."

@taizooo
taizooo / patch.check.wedata.tbrl.js
Last active December 28, 2015 09:39 — forked from YungSang/patch.check.wedata.tbrl.js
Taberareloo パッチ: wedata.net を3時間毎にチェックして Wedata.net is still down だったら "ハロー wedata.net ハロー、ハロー" してくれるやつ 改
// ==Taberareloo==
// {
// "name" : "Check availability of wedata.net and Tweet"
// , "description" : "Check availability of wedata.net every 3 hours and tweet it"
// , "include" : ["background"]
// , "version" : "0.3.1.4"
// , "downloadURL" : "https://gist.github.com/taizooo/7480615/raw/patch.check.wedata.tbrl.js"
// }
// ==/Taberareloo==
@antichris
antichris / about.md
Created October 21, 2013 14:55
Fork your own Gist

Fork your own Gist

This is a bookmarklet that adds a fully functional Fork button to your own Gist.

If a Fork button is already present in the page, this bookmarklet will set focus to it instead of adding another one.

The change is temporary and the button will disappear as soon as you navigate away from that Gist (clicking the Fork button does this for you as well).


@syoichi
syoichi / taberareloo_code_reading.md
Last active December 18, 2015 14:19
Taberarelooのコードを読み、処理の流れを追う

私はTaberarelooのコードの全てを読んだ事はないので正確さに欠けますが書いてみます(ファイル名などはこのディレクトリより)。

polygon_planetさんのTomblooに関する意見と同じような意見ですが、まず、特定のサービスに関するExtractor(extractors.js)やModel(models.js)から読んでみるというのはどうでしょうか。これらの分野はUser Scriptなどと異なりTaberarelooの基本的な処理を構成する一部分なので何かと想像しやすいかもしれません(もちろんTaberarelooの処理の中心となるbackground.jsやcontent.jsから見ていくのも良いと思います)。 例として、私が関わった事があるものを挙げると、ExtractorについてはYouTube、ModelについてはGistが小さくてわかりやすいかもしれません。この単位であれば、パッチで実現できる規模でもある為、YungSangさんのパッチを読むというのも良いかもしれません。

正直言ってTumblrのExtractorとModelはもともと大きかったものが私のせいで複雑なものとなってしまっているので読むのはお勧めできません…。

読む際はChromeのデベロッパーツールでブレークポ

@11xor6
11xor6 / install-cloud-init.sh
Last active December 12, 2015 07:28
Install cloud-init on RHEL or Centos 6 for use on AWS.
# We need the latest epel-release for a RHEL/Centos specific cloud-init
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm
# After this finishes you can build an AMI that will process the user data
# with cloud-init. You may also be interested in taking a look at the config
# file at /etc/cloud/cloud.cfg
yum install cloud-init