Skip to content

Instantly share code, notes, and snippets.

@da-n
da-n / gist:9bbaa92dc5ad546945f6
Created June 20, 2014 13:08
Rsync copy directory contents but not directory itself
$ rsync -av ~/foo/ user@remote.com:/var/www/bar/
# source http://stackoverflow.com/a/20301093
@kddawson
kddawson / markup.html
Created August 15, 2012 13:06
A CSS3 nav ribbon sans images
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Multicelldesign CSS Ribbon</title>
<!-- Don't forget to add an HTML5 polyfill for IE -->
</head>
<body>
<div class="wrapper">
<nav role="navigation" aria-label="main menu">
@cassiotalle
cassiotalle / Gemfile
Created August 30, 2012 16:42 — forked from simi/Gemfile
Refinery + Twitter Bootstrap WIP
source 'https://rubygems.org'
gem 'rails', '3.2.1'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
@dasdennis
dasdennis / Warning for Source Ruby Gems.rb
Last active January 6, 2016 17:41
The source :rubygems is deprecated because HTTP requests are insecure. Please change your source to 'https://rubygems.org' if possible, or 'http://rubygems.org' if not.
# Change Gemfile source to https://rubygems.org to stop warning.
# The source :rubygems is deprecated because HTTP requests are insecure.
# Please change your source to 'https://rubygems.org' if possible, or
# 'http://rubygems.org' if not.
# In Gemfile:
# Comment this line:
# source :rubygems
@simi
simi / Gemfile
Created February 7, 2012 14:32
Refinery + Twitter Bootstrap WIP
source 'https://rubygems.org'
gem 'rails', '3.2.1'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
@SteveRyherd
SteveRyherd / config
Created June 26, 2013 01:15
Terminator config file includes monokai theme and copy/paste shortcuts enabled.
[global_config]
title_transmit_bg_color = "#4c4c4c"
title_inactive_fg_color = "#afafaf"
title_inactive_bg_color = "#2d2d2d"
[keybindings]
copy = <Primary>c
paste = <Primary>v
[profiles]
[[default]]
palette = "#000000:#f92672:#6cc72c:#fe9720:#5f91ef:#9358fe:#36af90:#8c8c8c:#4c4c4c:#ff80f4:#a7e22e:#ffee99:#5fd9ef:#ae82fe:#66efd5:#c7cece"
@gf3
gf3 / html5.vim
Created May 5, 2010 15:27 — forked from rcmachado/html5.vim
vim HTML5 Syntax File
" Vim syntax file
" Language: HTML (version 5)
" Maintainer: Rodrigo Machado <rcmachado@gmail.com>
" URL: http://rm.blog.br/vim/syntax/html.vim
" Last Change: 2009 Aug 19
" License: Public domain
" (but let me know if you liked it :) )
"
" Note: This file just adds the new tags from HTML 5
" and don't replace default html.vim syntax file
@chrisjacob
chrisjacob / README.md
Created September 1, 2011 12:08
Node.js Install + CoffeeScript + LESS (+TextMate Bundles)
#
# Jekyll Generator for SCSS
#
# (File paths in this description relative to jekyll project root directory)
# Place this file in ./_plugins
# Place .scss files in ./_scss
# Compiles .scss files in ./_scss to .css files in whatever directory you indicated in your config
# Config file placed in ./_sass/config.rb
#
@MrRoyce
MrRoyce / gist:097edc0de2fe001288be2e8633f4b22a
Last active October 7, 2019 09:18
AWS CodeDeploy Lamda formatter for Slack messages - node.js
var services = '/services/...'; // Update this with your Slack service...
var channel = "#aws-deployments" // And this with the Slack channel
var https = require('https');
var util = require('util');
var formatFields = function(string) {
var
message = JSON.parse(string),
fields = [],