Skip to content

Instantly share code, notes, and snippets.

View dashingspidy's full-sized avatar
🎯
Focusing

Arif Hossain dashingspidy

🎯
Focusing
  • Brussels
  • 18:59 (UTC +02:00)
  • X @kawwser
View GitHub Profile
@ChuckJHardy
ChuckJHardy / digital_ocean_setup.md
Last active September 17, 2025 05:34
DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3 Setup Instructions

DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3

SSH into Root

$ ssh root@123.123.123.123

Change Root Password

@ianseyer
ianseyer / create.html
Created May 7, 2014 13:50
Form/Modal/Flask
<script type="text/javascript">
// This identifies your website in the createToken call below
Stripe.setPublishableKey('da_key');
// ...
</script>
<script>
jQuery(function($) {
$('#form').submit(function(event) {
var $form = $(this);
@angelacode
angelacode / _form.html.erb
Created May 26, 2011 16:12
Getting jquery token to work with acts-as-taggable-on
- semantic_form_for @question do |f|
= f.input :title, :label => "Type Your Question",
:wrapper_html => {:style => "list-style-type:none"},
:input_html => {:class => 'main_question'}
= f.input :body, :input_html => {:class => 'autogrow', :rows => 5},
:wrapper_html => {:style => "list-style-type:none"},
:label => "Question Details (optional)"
= f.input :tag_list, :class => 'larger widest', :"data-pre" => @question.tags.map(&:attributes).to_json,
:wrapper_html => {:style => "list-style-type:none"}