Skip to content

Instantly share code, notes, and snippets.

View hackervera's full-sized avatar
😻

Veronika Tyler hackervera

😻
View GitHub Profile
@hackervera
hackervera / 0_reuse_code.js
Last active August 29, 2015 14:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
{
"connect" : ["irc://freenode/#pdxtech",
"irc://freenode/#pdxbots"],
"networks" : { "freenode" => {"host": "irc.freenode.net"},
"psu" => {"host": "irc.cat.pdx.edu"}
}
}
@hackervera
hackervera / build-nginx
Created October 2, 2011 17:19 — forked from neophiliac/build-nginx
build nginx with passenger and ssl
# run from inside nginx directory
./configure --prefix='/opt/nginx' --with-pcre='../pcre-8.12' \
--add-module='/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.8/ext/nginx' \
--without-http_autoindex_module \
--without-http_ssi_module \
--with-openssl=../openssl-1.0.0d/ \
--http-log-path=/var/log/nginx/access.log \
--error-log-path=/var/log/nginx/error.log \
--pid-path=/var/run/nginx.pid \
require "rubygems"
require "superfeedr"
## You can have all the XMPP logging by changing the Skates log level
Skates.logger.level = Log4r::DEBUG
##
# Don't ever forget that all this is ASYNCHRONOUS...
# If you don't run EM in your program, then it will started for... however, EM.run begin a blocking call, you shoudl probably run it into a specific Thread to keep the rest of your app running :)
@hackervera
hackervera / gist:502937
Created August 1, 2010 04:14 — forked from donpdonp/gist:493101
issac bot ruby
require 'json'
require 'isaac'
configure do |c|
c.nick = "icecondor"
c.server = "irc.freenode.net"
c.port = 6667
end
on :connect do
Common minimal format for sending just lat/long data
[
{
uuid: "550e8400-e29b-41d4-a716-446655440000",
date: "2010-04-30T16:50:00Z",
location: {
position: {
latitude: 45.5118,
longitude: -122.6433
}