This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'watir' | |
require 'spec' | |
Watir::Browser.default = 'firefox' | |
describe "test Drupal frontend" do | |
before(:each) do | |
@browser ||= Watir::Browser.new | |
@domain ||= 'example.org' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby1.9.1 | |
require "rubygems" | |
require "test/unit" | |
require "watir" | |
$site = ARGV[0] | |
puts $site | |
if ($site[-1,1] != "/") | |
puts "url must end in a slash" | |
exit | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'webrat' | |
require 'spec/test/unit' | |
include Webrat::Methods | |
include Webrat::Matchers | |
Webrat.configure do |config| | |
config.mode = :mechanize | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://lds.li/post/232870067/bulk-deleting-tumblr-posts | |
require 'rubygems' | |
require 'open-uri' | |
require 'mechanize' | |
require 'pp' | |
site_dashboard_url = 'http://www.tumblr.com/tumblelog/lstoll' | |
email = 'lstoll@lstoll.net' | |
password = 'xxxxxx' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@printer = "/dev/lp0" | |
File.open(@printer, "w") do |f| | |
f.print("#{27.chr}#{112.chr}#{0.chr}#{50.chr}#{250.chr}") # Citizen or Bixolon or IBM or Ithaca or Nexa or Olivetti or Pos-X or Posiflex or Samsung | |
f.print("#{7.chr}") # Citizen or IBM or Start or Westrex | |
f.print("#{27.chr}#{112.chr}#{48.chr}#{55.chr}#{121.chr}") # Bixolon or Epson or Samsung | |
f.print("#{27.chr}#{112.chr}#{0.chr}#{100.chr}#{250.chr}") # TEC or Toshiba or Unisys | |
f.print("#{27.chr}#{112.chr}#{0.chr}#{48.chr}#{251.chr}") # Axiohm or Fujitsu | |
f.print("#{27.chr}#{112.chr}#{0.chr}#{25.chr}#{250.chr}") # Epson or Samsung | |
f.print("#{27.chr}#{112.chr}#{0.chr}#{64.chr}#{240.chr}") # Epson or Samsung | |
f.print("#{27.chr}#{112.chr}#{1.chr}#{50.chr}#{250.chr}") # Citizen (Drawer 2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -uNp --unidirectional-new-file /pentest/web/wfuzz/CHANGELOG wfuzz/CHANGELOG | |
--- /pentest/web/wfuzz/CHANGELOG 1970-01-01 01:00:00.000000000 +0100 | |
+++ wfuzz/CHANGELOG 2010-04-22 00:04:00.000000000 +0100 | |
@@ -0,0 +1,3 @@ | |
+== 22 April 2010 kaerast <kaerast@computergentle.com> == | |
+ * Added hexa-rand which fuzzes random hex values within a given range rather than consecutive values | |
+ * Fixed hexa-range to not send out an extraneous % sign | |
Binary files /pentest/web/wfuzz/dictio.pyc and wfuzz/dictio.pyc differ | |
Binary files /pentest/web/wfuzz/encoders.pyc and wfuzz/encoders.pyc differ | |
diff -uNp --unidirectional-new-file /pentest/web/wfuzz/payloads.py wfuzz/payloads.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'find' | |
modules = [] | |
Find.find('/var/aegir/platforms') { |file| modules << File.basename(file) if File.basename(file) =~ /\.module$/ } | |
puts modules.sort.uniq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This file is part of vbackup. | |
# | |
# vbackup is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. | |
# | |
# vbackup is distributed in the hope that it will be useful, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<pre> | |
<?php | |
$foo = array(); | |
$foo['country'] = "united Kindom"; | |
$foo['street'] = ""; | |
$foo['state'] = "ENG"; | |
print_r( $foo); | |
$bar = array(); | |
$bar['country'] = "Danmark"; | |
$bar['street'] = ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/aegir/drush/drush.php disable dblog && /var/aegir/drush/drush.php enable syslog | |
echo 1 | /var/aegir/drush/drush.php variable set syslog_facility 176 |