Skip to content

Instantly share code, notes, and snippets.

View huned's full-sized avatar
💭
I may be slow to respond.

Huned Botee huned

💭
I may be slow to respond.
View GitHub Profile
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: Mailvelope v0.7.0
Comment: Email security by Mailvelope - http://www.mailvelope.com
xsFNBFKNNmEBEADoU75XSFpvTjOI9zCxHwmdUnaQCQlCqieGBPoMxioRvCk5
uH310GRvbXUC4S4QT/NYgd378g5HgBdHjWnHu5pjvl7IUyFvGxRtr1ti/VTC
1jA+5gpR2S539UGRWC140vWsJQmj7Ri0u7liB62YgPOXHpFYXnfkbnAsfYnj
lTElW9ZlvwC8OV9BB+W41TxM/+/o9lRQcoCRbvfvgTdl78h7j75X5BDThQZ1
qGPQio/mZHHD0m/DJePceG8lkpqEOcNiwffoJpvsJ5MwZ51W2tn7OzHDU9dr
zcKrvxwUwBglKQ32yAHJnYtSjSIzPZuK97SD9UVBep+Bzx5uPw3CxoSqO02p
@huned
huned / -
Last active December 28, 2015 09:09
cute
/\___/\
( . . )
[13:33:04] huned@sscarbbrmb52w7:upper-chord-server $ bundle install && bundle exec librarian-puppet install
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/..
Installing rake (10.1.0)
Installing i18n (0.6.4)
Installing minitest (4.7.5)
Installing multi_json (1.7.7)
Installing atomic (1.1.10)
Installing thread_safe (0.1.1)
Installing tzinfo (0.3.37)
@huned
huned / god.log
Created September 16, 2013 22:33
[15:21:15] huned@omg:grove $ sudo god -c config/app.god -D
I [2013-09-16 15:21:25] INFO: Loading config/app.god
I [2013-09-16 15:21:25] INFO: Syslog enabled.
I [2013-09-16 15:21:25] INFO: Using pid file directory: /var/run/god
I [2013-09-16 15:21:25] INFO: Started on drbunix:///tmp/god.17165.sock
I [2013-09-16 15:21:25] INFO: replyd-0 move 'unmonitored' to 'init'
I [2013-09-16 15:21:25] INFO: replyd-0 moved 'unmonitored' to 'init'
I [2013-09-16 15:21:25] INFO: replyd-0 [trigger] process is not running (ProcessRunning)
I [2013-09-16 15:21:25] INFO: replyd-0 move 'init' to 'start'
I [2013-09-16 15:21:25] INFO: replyd-0 start: /Volumes/data/work/seq/grove/config/god/../../script/replyd
@huned
huned / -
Created August 10, 2013 22:44
+----------------------+-------+-------+---------+---------+-----+-------+
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Controllers | 152 | 110 | 4 | 8 | 2 | 11 |
| Helpers | 56 | 50 | 0 | 7 | 0 | 5 |
| Models | 806 | 610 | 12 | 31 | 2 | 17 |
| Mailers | 0 | 0 | 0 | 0 | 0 | 0 |
| Javascripts | 36 | 0 | 0 | 0 | 0 | 0 |
| Libraries | 0 | 0 | 0 | 0 | 0 | 0 |
| Controller tests | 0 | 0 | 0 | 0 | 0 | 0 |
*** LOCAL GEMS ***
bigdecimal (1.2.0)
bundler (1.3.4)
io-console (0.4.2)
json (1.7.7)
minitest (4.3.2)
psych (2.0.0)
rake (0.9.6)
@huned
huned / biggest_image.js
Created May 7, 2013 19:25
get the biggest image on a page with a reasonable aspect ratio with javascript
var biggestImage = function() {
biggest = null;
images = document.getElementsByTagName('img');
for (var i = 0; i < images.length; i++) {
var image = images[i];
var area = image.width * image.height;
var ratio = image.width / image.height;
if(!biggest || (area > 1 && area > (biggest.width * biggest.height) && ((ratio > 1 && ratio < 2) || (1/ratio > 1 && 1/ratio < 2))))
{
biggest = image;
## import sample BOM (use db/BOMs/2/*.csv for a big BOM)
$ time bin/rails runner "BomNode.import_csv 'db/BOMs/2/parts.csv'"
NOTICE: index "bom_nodes_index" does not exist, skipping
real 5m44.958s
user 5m13.760s
sys 0m2.562s
$ time bin/rails runner "BomEdge.import_csv 'db/BOMs/2/bom.csv'"
ssh-dss AAAAB3NzaC1kc3MAAACBAIE9R4sFArK2lrn0l0MLRFxn0ExUMIH/4VPg2gQxE9a1KwTr9nbQpL6H+mxxZLNm9+iKZeKrx+PEqNH6SmhYx0LUQ7FqaYhy89Leoy5uUW87CSd9x7KuxBChK9vvqyf8X7b2mGzWgs5XRzSiLHngn8XGHxVgXQoS1K/w7M+c4I2nAAAAFQDEhsSJQOzio1v8Jiy5ypALwxnaswAAAIB7STNNhWdkb7SeHs0zEEkwgs0nExzBFAZ3WAmZZnb8m9HWTLbwZpGGPRfcWi0cthHIwfzATvzUwEZuzjmeqhS9J7UxSaPOpzg4mTSQFvj6ZHzTg+ZwhNIRAOOaXV2lopq9KChV+ZSjtmZQDs6Js0oJEAuw5DCktKTnkZ1Kf8hsfQAAAIBattEuuohpFnTY5VM8B7mMVib1y1jQ0yPa+sORBFqzdGeJxoPZJvGXhO5L90KW20VtLGRbrrkdrZ75/7Cy1mISe6+Of7WBaZniL+kxUN4+hwuw/2aWjgOUstEhFOf3rilinMc/wBtCjpe5GLLEbDTGLAlZbS0/GwS+hh1GLKfdmg== huned@omg
diff --git a/views/layout.hbs b/views/layout.hbs
index 8b75b6c..17cd328 100644
--- a/views/layout.hbs
+++ b/views/layout.hbs
@@ -19,9 +19,9 @@
<title>Delicious</title>
<link rel="shortcut icon" href="/img/favicon.ico" />
- <link rel="stylesheet" type="text/css" href="/css/app.css">
+ <link rel="stylesheet" type="text/css" href="/css/app.css?1359583814667">