Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Hardly working

Paul Vudmaska voodoo

🏠
Hardly working
  • San Antonio, Texas
View GitHub Profile
View main.dart
import 'package:flutter/material.dart';
//import 'dart:math';
// import 'package:sticky_headers/sticky_headers.dart';
// https://stackoverflow.com/questions/54151373/is-it-possible-to-select-a-random-icon-in-icons-or-fontawesomeicons-etc
// final List<int> points = <int>[0xe0b0, 0xe0b1, 0xe0b2, 0xe0b3, 0xe0b4];
// final Random r = Random();
// Icon randomIcon() =>
// Icon(IconData(r.nextInt(points.length), fontFamily: 'MaterialIcons'));
@voodoo
voodoo / error.log
Created December 18, 2019 15:33
Foodsoft setup error
View error.log
/Users/vudu/.rbenv/versions/2.4.6/lib/ruby/gems/2.4.0/gems/deface-1.5.3/lib/deface/action_view_extensions.rb:83: warning: toplevel constant Erubi referenced by ActionView::Template::Handlers::ERB::Erubi
/Users/vudu/.rbenv/versions/2.4.6/lib/ruby/gems/2.4.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:419: [BUG] Segmentation fault at 0x00000000000199a1
ruby 2.4.6p354 (2019-04-01 revision 67394) [x86_64-darwin17]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
for more details.
View Mblz Gemfile
# Gemfile
source 'http://rubygems.org'
ruby '2.2.1'
gem "rails", "4.2.0"
gem 'paperclip'
gem 'acts_as_tree'
gem 'acts_as_list'
View summary_tool.py
# coding=UTF-8
from __future__ import division
import re
# This is a naive text summarization algorithm
# Created by Shlomi Babluki
# April, 2013
class SummaryTool(object):
@voodoo
voodoo / gist:1871081
Created February 20, 2012 20:06
Mysql, table size in gigs
View gist:1871081
SELECT concat(table_schema,'.',table_name),
concat(round(table_rows/1000000,2),'M') rows,
concat(round(data_length/(1024*1024*1024),2),'G') DATA,
concat(round(index_length/(1024*1024*1024),2),'G') idx,
concat(round((data_length+index_length)/(1024*1024*1024),2),'G') total_size,
round(index_length/data_length,2) idxfrac
FROM information_schema.TABLES
ORDER BY data_length+index_length DESC LIMIT 20;
View gist:957013
/Library/Ruby/Gems/1.8/gems/builder-3.0.0/lib/builder/xmlbase.rb:135:in `to_xs': wrong number of arguments (1 for 0) (ArgumentError)
from /Library/Ruby/Gems/1.8/gems/builder-3.0.0/lib/builder/xmlbase.rb:135:in `_escape'
from /Library/Ruby/Gems/1.8/gems/builder-3.0.0/lib/builder/xmlbase.rb:140:in `_escape_quote'
from /Library/Ruby/Gems/1.8/gems/builder-3.0.0/lib/builder/xmlmarkup.rb:320:in `_attr_value'
from /Library/Ruby/Gems/1.8/gems/builder-3.0.0/lib/builder/xmlmarkup.rb:311:in `_insert_attributes'
from /Library/Ruby/Gems/1.8/gems/builder-3.0.0/lib/builder/xmlmarkup.rb:310:in `each'
from /Library/Ruby/Gems/1.8/gems/builder-3.0.0/lib/builder/xmlmarkup.rb:310:in `_insert_attributes'
from /Library/Ruby/Gems/1.8/gems/builder-3.0.0/lib/builder/xmlmarkup.rb:293:in `_start_tag'
from /Library/Ruby/Gems/1.8/gems/builder-3.0.0/lib/builder/xmlbase.rb:60:in `method_missing'
from /Library/Ruby/Gems/1.8/gems/builder-3.0.0/lib/builder/xmlbase.rb:34:in `tag!'
@voodoo
voodoo / irbrc
Created December 3, 2009 01:32 — forked from robmerrell/irbrc
View irbrc
require 'rubygems'
require 'hirb'
# irb options
IRB.conf[:AUTO_INDENT]=true
# Hirb
Hirb.enable :pager=>false
# make hashes show up as yaml (from the Hirb documentation)
View ng_error.log
-> "250 2.0.0 OK 1252168398 5sm2094007agc.47\r\n"
<- "QUIT\r\n"
-> "221 2.0.0 closing connection 5sm2094007agc.47\r\n"
[ pid=10883 file=ext/nginx/HelperServer.cpp:460 time=2009-09-05 16:37:04.898 ]:
Uncaught exception in PassengerServer client thread:
exception: write() failed: Broken pipe (32)
backtrace:
in 'void Client::forwardResponse(boost::shared_ptr<Passenger::Application::Session>&, FileDescriptor&)' (HelperServer.cpp:344)
in 'bool Client::handleRequest(FileDescriptor&)' (HelperServer.cpp:438)
in 'void Client::threadMain()' (HelperServer.cpp:484)
View gist:181455
Processing HomeController#index (for 24.182.45.28 at 2009-09-05 16:10:48) [GET]
Processing BlogsController#index (for 24.182.45.28 at 2009-09-05 16:10:48) [GET]
Processing SessionsController#new (for 24.182.45.28 at 2009-09-05 16:10:49) [GET]
Processing PetsController#index (for 24.182.45.28 at 2009-09-05 16:10:49) [GET]
Processing PlogsController#index (for 24.182.45.28 at 2009-09-05 16:10:49) [GET]
Processing UsersController#new (for 24.182.45.28 at 2009-09-05 16:10:50) [GET]
Processing VetsController#index (for 24.182.45.28 at 2009-09-05 16:10:50) [GET]
Processing ApplicationController#index (for 24.182.45.28 at 2009-09-05 16:10:50) [GET]
Processing ApplicationController#index (for 24.182.45.28 at 2009-09-05 16:10:50) [GET]
Processing ApplicationController#index (for 24.182.45.28 at 2009-09-05 16:10:50) [GET]