Skip to content

Instantly share code, notes, and snippets.

@hollyallen
hollyallen / Offboarding_from_18F.md
Last active September 14, 2020 15:16
Holly's list of 18F offboarding tasks
  • Official handbook page
  • Save the usernames and passwords for systems you may need when you are no longer an employee, such as
  • Log into Employee Express
    • Write down your login information for employee express. You can't get this back after you leave GSA.
  • Switch your W2s to Mail instead of Electronic
#!groovy
// This is the full syntax for Jenkins Declarative Pipelines as of version 0.8.1.
pipeline {
// Possible agent configurations - you must have one and only one at the top level.
agent any
agent none
agent {
label "whatever"
@jeremiahsnapp
jeremiahsnapp / 01_setup_dev-lxc.md
Last active July 19, 2016 07:52
Quick Setup dev-lxc-platform
@irvingpop
irvingpop / tk-windows-guest-working.md
Last active August 29, 2015 14:17
test-kitchen Windows guest working

As of March 24, 2015 that the 'windows-guest-support' branch of test-kitchen has been merged to master, but not the equivalent kitchen-vagrant branch.

Using the Windows cookbook, Gemfile like so:

source "https://rubygems.org"

group :development do
  gem "test-kitchen", :git => 'https://github.com/test-kitchen/test-kitchen.git'
  gem 'kitchen-vagrant', git: 'https://github.com/test-kitchen/kitchen-vagrant.git', :branch => 'windows-guest-support'
  gem "berkshelf"
@joemiller
joemiller / check-rackspace-bandwidth-limits.rb
Created August 26, 2013 21:54
check the outbound bandwidth on a host and compare against a table of rackspace cloud quotas. alert if near the limit
#!/usr/bin/env ruby
#
# check-rackspace-bandwidth-limits
# ================================
#
# Check the bandwidth usage of a network device on a Rackspace Cloud server
# and alert if it is nearing the threshold allowed for the image size.
#
# Requires sar(1) and sadf(1) to be installed (sysstat package, usually)
#
Original details here: http://www.engineyard.com/blog/2010/monitoring-memory-with-jruby-part-1-jhat-and-visualvm/
Debugging memory in logstash with this:
```
# Run JRuby with special flag
% ruby -J-Djruby.reify.classes=true --1.9 bin/logstash agent ...
```
```
@StephenKing
StephenKing / sysadmin.rb
Created December 27, 2011 13:00
Users cookbook with enforcement to choose password upon first login
#
# Cookbook Name:: users
# Recipe:: sysadmins
#
# Copyright 2009-2011, Opscode, Inc.
#
# 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
#
@jtimberman
jtimberman / omnibus.erb
Created December 6, 2011 20:15
Omnibus Bootstrap Template, latest version I use.
# Refer to CHEF-2815. http://tickets.opscode.com/browse/CHEF-2815
bash -c '
<%= "export http_proxy=\"#{knife_config[:bootstrap_proxy]}\"" if knife_config[:bootstrap_proxy] -%>
exists() {
if command -v $1 &>/dev/null
then
return 0
else