This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Something | |
| constructor: -> | |
| @delegateObject = new Messager | |
| class Messager | |
| testing: (int) -> | |
| console.log int | |
| woot: (bool) -> | |
| console.log bool | |
| nothing: (array) -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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' |