Skip to content

Instantly share code, notes, and snippets.

View RickCarlino's full-sized avatar
💾

Rick Carlino RickCarlino

💾
View GitHub Profile
@RickCarlino
RickCarlino / [email protected]
Created May 18, 2019 22:45 — forked from bcomnes/[email protected]
scuttlebot.service: /etc/systemd/service/[email protected]
[Unit]
Description=sbot
[Service]
ExecStart=/usr/local/bin/sbot server --host example.com --blobs.party
# Track https://github.com/ssbc/patchwork/issues/224 for info on --blobs.party
Restart=on-failure
ReadWriteDirectories=/home/%i/.ssb
User=%i
@RickCarlino
RickCarlino / gist:6e24082219e059ff759209390303933d
Created April 15, 2016 00:57 — forked from roryaronson/gist:76c2af8818f66b71422a65c4442853b7
segmentation fault when pairing with the production web app
Want to run `ruby farmbot.rb` now?
y
Connecting...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 12 0 12 0 0 29 0 --:--:-- --:--:-- --:--:-- 29
Conencting to localhost:1883
Connected!
/home/pi/.rvm/gems/ruby-2.3.0/gems/eventmachine-1.0.8/lib/eventmachine.rb:202: [BUG] Segmentation fault at 0x000000
ruby 2.3.0p0 (2015-12-25 revision 53290) [armv7l-linux-eabihf]

#Elasticsearch

Everything looks fine, right?

sudo elasticsearch
[2014-10-31 17:30:57,939][INFO ][node                     ] [Enforcer] version[1.2.1], pid[42230], build[6c95b75/2014-06-03T15:02:52Z]
[2014-10-31 17:30:57,941][INFO ][node                     ] [Enforcer] initializing ...
[2014-10-31 17:30:57,946][INFO ][plugins                  ] [Enforcer] loaded [], sites []
[2014-10-31 17:31:02,040][INFO ][node                     ] [Enforcer] initialized
encryption = (plain_text, key) ->
# Note: plain_text and key must be the same length
return if plain_text.length != > key.length
a = []
b = []
c = []
d = []
for char in w1
class Something
constructor: ->
@delegateObject = new Messager
class Messager
testing: (int) ->
console.log int
woot: (bool) ->
console.log bool
nothing: (array) ->
@RickCarlino
RickCarlino / haml-watch.rb
Created September 21, 2012 15:47 — forked from gcorreaq/haml-watch.rb
Watch and compile all haml files on a directory, like sass --watch
#!/usr/bin/env ruby
# Script to watch a directory for any changes to a haml file
# and compile it.
#
# USAGE: ruby haml_watch.rb <directory_to_watch> [output_directory]
#
# Blake Smith / http://blakesmith.github.com/2010/09/05/haml-directory-watcher.html
#
require 'rubygems'