THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| #!/bin/bash | |
| for f in `find . -type f -name "*.rar"` | |
| do | |
| echo "Unpacking " $f " into " `dirname $f` | |
| unrar x -y $f `dirname $f` | |
| rm $f | |
| done |
| set :shared_children, shared_children << 'tmp/sockets' | |
| namespace :deploy do | |
| desc "Start the application" | |
| task :start, :roles => :app, :except => { :no_release => true } do | |
| run "cd #{current_path} && RAILS_ENV=#{stage} bundle exec puma -b 'unix://#{shared_path}/sockets/puma.sock' -S #{shared_path}/sockets/puma.state --control 'unix://#{shared_path}/sockets/pumactl.sock' >> #{shared_path}/log/puma-#{stage}.log 2>&1 &", :pty => false | |
| end | |
| desc "Stop the application" | |
| task :stop, :roles => :app, :except => { :no_release => true } do |
| # config/deploy.rb | |
| # probably a lot of ways to improve this... | |
| set :application, 'my_app' | |
| set :repo_url, '[email protected]:USERNAME/my_app.git' | |
| # should set up a deploy user | |
| set :user, 'deploy' | |
| set :deploy_to, '/var/www/my_app' | |
| set :scm, :git |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| // ==UserScript== | |
| // @name HSBC - Friendly account names | |
| // @namespace http://chrisroos.co.uk/ | |
| // @description Replace account numbers with friendly names to help differentiate accounts in HSBC UK Business banking | |
| // @include https://www.business.hsbc.co.uk/* | |
| // ==/UserScript== | |
| (function() { | |
| var accounts = { | |
| '12345678': 'Current account', |
| #!/bin/bash | |
| # get-docker-socket-from-remote <name> <user>@<host> | |
| # Create a unix socket at /tmp/<name>-docker.sock which, when | |
| # used will ssh to <user>@<host> and connect to the docker | |
| # socket at <host>:///var/run/docker.sock | |
| # Note: | |
| # 1. This forks a subjob that manages the local socket. | |
| # Rmember to kill that when your finished |
This list is based on aliases_spec.rb.
You can see also Module: RSpec::Matchers API.
| matcher | aliased to | description |
|---|---|---|
| a_truthy_value | be_truthy | a truthy value |
| a_falsey_value | be_falsey | a falsey value |
| be_falsy | be_falsey | be falsy |
| a_falsy_value | be_falsey | a falsy value |
| ##TCP FLAGS## | |
| Unskilled Attackers Pester Real Security Folks | |
| ============================================== | |
| TCPDUMP FLAGS | |
| Unskilled = URG = (Not Displayed in Flag Field, Displayed elsewhere) | |
| Attackers = ACK = (Not Displayed in Flag Field, Displayed elsewhere) | |
| Pester = PSH = [P] (Push Data) | |
| Real = RST = [R] (Reset Connection) | |
| Security = SYN = [S] (Start Connection) |
| require "active_record" | |
| ActiveRecord::Base.establish_connection('postgres:///testing') | |
| ActiveRecord::Migration.verbose = false | |
| ActiveRecord::Migration.class_eval do | |
| create_table :played_quizzes, force: true do |t| | |
| t.integer :player_ids, array: true | |
| t.json :quiz_snapshot | |
| end |