Skip to content

Instantly share code, notes, and snippets.

freebsd@generic:~ % ps aux
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
root 11 400.0 0.0 0 64 - RNL 13:18 1429:13.44 [idle]
root 0 0.0 0.0 0 352 - DLs 13:18 0:00.21 [kernel]
root 1 0.0 0.0 9868 372 - ILs 13:18 0:00.05 /sbin/init --
root 2 0.0 0.0 0 16 - DL 13:18 0:00.00 [crypto]
root 3 0.0 0.0 0 16 - DL 13:18 0:00.00 [crypto returns 0]
root 4 0.0 0.0 0 16 - DL 13:18 0:00.00 [crypto returns 1]
root 5 0.0 0.0 0 16 - DL 13:18 0:00.00 [crypto returns 2]
root 6 0.0 0.0 0 16 - DL 13:18 0:00.00 [crypto returns 3]

Keybase proof

I hereby claim:

  • I am scottmuc on github.
  • I am scottmuc (https://keybase.io/scottmuc) on keybase.
  • I have a public key whose fingerprint is C6BE 6604 AF9B 1B83 74BB FE87 7DCB 6F3C BD2E D980

To claim this, I am signing this object:

~ ? deep-pockets.sh stats
article count : 2023
articles unread : 72
articles tagged : 330
articles work related : 128
reading time (work related): 984m
reading time : 15657m
tag counts :
128 work-related
26 remote
@scottmuc
scottmuc / bumpme
Last active February 14, 2018 12:53
Wed Feb 14 12:53:38 UTC 2018
Recipe: sprout-homebrew::cask
* directory[/usr/local/Library/Taps] action create[2016-01-02T19:45:57+01:00] INFO: Processing directory[/usr/local/Library/Taps] action create (sprout-homebrew::cask line 3)
(up to date)
* homebrew_tap[caskroom/cask] action tap[2016-01-02T19:45:57+01:00] INFO: Processing homebrew_tap[caskroom/cask] action tap (sprout-homebrew::cask line 8)
(up to date)
* package[caskroom/cask/brew-cask] action install[2016-01-02T19:45:57+01:00] INFO: Processing package[caskroom/cask/brew-cask] action install (sprout-homebrew::cask line 10)
(up to date)
* package[caskroom/cask/brew-cask] action upgrade[2016-01-02T19:45:57+01:00] INFO: Processing package[caskroom/cask/brew-cask] action upgrade (sprout-homebrew::cask line 12)
(up to date)
* directory[/opt/homebrew-cask/Caskroom] action create[2016-01-02T19:45:58+01:00] INFO: Processing directory[/opt/homebrew-cask/Caskroom] action create (sprout-homebrew::cask line 17)
@scottmuc
scottmuc / Get-FromSFtp.Tests.ps1
Last active August 29, 2015 14:02
Adding Pester tests to existing code
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
. "$here\$sut"
$mockSFtpCode = @"
public class MockSFtp {
public bool ConnectCalled { get; private set; }
public bool DisconnectCalled { get; private set; }
public bool IsConnected { get; set; }
public string ChangeDirectoryParam { get; private set; }
@scottmuc
scottmuc / remove_amplification.rb
Last active March 10, 2018 18:58
A script to unfollow everyone on Twitter and another to remove retweets from your Twitter timeline
require 'rubygems'
require 'twitter'
$stdout.sync = true
def rate_limited
begin
yield
rescue Twitter::Error::TooManyRequests => error
sleep error.rate_limit.reset_in + 1
#!/bin/bash
for i in {1..90}
do
num=`printf "%02d" $i`
if ! ls das-00${num}* &> /dev/null; then
echo missing episode ${num}
fi
done
@scottmuc
scottmuc / gist:2876931
Created June 5, 2012 18:53
Why is -rbundle/setup here?
Rakefile is:
task :test do
sh "env > test.env"
end
my local env doesn't have RUBYOPT set, but when I run `rake test` I see the following:
RUBYOPT=-I/Users/ThoughtWorks/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.1.4/lib -rbundler/setup
@scottmuc
scottmuc / 1.WhatIHaveToDo.ps1
Created January 2, 2012 15:31 — forked from ferventcoder/1.WhatIHaveToDo.ps1
Pester - Script variables should reset for every describe
Describe "When installing packages from a packages.config manifest" {
$script:chocolatey_nuget_was_called = $false
$script:chocolatey_rubygem_was_called = $false
$script:chocolatey_webpi_was_called = $false
$script:packageName = ''
$script:version = ''
# content here
}