Skip to content

Instantly share code, notes, and snippets.

View Iristyle's full-sized avatar

Ethan J. Brown Iristyle

View GitHub Profile
@vojtajina
vojtajina / grunt.js
Created August 14, 2012 08:17
Grunt script for inlining AngularJS templates
module.exports = function(grunt) {
grunt.initConfig({
inline: {
'index.html': ['tpl/*.html']
}
});
grunt.registerMultiTask('inline', 'Inline AngularJS templates into single file.', function() {
var SCRIPT = '<script type="text/ng-template" id="<%= id %>"><%= content %></script>\n';
@corkupine
corkupine / README.md
Created September 13, 2012 14:45 — forked from jcreamer898/README.md
Using amplifyjs as with RequireJS 2.0

Using AmplifyJS with RequireJS 2.0

With the lastest version of Require, a new config object was introduced, the shim.

http://requirejs.org/docs/api.html#config-shim

That allows Amplify to now be used within AMD projects.

Have Fun!

@nickyp
nickyp / gist:4045823
Created November 9, 2012 14:05
Map "Escape, Backspace" to Delete Word Backward in Sublime Text 2
// Maps Emacs style "Escape, Backspace" to Delete Word Backward
{ "keys": ["escape", "backspace"], "command": "delete_word", "args": { "forward": false, "sub_words": true } }
@kylog
kylog / gist:ab4ec66984ae5f83aa76
Created December 18, 2014 22:21
git branchdate
[alias]
branchdate = !git for-each-ref --sort=-committerdate refs/heads/ --format='%(committerdate:short)%09%(authorname)%09%(refname:short)' | less
anonymous
anonymous / setup.log
Created August 28, 2013 01:12
setup.log and setup.log.full - Cygwin failures on Windows 8 packer box
2013/08/27 15:37:36 Starting cygwin install, version 2.774
2013/08/27 15:37:36 User has backup/restore rights
2013/08/27 15:37:36 io_stream_cygfile: fopen(/etc/setup/setup.rc) failed 2 No such file or directory
2013/08/27 15:37:36 io_stream_cygfile: fopen(/etc/setup/last-cache) failed 2 No such file or directory
2013/08/27 15:37:36 io_stream_cygfile: fopen(/etc/setup/last-action) failed 2 No such file or directory
2013/08/27 15:37:36 io_stream_cygfile: fopen(/etc/setup/net-method) failed 2 No such file or directory
2013/08/27 15:37:36 io_stream_cygfile: fopen(/etc/setup/net-proxy-host) failed 2 No such file or directory
2013/08/27 15:37:36 io_stream_cygfile: fopen(/etc/setup/net-proxy-port) failed 2 No such file or directory
2013/08/27 15:37:36 io_stream_cygfile: fopen(/etc/setup/extrakeys) failed 2 No such file or directory
2013/08/27 15:37:36 io_stream_cygfile: fopen(/etc/setup/chooser_window_settings) failed 2 No such file or directory
@bradwilson
bradwilson / vs2013-normal-menus.ps1
Created November 2, 2013 16:55
Say goodbye to VS2013's SHOUTING MENUS
Set-ItemProperty -Path HKCU:\Software\Microsoft\VisualStudio\12.0\General -Name SuppressUppercaseConversion -Type DWord -Value 1
@henrik
henrik / yosemite_upgrade_notes.md
Last active December 30, 2015 02:29
Yosemite upgrade notes

Yosemite upgrade notes

From a (mostly) Ruby on Rails developer.

After doing the below everything seems to work (some of it worked before doing anything), including Ruby, Gems, RVM, Homebrew, VirtualBox/Vagrant VMs, Pow, tmux, git, vim.

  1. Did a full-disk backup that I can restore from
  2. Moved out /usr/local to avoid super slow install, per option 1 in https://jimlindley.com/blog/yosemite-upgrade-homebrew-tips/: sudo mv /usr/local ~/local
  3. Upgraded to Yosemite
  4. Restored /usr/local, per option 1 in https://jimlindley.com/blog/yosemite-upgrade-homebrew-tips/: sudo mv ~/local /usr
@logicminds
logicminds / puppetdev
Last active December 30, 2015 21:24
puppetdev boxstarter
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
cinst git
cinst git-credential-winstore
cinst console-devel
cinst sublimetext3
cinst poshgit
cinst dotpeek
cinst ruby -Version 2.0.0.48100
@spara
spara / postgres-ubuntu-ec2-install.sh
Created March 23, 2011 02:54
Install script for PostgreSQL/PostGIS on Canonical Ubuntu EC2 AMI with tables EBS RAID 10
#!/usr/bin/env bash
################################################################
#
# Amazon EC2 PostGIS 1.5 on RAID10,f2 EBS Array Build Script
#
# Complete Rip off of:
# http://github.com/tokumine/ebs_raid_postgis/blob/master/build.sh
# http://alestic.com/2009/06/ec2-ebs-raid
# http://biodivertido.blogspot.com/2009/10/install-postgresql-84-and-postgis-140.html
#
@vanhalt
vanhalt / build-erlang-r16b_and_elixir093.sh
Last active March 28, 2016 04:19 — forked from bryanhunter/build-erlang-r16b.sh
Install Elixir v0.9.3 in Ubuntu 13.04
#!/bin/bash
# Pull this file down, make it executable and run it with sudo
# wget https://raw.github.com/gist/5487621/build-erlang-r16b.sh
# chmod u+x build-erlang-r16b.sh
# sudo ./build-erlang-r16b.sh
if [ $(id -u) != "0" ]; then
echo "You must be the superuser to run this script" >&2
exit 1
fi