Skip to content

Instantly share code, notes, and snippets.

View BrianTheCoder's full-sized avatar

Brian Smith BrianTheCoder

View GitHub Profile
#!/bin/bash
FILE=$1
HOSTNAME=$2
USER=cfeduke
SPLIT_SIZE=3145728 # bytes, 3 MiB (1024*1024*3)
SCP_MAX_COUNT=4 # no. of maximum scps at once
cp $FILE /tmp
cd /tmp
{
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme",
"font_size": 13,
"ignored_packages":
[
"AdvancedNewFile",
"Vintage"
],
"tab_size": 2,
"translate_tabs_to_spaces": true,
# defines module and class
module Spree
class User
end
end
# defines class errors if module not defined
class Spree::User
end
class AppDelegate
def application(application, didFinishLaunchingWithOptions:launchOptions)
@alert = UIAlertView.alloc.initWithTitle("Hello", {
message: "Hello, Rubymotion",
delegate: nil,
cancelButtonTitle: "OK",
otherButtonTitles: nil
})
@alert.show
user ubuntu;
pid /var/run/nginx.pid;
worker_processes auto;
worker_rlimit_nofile 100000;
events {
worker_connections 2048;
multi_accept on;
use epoll;
}
[04/17@14:45] brianthecoder:twenty_jeans_store (production)‽ ./bin/rails s
Bundler is using a binstub that was created for a different gem.
This is deprecated, in future versions you may need to `bundle binstub rails` to work around a system/bundle conflict.
Usage:
rails new APP_PATH [options]
Options:
-r, [--ruby=PATH] # Path to the Ruby binary of your choice
# Default: /Users/brianthecoder/.rvm/rubies/ruby-2.1.0/bin/ruby
-m, [--template=TEMPLATE] # Path to some application template (can be a filesystem path or URL)
{
"work": {
"id": "2c1345831b511b94e6322a847b6f84f9",
"stacks": {
"staging_alias": "061cacd1de1d6d4432df6fc8f78f8cc0",
"production_alias": "e933fcce44516f26b978eb2a2e6ca5a5"
}
}
}
production:
adapter: postgresql
encoding: unicode
database: <%= ENV['POSTGRESQL_DATABASE'] %>
host: <%= ENV['POSTGRESQL_HOST'] %>
port: 5432
username: <%= ENV['POSTGRESQL_USERNAME'] %>
password: <%= ENV['POSTGRESQL_PASSWORD'] %>
pool: 5
timeout: 5000
[07/23@22:37] brianthecoder:store (master)‽ ./bin/rake db:create db:migrate
/Users/brianthecoder/.rvm/gems/ruby-2.1.2/gems/activerecord-4.1.4/lib/active_record/connection_adapters/postgresql_adapter.rb:898:in `rescue in connect': FATAL: database "ohm_depot_dev" does not exist
Run `$ bin/rake db:create db:migrate` to create your database (ActiveRecord::NoDatabaseError)
CarouselDemoCtrl = ($scope) ->
$scope.myInterval = 5000
slides = $scope.slides = []
$scope.addSlide = ->
newWidth = 600 + slides.length
slides.push
image: "http://placekitten.com/" + newWidth + "/300"
text: [
"More"
"Extra"