Skip to content

Instantly share code, notes, and snippets.

💭
Probably in a meeting

Matt Lambie mlambie

💭
Probably in a meeting
Block or report user

Report or block mlambie

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am mlambie on github.
  • I am mlambie (https://keybase.io/mlambie) on keybase.
  • I have a public key whose fingerprint is 0831 CEAE CB30 AF49 596E 4C11 B0A7 C398 DB3C F117

To claim this, I am signing this object:

View apache_extended_status
root@arcee:/var/log# curl http://localhost/server-status?auto
BusyWorkers: 1
IdleWorkers: 9
Scoreboard: _W.________.....................................................................................................................................................................................................................................................
VS.
mlambie@blitzwing:~$ curl http://localhost/server-status?auto
Total Accesses: 557
Total kBytes: 17924
@mlambie
mlambie / gist:1088398
Created Jul 18, 2011
dd progress bar
View gist:1088398
mlambie@destro:~/Downloads$ gzcat pfsense.img.gz | pv | dd of=/dev/disk2 bs=16k
342MB 0:01:59 [2.82MB/s] [ <=> ]
@mlambie
mlambie / inflections.rb
Created Jun 1, 2011
Manual inflections
View inflections.rb
# Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format
# (all these examples are active by default):
# ActiveSupport::Inflector.inflections do |inflect|
# inflect.plural /^(ox)$/i, '\1en'
# inflect.singular /^(ox)en/i, '\1'
# inflect.irregular 'person', 'people'
# inflect.uncountable %w( fish sheep )
# end
@mlambie
mlambie / env.rb
Created May 31, 2011
Additional webrat configuration
View env.rb
#!/usr/bin/env ruby
$: << File.expand_path(File.dirname(__FILE__))
require 'cucumber/nagios'
require 'webrat/adapters/mechanize'
require 'webrat_logging_patches'
class ResponseHelper
def response
View gist:1000198
Feature: thefrontiergroup.com.au
It should be up
And I should be able to search for things
Scenario: Searching for things
When I go to "http://blog.thefrontiergroup.com.au/"
And I fill in "s" with "json_decode"
And I press "searchsubmit"
Then I should see "Search Results for &lsquo;<span>json_decode</span>&rsquo;"
And I should see "json_decode\(\) Not Working in PHP?"
View gist:1000197
Feature: thefrontiergroup.com.au
It should be up
And I should be able to search for things
Scenario: Searching for things
When I go to "http://blog.thefrontiergroup.com.au/"
And I fill in "s" with "json_decode"
And I press "searchsubmit"
Then I should see "Search Results for &lsquo;<span>json_decode</span>&rsquo;"
And I should see "json_decode\(\) Not Working in PHP?"
View find | xargs mv
find . -name "*.avi" -print0 | xargs -0 -I {} mv {} .
@mlambie
mlambie / gist:875556
Created Mar 18, 2011
Mailman headers
View gist:875556
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <list.ruxcon.org.au>
List-Unsubscribe: <https://ruxcon.org.au:9754/cgi-bin/mailman/options/list>, <mailto:list-request@ruxcon.org.au?subject=unsubscribe>
List-Archive: <https://ruxcon.org.au:9754/cgi-bin/mailman/private/list>
List-Post: <mailto:list@ruxcon.org.au>
List-Help: <mailto:list-request@ruxcon.org.au?subject=help>
List-Subscribe: <https://ruxcon.org.au:9754/cgi-bin/mailman/listinfo/list>, <mailto:list-request@ruxcon.org.au?subject=subscribe>
Sender: list-bounces@ruxcon.org.au
Errors-To: list-bounces@ruxcon.org.au
@mlambie
mlambie / gist:847017
Created Feb 28, 2011
Check exposed SNMP services
View gist:847017
mlambie@blaster:/root/bin$ snmpwalk -v1 -c public localhost 1.3.6.1.4.1.8072.1.3.2.4.1 -On
.1.3.6.1.4.1.8072.1.3.2.4.1.2.7.112.102.115.101.110.115.101.1 = STRING: /var/backups/pfsense/config-snarl-20110228.xml
.1.3.6.1.4.1.8072.1.3.2.4.1.2.7.112.102.115.101.110.115.101.2 = STRING: Mon Feb 28 10:00:01 +0800 2011
.1.3.6.1.4.1.8072.1.3.2.4.1.2.7.112.102.115.101.110.115.101.3 = STRING: 17320
.1.3.6.1.4.1.8072.1.3.2.4.1.2.7.117.112.100.97.116.101.115.1 = STRING: 0
.1.3.6.1.4.1.8072.1.3.2.4.1.2.7.117.112.100.97.116.101.115.2 = STRING: 0
.1.3.6.1.4.1.8072.1.3.2.4.1.2.7.117.112.100.97.116.101.115.3 = STRING: 0
.1.3.6.1.4.1.8072.1.3.2.4.1.2.8.105.114.111.110.112.111.114.116.1 = STRING: /var/backups/ironport/C160-00219BFB6D96-88YJDH1-20110228T115752.xml
.1.3.6.1.4.1.8072.1.3.2.4.1.2.8.105.114.111.110.112.111.114.116.2 = STRING: Mon Feb 28 11:57:52 +0800 2011
.1.3.6.1.4.1.8072.1.3.2.4.1.2.8.105.114.111.110.112.111.114.116.3 = STRING: 10249
You can’t perform that action at this time.