I hereby claim:
- I am kirkelifson on github.
- I am kirkelifson (https://keybase.io/kirkelifson) on keybase.
- I have a public key whose fingerprint is 7C6C 9C5D 6CCA 5950 D216 627C 8825 A623 5817 B4C8
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
def all_nil?(object, *options) | |
options.map { |item| object.send(item) }.compact.empty? | |
end |
#!/usr/bin/env ruby | |
# Usage: generate_params.rb [/path/to/db/schema.rb] [table name] | |
# By: Kirk Elifson <kirk [at] parodybit [dot] net> | |
def print_usage | |
puts "", "\tUsage: ruby generate_params.rb /path/to/db/schema.rb table_name", "" | |
exit | |
end | |
print_usage if ARGV.length != 2 |
# Example: | |
# approvable_id = 7 | |
# approval_type = "Finding" | |
# Finding.find(7) is yielded | |
Approval.pluck(:approvable_id, :approvable_type).sort.uniq.map { |id, type| Object.const_get(type).find(id) }.count |
phones = Model.attribute_names.select { |c| c.include? 'phone' }.reject { |c| c.include? 'type' }.map(&:to_sym) |
require 'rubyflare' | |
ip = { content: `curl -s https://ifconfig.co`.chomp } | |
zone_name = "parodybit.net" | |
hostnames = ['host1.parodybit.net', 'host2.parodybit.net', 'host3.parodybit.net'] | |
email = 'EMAIL-HERE' | |
api_key = 'API-KEY-HERE' | |
cloudflare = Rubyflare.connect_with(email, api_key) | |
zone_id = cloudflare.get('zones').results.select{ |z| z[:name] == zone_name }.first[:id] |
<input type="hidden" id="bad_words_list" class="input-text" value="absofuckinlutely,ahole,badass,anus,arse,a55,as5,a5s,arsehole,ash0les,asholes,ass,asss,a$$$,a$$,assbag,assbandit,biiiach,biiach,assbanger,assbite,assclown,asscock,asscracker,asses,peckerhead,pussy,fucckk,gay,fuucckk,fucckkk,fucck,nigguh,hairydick,dickhead,niggah,assface,assfuck,assfucker,assgoblin,sh!t,assh0le,assh0lez,fuc,fuk,asshat,ass-hat,nigga,niga,asshead,dick beaters,b1tch,motherfucker,fagit,asshole,assholes,assholz,asshopper,ass-jabber,assjacker,fkkin,fkkn,asslick,asslicker,assmonkey,assmunch,assmuncher,assnigger,nigger,asspirate,ass-pirate,assshit,assshole,asssucker,asswad,asswipe,azzhole,bampot,bassterds,bastard,bastards,bastardz,basterds,basterdz,beaner,biatch,biotch,bitch,bitchass,bitches,bitchs,bitchtits,bitchy,blowjob,blowjob,blowjobs,boffing,recktum,rectum,renob,retard,rimjob,ruski,cunt, cunts,cock,sadist,sandnigger,sandnigger,scank,schlong,screwing,scrote,scrotum,seamen,semen,sex,sexual,sexualtoy,sexuallypopularwoman,sh1ter,sh1ts |
<meta charset="UTF-8"><title>Knightsec™ Distraction Channel</title> | |
<style> | |
a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-collapse:collapse;border-spacing:0} | |
#watermark | |
{ | |
position:fixed; | |
bottom:8%; | |
right:8%; | |
opacity:0.5; |
require 'filesize' | |
require 'win32ole' | |
drive_list = ["D:", "H:"] | |
file_system = WIN32OLE.new("Scripting.FileSystemObject") | |
drives = file_system.Drives | |
drives.each do |drive| | |
next unless drive_list.include? drive.Path | |
file = File.open("#{drive.Path}//drive_status.txt", "w") |
#!/usr/bin/env ruby | |
require 'json' | |
require 'awesome_print' | |
require 'colorize' | |
class SpecRunner | |
FILE_NAME = "spec_run_#{Time.now.strftime("%H%M%S_%m%d%y_%Z")}.log" | |
TEST_LOG_FILE = 'log/test.log'.freeze | |
LOG_FILE_SIZE_LIMIT = 500 |