Skip to content

Instantly share code, notes, and snippets.

View briancain's full-sized avatar
🌀

Brian Cain briancain

🌀
View GitHub Profile
Shader "Custom/TwoSidedStandard"
{
Properties
{
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_Glossiness ("Smoothness", Range(0,1)) = 0.5
_Metallic ("Metallic", Range(0,1)) = 0.0
}
SubShader
### Keybase proof
I hereby claim:
* I am briancain on github.
* I am hashicorpbcain (https://keybase.io/hashicorpbcain) on keybase.
* I have a public key ASApW2sR-Dr1WO4stcmL9ji4fUX0WNIMjDHd9MCBBBLHMgo
To claim this, I am signing this object:

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:

@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
brian@localghost:vagrant-sandbox % ruby timeout.rb ±[●●][master]
The time: 5.000828619
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
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...
echo "nohello"
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
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