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
| # lib/rethinkdb_session_store.rb | |
| require 'rethinkdb' | |
| class RethinkdbSessionStore < ActionDispatch::Session::AbstractStore | |
| def initialize(app, options = {}) | |
| super | |
| @r = RethinkDB::RQL.new.table('sessions') | |
| end | |
| def get_session(env, session_id) |
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
| description "Application service" | |
| start on runlevel [2345] | |
| stop on runlevel [!2345] | |
| respawn | |
| setuid appuser | |
| setgid www-data | |
| env PATH=/home/user/app/environment/bin |
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
| require 'json' | |
| require 'faraday' | |
| require 'hashie/mash' | |
| class AbstractApi | |
| BASE_URL = ENV['ABSTRACT_API_BASE_URL'] || 'https://myapp.com/api' | |
| API_VERSION = ENV['ABSTRACT_API_BASE_URL_VERSION'] || 'v1' | |
| class Client | |
| attr_reader :access_token, :base_url, :apiver |
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
| # /etc/init/foreverinit.conf | |
| #description "Forever process" | |
| #start on startup | |
| #stop on shutdown | |
| #setuid myuser | |
| #setgid myuser | |
| #expect fork |
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 node | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const exec = require('child_process').execSync; | |
| const [ , , ...args] = process.argv; | |
| // Check if is a git repo | |
| if( !fs.existsSync('./.git') ){ |
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 node | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const exec = require('child_process').execSync; | |
| const uuid = require('uuid'); | |
| const S3_BUCKET = 'YOUR_BUCKET_NAME'; | |
| const [ , , ...args] = process.argv; |
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=Tunnel Client | |
| After=network.target | |
| [Service] | |
| User=root | |
| Restart=always | |
| WorkingDirectory=/etc/tunnel | |
| SyslogIdentifier=tunneld-client | |
| ExecStart=/usr/bin/tunnel -config /etc/tunnel/tunnel.yml start-all |
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
| const ListItems = () => { | |
| const items = [ | |
| "Aline", | |
| "Clemmie", | |
| "Sheba", | |
| "Netty", | |
| "Spencer", | |
| "Aube", | |
| "Monika", | |
| "Mitch", |
OlderNewer