Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am iffyuva on github.
* I am iffyuva (https://keybase.io/iffyuva) on keybase.
* I have a public key ASBwKegf9FzYK6QarYyqovbpZ5A2n3fFs3KbalQMaoBdOQo
To claim this, I am signing this object:
@iffyuva
iffyuva / fo.cpp
Last active August 9, 2017 10:07
#include <iostream>
class square {};
class circle {};
template <typename T>
void f(T) { std::cout << "default template" << std::endl; }
void f(square) { std::cout << "square" << std::endl; }
void f(circle) { std::cout << "circle" << std::endl; }
[[:connection,
"GET /_theme HTTP/1.1\r\n" +
"Host: dev.test.dev\r\n" +
"User-Agent: curl/7.51.0\r\n" +
"Accept: */*\r\n" +
"\r\n"]]
[["0f06d8f0-4e0d-0135-4206-60accb741930", :conn_complete]]
[[:connected]]
rake authors[commit_range,format,sep] # list of authors
rake clean # Remove any temporary products
rake clobber # Remove any generated files
rake doc # Generate RDoc under doc/api
rake install:all # Build and install all of the gems as local gems
rake install:rack-protection # Build and install rack-protection as local gem
rake install:sinatra # Build and install sinatra as local gem
rake install:sinatra-contrib # Build and install sinatra-contrib as local gem
rake package:all # Build all packages
rake package:rack-protection # Build rack-protection packages
@iffyuva
iffyuva / detailed_tasks.txt
Created April 8, 2017 15:02
sinatra tasks
opensource/sinatra git> be rake -T
rake authors[commit_range,format,sep] # list of authors
rake clean # Remove any temporary products
rake clobber # Remove any generated files
rake doc # Generate RDoc under doc/api
rake install:all # Build and install all of the as local gems
rake install:rack-protection # Build and install rack-protection as local gem
rake install:sinatra # Build and install sinatra as local gem
rake install:sinatra-contrib # Build and install sinatra-contrib as local gem
rake package:all # Build all packages
@iffyuva
iffyuva / zeusw
Created March 3, 2016 07:32
retrying zeus in a loop
#!/bin/bash
zeus_error_code=2
while [ $zeus_error_code -ne 0 ] && [ $zeus_error_code -ne 1 ]
do
zeus "$@"
zeus_error_code=$?
done
@iffyuva
iffyuva / be rake
Created November 5, 2015 01:36
rbkit specs
opensource/rbkit git:(master)> be rake ruby-2.2.3
checking for rb_postponed_job_register_one()... yes
checking for rb_profile_frames()... yes
checking for rb_tracepoint_new()... yes
checking for RUBY_INTERNAL_EVENT_NEWOBJ... yes
checking for main() in -lzmq... yes
checking for zmq.h... no
checking for main() in -lstdc++... yes
checking for main() in -lzmq... yes
checking for zmq.h... yes
@iffyuva
iffyuva / gist:fd33796f7a9ed7d726a3
Created October 19, 2014 09:49
osx 10.10 yosemite invoker launch plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.codemancers.invoker</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>-c</string>
diff --git a/Gemfile b/Gemfile
index ec44331..4b7a8f1 100644
--- a/Gemfile
+++ b/Gemfile
@@ -65,6 +65,9 @@ group :development do
# for style-guide. Need coderay also. But, pry seems to import it.
gem 'kss', '~> 0.5.0'
+
+ # for profiling.