Skip to content

Instantly share code, notes, and snippets.

View oldfartdeveloper's full-sized avatar

Scott Smith oldfartdeveloper

View GitHub Profile
@dherman
dherman / emacs-cheat-sheet.md
Created August 2, 2012 16:22
My emacs cheat sheet

In penance for cracking stupid jokes on Twitter, here's my Emacs cheat sheet. Emacs has a steep learning curve, so I've tried to order them by importance so you could learn them in stages.

One overall rule of thumb: pay attention to the minibuffer (the line at the bottom of the editor). It will often guide you through a process, and also gives you hints about what state you're in, such as the middle of a multi-chord sequence.

The other rule of thumb: when in doubt, C-g it out.

Basics (mandatory)

You simply can't get by without having these at your fingertips.

@caseyscarborough
caseyscarborough / deploy.rb
Last active February 12, 2019 20:50
A basic deploy.rb Capistrano script used to deploy Rails applications.
# I am currently using this script with with Capistrano v2.15.5
# for deployment of Rails 3.2.13 and Rails 4.0.0 applications on
# Passenger 4.0.7 with nginx/1.4.1.
require "rvm/capistrano"
set :rvm_ruby_string, 'default'
require "bundler/capistrano"
# Set application and username
set :application, "application-name.com"
@johnbintz
johnbintz / simple-capistrano-docker-deploy.rb
Last active April 3, 2023 08:23
Simple Capistrano deploy for a Docker-managed app
# be sure to comment out the require 'capistrano/deploy' line in your Capfile!
# config valid only for Capistrano 3.1
lock '3.2.1'
set :application, 'my-cool-application'
# the base docker repo reference
set :name, "johns-stuff/#{fetch(:application)}"
@groteck
groteck / Spelling.elm
Last active February 20, 2020 18:01 — forked from evancz/Spelling.elm
Remove unused import
port module Spelling exposing (..)
import Html exposing (..)
import Html.Events exposing (..)
import String
main =
program
{ init = init
@jkachmar
jkachmar / Main.purs
Last active June 3, 2020 18:18
Some Weird PureScript Validation Stuff
module Main where
import Prelude
import Control.Monad.Eff as Eff
import Control.Monad.Eff.Console as Eff.Console
import Semigroup as Semigroup
import Semiring as Semiring
main :: ∀ eff. Eff.Eff (console :: Eff.Console.CONSOLE | eff) Unit