Skip to content

Instantly share code, notes, and snippets.

View jetsgit's full-sized avatar

Jerry Thompson jetsgit

View GitHub Profile
require "bundler/capistrano"
# Below will speed-up deploy by doing a git diff from last deploy
# set :deploy_via, :remote_cache
set :scm, :git
set :repository, "jet@209.166.65.132:aceleathergoods.git"
set :branch, "origin/dev_ruby-1.9.3-p194"
set :migrate_target, :current
set :ssh_options, { :forward_agent => true }
server {
listen 443 default deferred; ## listen for ipv4
listen [::]:443 default ipv6only=on; ## listen for ipv6
server_name aceleathergoods.net;
ssl on;
ssl_certificate /etc/ssl/certs/server.crt;
ssl_certificate_key /etc/ssl/private/server.key;
ssl_session_cache shared:SSL:10m;
server_name aceleathergoods.net ;
@jetsgit
jetsgit / Lilley_Jet_diff
Created March 1, 2013 17:37
diff git://github.com/lilleyt/spree_flexi_variants.git master and git://github.com/bluehandtalking/spree_flexi_variants.git spree1-3-stable
diff -X diff-exclude -Naur spree_flexi_variants_Lilley/app/assets/javascripts/admin/orders/edit.js spree_flexi_variants/app/assets/javascripts/admin/orders/edit.js
--- spree_flexi_variants_Lilley/app/assets/javascripts/admin/orders/edit.js 2013-03-01 08:19:40.000000000 -0800
+++ spree_flexi_variants/app/assets/javascripts/admin/orders/edit.js 2013-03-01 08:27:48.000000000 -0800
@@ -13,7 +13,7 @@
return false;
});
- $("#add_product_name").product_autocomplete();
+ $(".variant_autocomplete").variantAutocomplete();
angular.module('jewelsStore')
.controller('JewelsCtrl', [ "JewelsResource", (JewelsResource) ->
this.jewels = JewelsResource.getAll()
console.log this.jewels
])
angular.module('jewelsStore')
.factory('JewelsResource', ['Restangular', (Restangular) ->
getAll: ->
Restangular.all('jewels').getList().$object
<<%= @element_name %>>
<%- @contents.each do |content| -%>
<%- if content['essence_type'] == 'EssenceRichtext' -%>
<div ng-bind-html= "safe(ingredient('<%= content['name'] %>').value)" class="<%= content['name'] %>"></div>
<%- elsif content['essence_type'] == 'EssencePicture' -%>
<img ng-if="ingredient('<%= content['name'] %>') != ''" ng-src="{{ingredient('<%= content['name'] %>').value}}">
<%- else -%>
<div class="<%= content['name'] %>">{{ingredient('<%= content['name'] %>').value}}</div>
<%- end -%>
<%- end -%>
<teaser>
<div class="title">{{ingredient('title').value}}</div>
<div class="body">{{ingredient('body').value}}</div>
</teaser>
Started GET "/admin/signup" for ::1 at 2017-07-06 11:33:16 -0700
ActiveRecord::SchemaMigration Load (2.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
Processing by Alchemy::Admin::UsersController#signup as HTML
Alchemy::Site Load (24.7ms) SELECT "alchemy_sites".* FROM "alchemy_sites" WHERE "alchemy_sites"."id" = $1 LIMIT 1 [["id", 1]]
Alchemy::Language Load (29.0ms) SELECT "alchemy_languages".* FROM "alchemy_languages" WHERE "alchemy_languages"."site_id" = $1 AND "alchemy_languages"."id" = $2 LIMIT 1 [["site_id", 1], ["id", 1]]
(31.1ms) SELECT COUNT(*) FROM "alchemy_users"
CACHE (0.0ms) SELECT COUNT(*) FROM "alchemy_users"
Redirected to http://localhost:3000/admin/dashboard
Completed 302 Found in 426ms (ActiveRecord: 105.0ms)