Skip to content

Instantly share code, notes, and snippets.

Ed Tewiah etewiah

Block or report user

Report or block etewiah

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 gist:b53b93cfedeedc44d49d624c664be60b
2018-01-29T02:22:40.331758837Z app[web.1]: [9ce2d1f3-a09d-41c5-9ea9-b4daf4afd36d] vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/model_schema.rb:343:in `columns_hash'
2018-01-29T02:22:40.331764530Z app[web.1]: [9ce2d1f3-a09d-41c5-9ea9-b4daf4afd36d] vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/dynamic_matchers.rb:60:in `block in valid?'
2018-01-29T02:22:40.331770265Z app[web.1]: [9ce2d1f3-a09d-41c5-9ea9-b4daf4afd36d] vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/dynamic_matchers.rb:60:in `each'
2018-01-29T02:22:40.331776462Z app[web.1]: [9ce2d1f3-a09d-41c5-9ea9-b4daf4afd36d] vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/dynamic_matchers.rb:60:in `all?'
2018-01-29T02:22:40.331782294Z app[web.1]: [9ce2d1f3-a09d-41c5-9ea9-b4daf4afd36d] vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/dynamic_matchers.rb:60:in `valid?'
2018-01-29T02:22:40.331788025Z app[web.1]:
View gist:e8ca77dbc401a0bcdd2962fce8333e66
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.3.4
-----> Installing dependencies using bundler 1.15.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
@etewiah
etewiah / count_total_project_code_lines_in_sublime
Last active Aug 29, 2015 — forked from Hexodus/count_total_project_code_lines_in_sublime
Count total code lines in project using Sublime texteditor
View count_total_project_code_lines_in_sublime
// Go to menue:
// find->find in files
// Switch on reg_ex button
// Find:
^(.*)$
// Where:
c:\your_folder\,*.php,*.phtml,*.js,*.inc,*.html, -*/folder_to_exclude/*
// Then click on the find button
// Be careful to not click on Replace!!!
View experiment to speed up discourse in dev
curl http://localhost:3000/assets/preload_store.js -O
curl http://localhost:3000/assets/locales/i18n.js -O
curl http://localhost:3000/assets/locales/en.js -O
curl http://localhost:3000/assets/logster.js -O
curl http://localhost:3000/assets/env.js -O
curl http://localhost:3000/assets/discourse/lib/probes.js -O
curl http://localhost:3000/assets/handlebars.js -O
curl http://localhost:3000/assets/development/jquery-2.1.1.js -O
curl http://localhost:3000/assets/jquery_include.js -O
curl http://localhost:3000/assets/development/ember.js -O
@etewiah
etewiah / gist:5454122
Created Apr 24, 2013
Use Gh3 library to recurse over branches and files in a github repository
View gist:5454122
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>gh3</title>
</head>
<body>
<h2>Get file contents</h2>
View My aliases.txt
alias dbreset='rake db:drop; rake db:create; rake db:migrate; rake db:seed; rake db:test:prepare'
alias dbupdate='rake db:migrate; rake db:seed; rake db:test:prepare'
alias gcall='git add .; git commit -am'
You can’t perform that action at this time.