Skip to content

Instantly share code, notes, and snippets.

Avatar
🧘‍♂️
Working from home

John Krueger jtmkrueger

🧘‍♂️
Working from home
View GitHub Profile
View gist:8c23a86dd75a1487396a794d3e553e19
11:53:38 web.1 | --- Error ---
11:53:38 logs.1 | Started GET "/referrer_profile_notifications" for 127.0.0.1 at 2020-09-17 11:53:25 -0600
11:53:38 web.1 | Internal error from Jard. I'm sorry to mess up your debugging experience.
11:53:38 logs.1 | (5.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
11:53:38 web.1 | It would be great if you can submit an issue in https://github.com/nguyenquangminh0711/ruby_jard/issues
11:53:38 logs.1 | Processing by ReferrerProfileNotificationsController#index as HTML
11:53:38 web.1 |
11:53:38 logs.1 | User Load (2.0ms) SELECT "users".* FROM "users" WHERE "users"."remember_token" = $1 ORDER BY "users"."id" ASC LIMIT $2 [["remember_token", "7c552efb1a28bd4f5005dcf3598803d9f77aee8a"], ["LIMIT", 1]]
11:53:38 web.1 | -2..-1 out of range
11:53:38 logs.1 | ↳ app/controllers/application_contr
View keybase.md

Keybase proof

I hereby claim:

  • I am jtmkrueger on github.
  • I am jtmkrueger (https://keybase.io/jtmkrueger) on keybase.
  • I have a public key ASChOjcdDK9mFND9W4s0bkgPjUmxOYYsbHTMH4ocs4sfTwo

To claim this, I am signing this object:

View pretend_controller.rb
class PretendController < ApplicationController
def create
render params
end
end
View pkg_install-err.log
▶ cat /var/db/pkgin/pkg_install-err.log
---Jan 19 13:12:30: installing libssh2-1.6.0...
---Jan 19 13:12:30: installing curl-7.44.0...
---Jan 19 13:23:50: installing patch-2.7.5...
---Jan 19 13:32:12: installing libffi-3.2.1...
---Jan 19 13:32:12: installing python27-2.7.10...
---Jan 19 13:32:14: installing nodejs-4.1.1...
---Jan 20 14:40:40: installing libpaper-1.1.24...
---Jan 20 14:40:41: installing ghostscript-fonts-8.11nb3...
---Jan 20 14:40:41: installing giflib-5.1.1...
View lead up to error
~
▶ pkgin -f up
cleaning database from http://pkgsrc.joyent.com/packages/Darwin/2015Q3/x86_64/All entries...
processing remote summary (http://pkgsrc.joyent.com/packages/Darwin/trunk/x86_64/All)...
pkg_summary.xz 0% 0 0.0KB/s 0.0KB/s --:-- ETAcleaning database from http://pkgsrc.joyent.com/packages/Darwin/trunk/x86_64/All entries...
pkg_summary.xz 100% 1776KB 888.2KB/s 944.4KB/s 00:02
~
▶ pkgin
@jtmkrueger
jtmkrueger / batch_three_export.py
Created Mar 31, 2016
Batch export all objects in the scene as seperate three.js json files
View batch_three_export.py
import bpy
import os
# Batch exporting of all objects in the scene into separate json files
# access the scene
scene = bpy.context.scene
# get the current path and make a new folder for the exported meshes
path = bpy.path.abspath('//' + bpy.path.basename(bpy.context.blend_data.filepath) + '_jsonexport/')
View axlsx_test.rb
# controller
def show
render :xlsx => 'show', :filename => 'simple.xlsx'
end
#show.xlsx.axlsx
Axlsx::Package.new do |p|
p.workbook.add_worksheet(:name => "Test") do |sheet|
# sheet.add_row [@final_report.id, @final_report.reporting_date, @final_report.created_at]
@jtmkrueger
jtmkrueger / bairep
Created Sep 17, 2014
broken attachments in rails_email_preview
View bairep
Started GET "/FleetDASH/emails/campaign_mailer_preview-p_positive/attachments/training_button.png" for 127.0.0.1 at 2014-09-17 11:44:40 -0600
Processing by RailsEmailPreview::EmailsController#show_attachment as PNG
Parameters: {"email_locale"=>:en, "preview_id"=>"campaign_mailer_preview-p_positive", "filename"=>"graph_1"}
Processing by RailsEmailPreview::EmailsController#show_attachment as PNG
Parameters: {"email_locale"=>:en, "preview_id"=>"campaign_mailer_preview-p_positive", "filename"=>"graph_2"}
Processing by RailsEmailPreview::EmailsController#show_attachment as PNG
Parameters: {"email_locale"=>:en, "preview_id"=>"campaign_mailer_preview-p_positive", "filename"=>"header"}
(1.0ms) SET search_path TO fleetdash,public
Completed 404 Not Found in 32ms
Completed 404 Not Found in 43ms
View README.md

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

View index.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Mocha Spec Runner</title>
<link rel="stylesheet" href="bower_components/mocha/mocha.css">
</head>
<body>
<div id="mocha"></div>