Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env node
let _ = require('lodash')
const schema = {
"matchers": [
{
"state": "weekday",
"operator": "and",
"expressions": [
#!/usr/bin/env node
const schema = {
"matchers": [
{
"state": "firstState",
"operator": "and",
"expressions": [
{
"target": "params.name",
#!/usr/bin/env node
console.log("Ready...");
const { NodeVM } = require('vm2')
const path = require('path')
const { Liquid } = require('liquidjs');
const liquid = new Liquid();
const params = {
git branch --merged master --no-color | grep -v master | grep -v develop | xargs git branch -d
ffmpeg -i video.mp4 output/out%04d.png
convert -delay 4 output/out*.png -resize %50 anim.gif
convert -layers Optimize anim.gif optimized_output.gif
@stephenkey
stephenkey / sunspot.cap
Last active September 2, 2015 16:30 — forked from muscardinus/sunspot.cap
sunspot tasks for Capistrano 3
namespace :deploy do
before :updated, :setup_solr_data_dir do
on roles(:app) do
unless test "[ -d #{shared_path}/solr/data ]"
execute :mkdir, "-p #{shared_path}/solr/data"
end
end
end
end

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

SSH into Root

$ ssh root@123.123.123.123

Change Root Password

.fb {
fill: #3b5998;
}
.tw {
fill: #1ab1e8;
}
.gp {
fill: #efaf25;
name: "Mobile App"
toolbar: false
description: "Example of a mobile application landing page."
css: 'https://s3.amazonaws.com/gitframe/examples/mobile-app-landing/mobile-app.css'
pages:
-
name: "First Page"
sections:
feature_hero_full:
title: 'MobileApp'
pages:
-
# This is a list of content and options for nav_
name: "Navigation"
sections:
nav_bar:
welcome: 'Welcome To Acme'
second_page: 'Our Second Page'
more:
third: "Third Link"