/etc/security/limits.conf
elasticsearch hard memlock 100000
/etc/default/elasticsearch
# myapp | |
upstream unicorn_myapp { | |
server unix:/var/rails/myapp/current/tmp/sockets/unicorn.sock fail_timeout=0; | |
} | |
server { | |
server_name myapp.com www.myapp.com; | |
root /var/rails/myapp/current/public; |
require 'rspec/core/rake_task' | |
RSpec::Core::RakeTask.new(:spec) do |t| | |
t.rspec_opts = '--format html --out reports/rspec_results.html' | |
end | |
namespace :rspec_report do | |
desc 'Run all specs and generate RSpec report in HTML' | |
task :html => :spec |
require 'mina/bundler'
package main | |
import ( | |
"database/sql" | |
"gopkg.in/gorp.v1" | |
"log" | |
"strconv" | |
"github.com/gin-gonic/gin" | |
_ "github.com/go-sql-driver/mysql" |
namespace :rabbit do | |
def get_queues | |
`#{@base_command} list queues | awk '{print$4}' | grep -vw '|' | grep -vw 'name' | awk 'NF'` | |
end | |
def get_queues_with_count | |
`#{@base_command} list queues | awk '{print$18, $4}' | grep -vw '|' | grep -vw 'name' | awk 'NF'` | |
end |
class SetupHstore < ActiveRecord::Migration | |
def self.up | |
enable_extension "hstore" | |
end | |
def self.down | |
disable_extension "hstore" | |
end | |
end |
###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
First, install the required software:
geth.exe --dev --ipcpath geth.ipc console
In open Ubuntu 18.04 machine click Parallels Actions -> "Install Parallels Tools"
A "Parallels Tools" CD will popup on your Ubuntu desktop.
Open it by double mouse click, copy all the content to a new, empty directory on a desktop, name it for e.g. "parallels_fixed"
Open terminal, change directory to parallels_fixed (cd ~/Desktop/parallels_fixed
)
Make command line installer executable (chmod +x install
)
Change directory to "installer" (cd installer
)
Make few other scripts executable: chmod +x installer.* *.sh prl_*