Tested in Mac OS X: super == command
Open/Goto
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
| namespace :deploy do | |
| desc "Hot-reload God configuration for the Resque worker" | |
| task :reload_god_config do | |
| sudo "god stop resque" | |
| sudo "god load #{File.join(deploy_to, 'current', 'config', 'resque-' + rails_env + '.god')}" | |
| sudo "god start resque" | |
| end | |
| end | |
| # append to the bottom: |
| # Based on work from http://mifsud.me/simple-two-legged-oauth-provider-in-rails-2 | |
| # Note that you need a user with :api_key and :secret fields | |
| require 'oauth/request_proxy/rack_request' | |
| class ApplicationController < ActionController::Base | |
| protect_from_forgery | |
| protected | |
| def run_oauth_check |
| # http://stackoverflow.com/questions/14972253/simpleform-default-input-class | |
| # https://github.com/plataformatec/simple_form/issues/316 | |
| inputs = %w[ | |
| CollectionSelectInput | |
| DateTimeInput | |
| FileInput | |
| GroupedCollectionSelectInput | |
| NumericInput | |
| PasswordInput |
| #!/bin/sh | |
| # | |
| # puma - this script starts and stops the puma daemon | |
| # | |
| # chkconfig: - 85 15 | |
| # description: Description \ | |
| # goes here... | |
| # processname: puma | |
| # config: /etc/puma.conf | |
| # pidfile: /home/stanislaw/apps/micro-apps/puma/puma.pid |
| # sudo ln -s ~/nginx.conf unicorn.conf | |
| upstream app_server { | |
| server unix:/tmp/unicorn_padrino.sock fail_timeout=0; | |
| } | |
| server { | |
| listen 80; | |
| charset utf-8; | |
| server_name db.innshine.com; |
| package controllers; | |
| import controllers.Constants; | |
| import play.mvc.Controller; | |
| import utils.PaginationInfo; | |
| import java.util.List; | |
| /** | |
| * Sample controller. | |
| */ |
| public class Application extends Controller { | |
| public static void index() { | |
| render(); | |
| } | |
| public static void uploadPicture(Picture picture) { | |
| picture.save(); | |
| index(); | |
| } |
| create this file in your /root folder | |
| $ fleetctl load swapon.service | |
| $ fleetctl start swapon.service | |
| This will create swap file on all nodes of your CoreOS cluster without prior setup. | |
| See also http://cloudinit.readthedocs.org/en/latest/topics/examples.html#adjust-mount-points-mounted |