Skip to content

Instantly share code, notes, and snippets.

View cheeseplus's full-sized avatar
🎯
Focusing

Seth Thomas cheeseplus

🎯
Focusing
View GitHub Profile
struct NPC
{
uint8_t activeScale; // higher => will execute more logic / TICK
void AdjustActivityScale(const float normalizedDistanceFromPC) // Clamped to 0...1
{
activeScale = normalizedDistanceFromPC * 10.0;
}
@vinyar
vinyar / rspec output.rb
Created August 21, 2014 23:04
rspec failing on windows against recipe with Multibyte chars
Test:
it "executes dummy command" do
expect(chef_run).to run_execute('random hiragana 料').with_command('puts 料理長')
end
Other notes:
Cookbook upload works fine with Japanese in all parts of the cookbook.
Failure:
@charlesjohnson
charlesjohnson / gemrc.erb
Last active August 29, 2015 14:05
Use a .gemrc file with Omnibus chef-client
:sources:
- http://<%= node['gem_file']['host'] %>:<%= node['gem_file']['port'] %>/
#!/bin/bash
set -e
#set -x
TOKEN=$( cat /root/.github-token )
BASEURL="https://api.github.com/orgs/${1}/repos?type=owner&access_token=${TOKEN}&per_page=100"
BACKUPS_ZFS="zones/$( zonename )/data/backup/github"
web_app "my_site" do
server_name node['hostname']
server_aliases [node['fqdn'], "my-site.example.com"]
docroot "/srv/www/my_site"
cookbook "apache2"
end
git@github.com:simonvc/riak-dev-cluster.git
rake bootstrap
## Default ring creation size. Make sure it is a power of 2,
## e.g. 16, 32, 64, 128, 256, 512 etc
## ring_size = 64
## enable active anti-entropy subsystem
anti_entropy = on
## location of the console log
log.console.file = ./log/console.log
resource_name :email_alias
property :address
property :recipients, Array
default_action :create
action :create do
with_run_context :root do
@fnichol
fnichol / README.md
Created October 11, 2012 22:02
orderup - Creates a tarball of Chef cookbooks from a Cheffile for chef-solo

orderup

Description

Creates a tarball of Chef cookbooks from a Berksfile or Cheffile for chef-solo.

Installation

Copy the program to your local machine (perhaps ~/bin?) and install Berkshelf or Librarian-Chef:

@thewyzard44
thewyzard44 / .bashrc
Last active October 6, 2018 21:24
chefdk + chruby in WSL/bash
umask 022
export PATH=~/bin:`echo $PATH | sed 's|:/bin:|&/opscode/chefdk/bin:/mnt/c/Users/Sean/AppData/Local/chefdk/gem/ruby/2.4.0/bin:/opscode/chefdk/embedded/bin:|'`