Skip to content

Instantly share code, notes, and snippets.

Kenneth John kennethjohnbalgos

Block or report user

Report or block kennethjohnbalgos

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 Fix Votes Logs.txt
DEBUG [a7799411] == 20171130190719 CleanBulkVotes: migrating ===================================
DEBUG [a7799411] Deleted 10 votes from BulkVote#640 - failed.
DEBUG [a7799411] Deleted 1 votes from BulkVote#1325 - failed.
DEBUG [a7799411] Deleted 22 votes from BulkVote#1553 - failed.
DEBUG [a7799411] Deleted 90 votes from BulkVote#2162 - failed.
DEBUG [a7799411] Deleted 225 votes from BulkVote#2260 - failed.
DEBUG [a7799411] Deleted 4 votes from BulkVote#2434 - failed.
DEBUG [a7799411] Deleted 45 votes from BulkVote#2663 - failed.
DEBUG [a7799411] Deleted 22 votes from BulkVote#2692 - failed.
DEBUG [a7799411] Deleted 225 votes from BulkVote#2722 - failed.
@kennethjohnbalgos
kennethjohnbalgos / database.yml
Created Dec 19, 2016
lms-app/config/database.yml
View database.yml
development:
adapter: mysql2
encoding: utf8
reconnect: false
database: lms_dev
pool: 5
username: root
password: admin
host: 127.0.0.1
View dispute-data.rb
{
"created" => 1326853478,
"livemode" => false,
"id" => "evt_00000000000000",
"type" => "charge.dispute.created",
"object" => "event",
"request" => nil,
"pending_webhooks" => 1,
"api_version" => "2015-10-16",
"data" =>
View develop-spec-logs
~/Rails/rsportz-app (develop ✔) ᐅ be rake test:spec TESTOPTS="-v"
Run options: -v --seed 20732
# Running tests:
* An organization (@child_organization) with parent organization (@parent_organization)
* (@child_organization) does not inherits membership options from (@parent_organization)
* (@child_organization) has waiver set
* (@parent_organization) has waiver set
View trial_email week2 v2.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html style="font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<link href="http://storyls.com/assets/custom_mailer_default-d23fb48479e86bacfeddaf1c6e2b2bdb.css" media="screen" rel="stylesheet" type="text/css">
<style type="text/css">
a {
text-decoration: none;
color: #800020;
}
View trial_email week2 v1.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html style="font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<link href="http://storyls.com/assets/custom_mailer_default-d23fb48479e86bacfeddaf1c6e2b2bdb.css" media="screen" rel="stylesheet" type="text/css">
<style type="text/css">
a {
text-decoration: none;
color: #800020;
}
View trial_email.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html style="font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<link href="http://storyls.com/assets/custom_mailer_default-d23fb48479e86bacfeddaf1c6e2b2bdb.css" media="screen" rel="stylesheet" type="text/css">
<style type="text/css">
a {
text-decoration: none;
color: #800020;
}
@kennethjohnbalgos
kennethjohnbalgos / network.rb
Created Nov 28, 2013
Ruby Mobile Network Method [Nov2013]
View network.rb
def network?(min)
prefix = min.to_s[0..3]
if ['0813', '0907', '0908', '0909', '0910', '0912', '0918', '0919', '0920', '0921', '0928', '0929', '0930', '0938', '0939', '0946', '0947', '0948', '0949', '0989', '0998', '0999'].include?(prefix)
return "smart"
elsif ['0817', '0905', '0906', '0915', '0916', '0917', '0926', '0927', '0935', '0936', '0937', '0994', '0996', '0997'].include?(prefix)
return "globe"
elsif ['0922', '0923', '0925', '0932', '0933', '0934', '0942', '0943'].include?(prefix)
return "sun"
else
return nil
View running processes
deploy 5341 0.0 0.0 4404 104 ? Ss 13:20 0:00 /bin/sh -c /bin/bash -l -c 'cd /mnt/www/lms-bgjobs-stage/releases/20151130022839 && RAILS_ENV=staging bundle exec rake rss:add_random_image_to_blogs --silent >> /log/cron-staging.log 2>&1'
deploy 5347 0.0 0.0 15096 2860 ? S 13:20 0:00 /bin/bash -l -c cd /mnt/www/lms-bgjobs-stage/releases/20151130022839 && RAILS_ENV=staging bundle exec rake rss:add_random_image_to_blogs --silent >> /log/cron-staging.log 2>&1
deploy 6072 4.4 5.4 487824 209264 ? Rl 13:20 1:14 ruby /mnt/www/lms-bgjobs-stage/shared/bundle/ruby/2.1.0/bin/rake rss:add_random_image_to_blogs --silent
deploy 6348 0.0 0.0 4404 100 ? Ss 13:25 0:00 /bin/sh -c /bin/bash -l -c 'cd /mnt/www/lms-bgjobs-stage/releases/20151130022839 && RAILS_ENV=staging bundle exec rake rss:run_update_status --silent >> /log/cron-staging.log 2>&1'
deploy 6349 0.0 0.0 4404 104 ? Ss 13:25 0:00 /bin/sh -c /bin/bash -l -c 'cd /mnt/www/lms-bgjob
View gist:75580adbe58594aefc0f
#!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby -W0
std_trap = trap("INT") { exit! 130 } # no backtrace thanks
HOMEBREW_BREW_FILE = ENV['HOMEBREW_BREW_FILE']
if ARGV == %w{--prefix}
puts File.dirname(File.dirname(HOMEBREW_BREW_FILE))
exit 0
end
You can’t perform that action at this time.