Skip to content

Instantly share code, notes, and snippets.

View briancain's full-sized avatar
🌀

Brian Cain briancain

🌀
View GitHub Profile

Compare

  • CimSession
  • ComputerName
  • Credential
  • VirtualMachinePath
  • SnapshotFilePath
  • SmartPagingFilePath
  • CompatibilityReport
  • AsJob
  • Name
brian@localghost:vagrant-sandbox % be vagrant cloud search ubuntu ±[●●][master]
| NAME | VERSION | DOWNLOADS | PROVIDERS |
+-----------------------------------+------------------+------------+----------------------------------------------------+
| ubuntu/trusty64 | 20180709.0.5 | 30,185,374 | virtualbox |
| hashicorp/precise64 | 1.1.0 | 6,674,130 | virtualbox,vmware_fusion,hyperv |
| ubuntu/xenial64 | 20180717.0.0 | 3,049,493 | virtualbox |
| puphpet/ubuntu1404-x64 | 20161102 | 2,506,894 | vmware_desktop,virtualbox,parallels |
| hashicorp/precise32 | 1.0.0 | 2,261,068 | virtualbox |
| ubuntu/trusty32 | 201807
config.vm.define "bork" do |b|
b.vm.box = "bento/ubuntu-18.04"
b.vm.hostname = "bento-debian"
b.trigger.after :up do |t|
host = b.vm.hostname
t.run = {inline: "echo '#{host}'"}
end
end
Vagrant.configure("2") do |config|
config.vm.define "bork" do |b|
b.vm.box = "bento/ubuntu-18.04"
b.vm.hostname = "test.test"
b.trigger.before :up do |t|
hostname = ENV["HELLO"]
t.ruby do |env,machine|
puts "hi"
puts hostname
echo "nohello"
DEBUG guest: Searching for cap: change_host_name
DEBUG guest: Checking in: windows
DEBUG guest: Found cap: change_host_name in windows
INFO guest: Execute capability: change_host_name [#<Vagrant::Machine: windows (VagrantPlugins::HyperV::Provider)>, "test"] (windows)
DEBUG winrmshell: [WinRM] opening remote shell on http://172.18.102.154:5985/wsman
DEBUG winrmshell: [WinRM] Endpoint doesn't support config request for MaxEnvelopsizekb
DEBUG winrmshell: [WinRM] Waiting for output...
DEBUG winrmshell: [WinRM] Processing output
DEBUG winrmshell: [WinRM] polling for pipeline state. message: #<WinRM::PSRP::Message:0x0000000004713320 @data="\xEF\xBB\xBF<Obj RefId=\"0\"><MS><Version N=\"protocolversion\">2.3</Version><Version N=\"PSVersion\">2.0</Version><Version N=\"SerializationVersion\">1.1.0.1</Version></MS></Obj>", @destination=1, @type=65538, @pipeline_id="00000000-0000-0000-0000-000000000000", @runspace_pool_id="00000000-0000-0000-0000-000000000000">
DEBUG winrmshell: [WinRM] Waiting for output...
INFO global: Vagrant version: 2.2.5.dev
INFO global: Ruby version: 2.5.3
INFO global: RubyGems version: 2.7.7
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_LOG="debug"
WARN global: resolv replacement has not been enabled!
DEBUG global: Loading core plugin: /home/brian/go/src/github.com/hashicorp/vagrant/plugins/provisioners/file/plugin.rb
INFO manager: Registered plugin: file
DEBUG global: Loading core plugin: /home/brian/go/src/github.com/hashicorp/vagrant/plugins/provisioners/shell/plugin.rb
INFO manager: Registered plugin: shell
brian@localghost:vagrant-sandbox % ruby timeout.rb ±[●●][master]
The time: 5.000828619
@briancain
briancain / intensify.sh
Created November 7, 2019 17:10 — forked from alisdair/intensify.sh
intensifies Slack emoji creator
#!/bin/bash
# Generate a `:something-intensifies:` Slack emoji, given a reasonable image
# input. I recommend grabbing an emoji from https://emojipedia.org/
set -euo pipefail
# Number of frames of shaking
count=10
# Max pixels to move while shaking

Keybase proof

I hereby claim:

  • I am briancain on github.
  • I am qubit0 (https://keybase.io/qubit0) on keybase.
  • I have a public key ASB_B3Ir6btDAihLpv4U1zrmD2W2b31S-x1HtETQepvQDwo

To claim this, I am signing this object: