Skip to content

Instantly share code, notes, and snippets.

View darrikmazey's full-sized avatar

Darrik Mazey darrikmazey

  • DarmaSoft, LLC.
  • Akron, Ohio, U.S.A.
View GitHub Profile
@darrikmazey
darrikmazey / config
Created June 9, 2014 19:28
irssi config
{
address = "irc.freenode.net";
chatnet = "freenode";
port = "6697";
use_ssl = "yes";
ssl_verify = "yes";
ssl_capath = "/etc/ssl/certs";
autoconnect = "yes";
}
GET /_search
{
"query": {
"bool": {
"must": [
{"term":
{"client_uuid": "d6428fbf-bf10-4a27-a746-1cc0dffed55e"}},
{"term":
{"test": "system"}}
]
package com.darmasoft.parental_informant;
import java.io.IOException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.UnknownHostException;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSocket;
package com.darmasoft.parental_informant;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.HttpResponse;
// jQuery Plugin Boilerplate
// A boilerplate for jumpstarting jQuery plugins development
// version 1.1, May 14th, 2011
// by Stefan Gabos
// remember to change every instance of "tablificate" to the name of your plugin!
(function($) {
// here we go!
$.tablificate = function(element, options) {
Buildfile: /home/darrik/src/jitsi-src-2.2.4603.9615/build.xml
clean-bundle-repositories:
clean-test-reports:
clean-macosx:
clean:
class ApplicationController < ActionController::Base
protect_from_forgery
helper_method :account_url
def after_sign_in_path_for(resource)
binding.pry
method_name = "after_sign_in_path_for_#{resource.class.name.underscore}"
if self.respond_to?(method_name.to_sym)
return self.send(method_name, resource)
<%= form_tag add_reps_user_path(current_user) do %>
<% @exercises.each do |exercise| %>
<%= exercise.name %>
<%= number_field_tag "exercises[#{exercise.id}]" %>
<br />
<% end %>
<%= submit_tag %>
<% end %>
@darrikmazey
darrikmazey / fastcgi.conf
Created April 26, 2013 01:48
nginx with php and rails setup
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
@darrikmazey
darrikmazey / lgfreenectdevice.cpp
Created January 12, 2011 15:52
FreenectDevice callbacks
void LGFreenectDevice::VideoCallback(void* _rgb, uint32_t timestamp)
{
static int frame = 0;
frame++;
std::cout << "RGB callback (frame " << frame << ")" << std::endl;
m_rgb_mutex.lock();
uint8_t* rgb = static_cast<uint8_t*>(_rgb);
rgbMat.data = rgb;
m_new_rgb_frame = true;