Skip to content

Instantly share code, notes, and snippets.

View sbotman's full-sized avatar

Sander Botman sbotman

View GitHub Profile
@sbotman
sbotman / r-debug.php
Last active March 26, 2021 13:43 — forked from Rarst/r-debug.php
R Debug (set of dump helpers for debug)
<?php
/*
Plugin Name: R Debug
Description: Set of dump helpers for debug.
Author: Andrey "Rarst" Savchenko
Author URI: https://www.rarst.net/
License: MIT
*/
@sbotman
sbotman / bumpme
Last active August 1, 2019 15:14
bumpme
Thu Aug 1 15:14:43 UTC 2019
_______ _______ _____ _____ ___ ___ ________ _______ _______ _____ _____
|_ _| _ | |_| || | | | | | | ___|_ _|_| | |_
| | | | | \ / | | | | ___|_| |_| | |
|___| |___|___|_______|_______||___| |________|_______|_______|_______|_______|
# file: /opt/opscode/embedded/service/opscode-erchef/lib/chef_objects-12.2.0/priv/depselector_rb/depselector.rb
# ensure that the Gemfile is in the cwd
Dir.chdir(File.dirname(__FILE__))
require 'rubygems'
require 'bundler/setup'
require 'dep_selector'
require 'erlectricity'
require 'json'
require 'pp'
@sbotman
sbotman / rpm_build_example
Created January 5, 2015 17:42
RPM Building
commands for creating nagios rpm file
yum install rpm-build
yum install yum-utils
yum-builddep nagios.spec
rpmbuild -ba nagios.spec
@sbotman
sbotman / cloudstack.py
Last active August 29, 2015 14:09
Cloudinit patch
# Copyright 2014 Cloudbase Solutions Srl
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
@sbotman
sbotman / recursive_file_search
Last active August 29, 2015 14:08
Windows Ruby Functions
@sbotman
sbotman / Gemfile
Last active August 29, 2015 14:07 — forked from kesor/Gemfile
source :rubygems
gem 'json', '= 1.5.4' # knife/chef 11.0 and 11.20 is broken with json 1.5.5/1.7.7
gem 'vagrant'
gem 'vagrant-hostmaster'
@sbotman
sbotman / environment_compare_spec.rb
Created October 25, 2013 23:59
unit test for the knife environment compare command.
#
# Author:: Sander Botman (<[email protected]>)
# Copyright:: Copyright (c) 2013 Sander Botman.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@sbotman
sbotman / environment_compare.rb
Last active March 24, 2020 05:30
Compare your chef environments cookbook constraints with this option
#
# Author:: Sander Botman (<[email protected]>)
# Copyright:: Copyright (c) 2013 Sander Botman.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0