Skip to content

Instantly share code, notes, and snippets.

@poad
poad / actions.md
Last active January 5, 2021 05:45
GitHub Actions (by TypeScript)

create node project

yarn init

add the dependencies

yarn add --dev typescript \
@poad
poad / bash
Last active July 26, 2020 01:40
自作のVagrant Boxをかためるまでの手順(debian 系 Linux版) ref: https://qiita.com/poad1010/items/8d8f1af10fd26d7f53f5
./package.sh <VM名> <出力するVagrantBoxファイル名>
a - 1
a - 2
a - 3
b - 4
b - 5
b - 6
c is empty
false
@poad
poad / Vagrantfile
Last active January 12, 2019 01:44
OpenBSD 6.2 の Vagrant Box を作ってみた ref: https://qiita.com/poad1010/items/5d7d272fe4b4695adb71
config.vm.synced_folder ".", "/vagrant", type: "nfs"
@poad
poad / bash
Created August 18, 2017 08:36
[備忘録] 自作のVagrant Boxを小さくする(Debian系) ref: http://qiita.com/poad1010/items/061523e2d1911cb0d07d
# 共有するBoxの場合、Vagrant Boxの鍵をinsecureなmaster keyに置き換えておく
curl https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub > ~/.ssh/authorized_keys && \
chmod 740 .ssh && \
chmod 640 .ssh/authorized_keys
# sudoして作業するのが面倒なので、
sudo -s
# 最新化
apt -qq update && apt -qq -y upgrade && \
apt -y --purge autoremove && apt autoclean && ¥
@poad
poad / file0.sh
Last active November 13, 2017 03:22
Ubuntuで最新のカーネル以外をアンインストールする ref: http://qiita.com/poad1010/items/388d6a020624a0c059c8
dpkg --list | grep -E -o "linux-image-[0-9]+\.[0-9]+\.[0-9]+-[0-9]+-generic"
@poad
poad / file0.txt
Last active April 23, 2017 12:18
VirtualBox 5.1.20で共有フォルダーが動かなくなる対策 ref: http://qiita.com/poad1010/items/675ffe46e70135fff839
Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:
mount -t vboxsf -o dmode=755,fmode=644,uid=1000,gid=1000 vagrant /vagrant
The error output from the command was:
@poad
poad / file0.txt
Last active March 17, 2017 02:41
Windows 7上のVagrant 1.9.2とVirtualBox 5.1.16の組み合わせで /sbin/mount.vboxsf: mounting failed with the error: No such file or directory と怒られる ref: http://qiita.com/poad1010/items/17da0c659dc5d465c0e0
==> puppet: Mounting shared folders...
puppet: /vagrant => C:/Users/hccpp302/Documents/projects/vagrant-puppet4-oss
Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:
mount -t vboxsf -o uid=900,gid=1000 vagrant /vagrant
@poad
poad / Dockerfile
Created February 21, 2017 22:17
Spark History Server by Docker ref: http://qiita.com/poad1010/items/24dbcc290e4deeee68d7
FROM poad/docker-spark:1.6.2
USER root
COPY bootstrap.sh /etc/bootstrap.sh
RUN chown root.root /etc/bootstrap.sh
RUN chmod 700 /etc/bootstrap.sh
RUN mkdir /tmp/spark-events
@poad
poad / file0.txt
Created September 12, 2016 02:13
[メモ] ConEmuからMSYS2のmintty経由でbashを起動する ref: http://qiita.com/poad1010/items/e15acefdb82ba8158822
set CHERE_INVOKING=1 & %ConEmuDrive%\msys64\usr\bin\mintty.exe -i /msys2.ico /usr/bin/bash --login -new_console:d:%ConEmuDrive%\msys64\home\%username%