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
# 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
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
def eddington(rides) | |
eds = [] | |
rides.each{ |ride| | |
if (rides.select{ |i| i==ride}.length) >= ride | |
eds.push ride | |
end | |
} | |
eds.sort[-1] | |
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
#!/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 |
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
## | |
# This file is part of the Metasploit Framework and may be subject to | |
# redistribution and commercial restrictions. Please see the Metasploit | |
# Framework web site for more information on licensing and terms of use. | |
# http://metasploit.com/framework/ | |
## | |
require 'msf/core' | |
require 'socket' |
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
# city_sunshine.rb | |
# | |
# Copyright 2010 kaerast <kaerast@alice-laptop> | |
# | |
# This program 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. | |
# | |
# This program is distributed in the hope that it will be useful, |