This file contains hidden or 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
module Kernel | |
def to_hash | |
new_hash = self.instance_variables.reduce({}) do |hash, instance_var| | |
hash[instance_var.to_s[1..-1].to_sym] = self.instance_variable_get instance_var | |
hash | |
end | |
end | |
end |
This file contains hidden or 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
$process = Get-Process -Name "QuantumApp" | |
if ($process -eq $null) { | |
exit | |
} | |
$time = New-TimeSpan -Start $process.StartTime | |
if ($time.Minutes -gt 5) { | |
Stop-Process -Force -Id $process.Id | |
} |
This file contains hidden or 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
<html> | |
<body> | |
<p><h2>Base64 to file</h2></p> | |
<p> | |
Get data with: <pre>cat <file> | gzip -c | base64</pre><br/> | |
Paste below and save to file: | |
</p> | |
<p> | |
<textarea id="content" style="width: 580px; height: 250px;"></textarea> | |
<br/> |
This file contains hidden or 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/ruby | |
# ruby this.rb <wordlist> <command> <param> [cmd] | |
# Ex. C:\Users\Brad Krane\Documents\src\pwd>ruby pwd.rb 10-million-password-list-top-1000000.txt letters 5 "echo Weak PWD" | |
#Weak password | |
#Weak qwerty | |
#Weak dragon | |
#Weak baseball | |
#Weak football | |
throw ArgumentError.new "Invalid aruments: #{ARGV}\nruby this.rb <wordlist> <command> <param> [cmd]" if ARGV.length > 4 || ARGV.length < 3 |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Doses Remaining Estimator</title> | |
</head> | |
<body> | |
<h2>Doses Remaining Estimator</h2> | |
<form> | |
<label for="emptyWeight">Bottle weight (g):</label> |
OlderNewer