Skip to content

Instantly share code, notes, and snippets.

View displague's full-sized avatar
🐝
Mergin' 🎶 on a Sunday afternoon 🎶

Marques Johansson displague

🐝
Mergin' 🎶 on a Sunday afternoon 🎶
View GitHub Profile
@displague
displague / gist:a00b1acbb95b9461a895
Last active November 19, 2017 19:59
push vagrant-linode gem
vi lib/vagrant-linode/version.rb
vi CHANGELOG.md
git commit -m 'version 0.1.2' lib/vagrant-linode/version.rb CHANGELOG.md
git tag -s v0.1.2 # -u E2D09AB6
git push --tags origin master
gem build vagrant-linode.gemspec
gem push vagrant-linode-0.1.2.gem
https://www.youtube.com/watch?v=e-QFj59PON4#t=0m15s
-/ohmmy/.
`-+shmMMMMMMMMMMmy/.
.:+ydNMMMMMMMMMMMMMMMMMMMMmy+.
-/oymNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNy+-
yMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNh:
:MNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNmdhms
`dNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMNmdysssssdy
# -*- mode: ruby -*-
# vi: set ft=ruby et sw=2 sts=2 ts=8:
VAGRANTFILE_API_VERSION = '2'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# config.vm.box = "box-cutter/debian75"
#config.vm.synced_folder 'test/', '/srv/test/'
['newark','dallas','fremont','atlanta'].each do |datacenter|
{
ERRORARRAY: [ ],
DATA: [
{
LOCATION: "Dallas, TX, USA",
DATACENTERID: 2,
ABBR: "dallas"
},
{
LOCATION: "Fremont, CA, USA",
apt-get update; apt-get -y install qemu-system-x86
dd if=/dev/zero of=fs bs=100M count=6
mkfs -t btrfs fs
mount fs -o compress=zlib /mnt
curl http://9front.org/iso/9front-4661.a15f0069aa9d.iso.bz2 | bunzip2 -c > /mnt/9front.iso
ip addr show
qemu-system-x86_64 -drive file=/dev/sda -cdrom /mnt/9front.iso -boot d -vnc :0
qemu-system-x86_64 -drive file=/dev/sda -m 512 -curses -vnc :0
i=0;$(".employee-pad strong").each(function(){$(this).replaceWith($('<input>').prop("pattern",$(this).text()).attr('tabindex',++i));});$("<style>:invalid{background:red}:valid{background:green}</style>").appendTo("head");
@displague
displague / via pivot_root
Last active March 20, 2016 17:37
thoughts on fetching / installing box image for linode in a single blind boot
api create - single disk - minimal% (debian)
boot
lish # (maybe ssh?)
mkdir -p /newroot/oldroot
apt-get install -y debootstrap
debootstrap jessie /newroot http://mirrors.linode.com/debian
pivot_root / switch_root / systemctl switch-root /newroot
umount oldroot/{dev/{pts,shm,},proc,sys,} oldroot
...
loss of console? loss of root password?
npm -g install eslint-config-airbnb eslint-plugin-jsx-a11y eslint-plugin-react eslint babel-eslint eslint-plugin-import
http://stackoverflow.com/questions/20160921/syntastic-complaining-about-es6-module-syntax
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.