Skip to content

Instantly share code, notes, and snippets.

@Toady00
Toady00 / 0_reuse_code.js
Created March 16, 2017 19:25
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Toady00
Toady00 / setwebui_adminpass.rb
Created September 14, 2012 15:21 — forked from hh/setwebui_adminpass.rb
reset admin webui password for chef
require 'rubygems'
require 'chef/config'
require 'chef/webui_user'
Chef::Config.from_file(File.expand_path("~/.chef/knife.rb"))
user = Chef::WebUIUser.load('admin')
user.set_password("MyAwesomePassword")
user.save