Skip to content

Instantly share code, notes, and snippets.

View MTR.txt
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. 192.168.1.1 0.0% 396 1.7 1.0 0.6 34.0 2.2
2. br1-hsteps-v101.mbb.spectrumnet.us 0.0% 396 3.5 3.7 3.1 75.0 4.2
3. agg2-sea-a-t6-1-4000.bb.spectrumnet.us 0.0% 396 3.8 8.9 3.4 206.7 26.2
4. gi1-17.mag01.sea02.atla
View larb.lua
-- Must be the first line
LARB = {}
-- Transparency value limit for the fading out of the experience bar. Value is the
-- minimum allowed, and should be a float number between 0 and 1. A value
-- of 0 would mimic the default behavior to hide the frame entirely.
LARB.minimumAlpha = 0.6
-- Boolean values to control the display of the text string that goes over the experience
-- bar. Values must be either 'true' or 'false'. If both are configured, the current/max
@ChrisLundquist
ChrisLundquist / SlightlyImprovedExperienceBar.lua
Last active Aug 29, 2015
Slightly Improved Experience Bar Fix
View SlightlyImprovedExperienceBar.lua
-- Must be the first line
SIEB = {}
SIEB.name = "SlightlyImprovedExperienceBar"
SIEB.version = "1.3"
SIEB.throttle = {}
SIEB.defaults = {
minimumAlpha = 0.6,
showPercentageText = true,
@ChrisLundquist
ChrisLundquist / preseed.cfg
Created Dec 17, 2013
packer.io preseed file for ubuntu server
View preseed.cfg
# Installation
# ============
# Installation of Ubuntu Server 13.04 “Raring Ringtail” is automated by
# 'preseeding' configuration options with the values expected for vagrant. The
# `ubuntu-server/raring64/preseed.cfg` file defines these options.
# Clock and Timezone
# ------------------
@ChrisLundquist
ChrisLundquist / bundle_differ.rb
Last active Dec 27, 2015
Generate pretty reports of Gemfile.lock.diffs
View bundle_differ.rb
#!/usr/bin/env ruby
# Pretty print how the versions of gems changed between diffs of Gemfile.lock
# usage: ./bundle_differ.rb path/to/Gemfile.lock.diff
#
# Example Output:
# ffi 1.9.0 -> 1.9.3
# guard 2.1.1 -> 2.2.2
# jquery-ui-rails 4.0.5 -> 4.1.0
# listen 2.1.1 -> 2.2.0
# uglifier 2.2.1 -> 2.3.0
View gist:5990111
tell application "System Events"
set visible of process "StarCraft II" to true
end tell
do shell script "open \"/Users/clundquist/Library/Application Support/Blizzard/StarCraft II/Accounts/1454200/1-S2-1-501405/Replays/Multiplayer/Derelict Watcher TE (208 Balance v11).SC2Replay\""
delay 2
tell application "QuickTime Player"
set replayRecording to new screen recording
View gist:5197210
private
def set_platform_default_providers
if node.platform_family?(['debian', 'rhel'])
Chef::Platform.set(
:platform => node.platform.to_sym,
:resource => :firewall,
:provider => Chef::Provider::FirewallIptables
)
end
end
View standard.bash.erb
#!/usr/bin/env bats
@test "the log dir (<%= node.example.log_dir %>) should be owned by our user (<%= node.example.user %>)" {
[ "$(stat -c %U | grep <%= node.example.user %>)" ]
}
@test "should create the log dir (<%= node.example.log_dir %>)" {
[ -d <%= node.example.log_dir %> ]
}