Skip to content

Instantly share code, notes, and snippets.

@coreyhaines
coreyhaines / Applications
Last active December 21, 2015 05:39
Installing new computer
Chrome
Alfred
Dropbox
1Password
Sizeup
Twitter
Coconut Battery
Dash
XCode
Caffeine
@tdm00
tdm00 / Dev_Gemfile
Last active December 15, 2015 01:58
Group of gems that I use in development for Ruby on Rails. Paste this into your Gemfile and then run `bundle install`AAfter the gems are installed, you need to also run `rails generate rails_footnotes:install`
group :development do
gem 'brakeman'
gem 'better_errors'
gem 'binding_of_caller'
gem 'meta_request'
gem 'rack-mini-profiler'
gem 'rails-footnotes'
# run `rails generate rails_footnotes:install`
end
@SlexAxton
SlexAxton / .zshrc
Last active April 25, 2023 03:57
My gif workflow
gifify() {
if [[ -n "$1" ]]; then
if [[ $2 == '--good' ]]; then
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png
time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif
rm out-static*.png
else
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif
fi
else
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active May 2, 2024 05:55
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@danro
danro / Custom.css
Created September 16, 2012 17:32
Improved webkit inspector toolbar
#-webkit-web-inspector #toolbar {
background: #cdcdcd !important;
height: 36px !important;
}
#-webkit-web-inspector #main {
top: 36px !important;
}
#-webkit-web-inspector .toolbar-item.elements:hover:after {
content: "elements";
z-index: 9999;
@seyhunak
seyhunak / securing_rails_updates.md
Created September 16, 2012 14:48 — forked from peternixey/securing_rails_updates.md
How Homakov hacked GitHub and how to protect your application by Peter Nixey

##How Homakov hacked GitHub and the line of code that could have prevented it


Please note: THIS ARTICLE IS NOT WRITTEN BY THE GITHUB TEAM or in any way associated with them. It's simply hosted as a Gist because the markdown formatting is excellent and far clearer than anything I could manage on my personal Tumblr at peternixey.com.

If you'd like to follow me on twitter my handle is @peternixey


@panthomakos
panthomakos / benchmark.rb
Created May 3, 2012 20:06
Benchmark Your Bundle
#!/usr/bin/env ruby
require 'benchmark'
REGEXPS = [
/^no such file to load -- (.+)$/i,
/^Missing \w+ (?:file\s*)?([^\s]+.rb)$/i,
/^Missing API definition file in (.+)$/i,
/^cannot load such file -- (.+)$/i,
]
@mhenke
mhenke / style.scss
Created June 17, 2011 15:14
Starter CSS based on Blueprint CSS for use with CFWheels helpers (sass)
form.generic {
input[type="text"], textarea, select {
background: #FBFBFB;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
float: left;
}
input {
&[type="password"] {
@neokoenig
neokoenig / gist:1031443
Created June 17, 2011 13:48
Starter CSS based on Blueprint CSS for use with CFWheels helpers
/*************************************************
FORMS
Notes: Add this predefined values to your /config/settings.cfm file:
Then, just make sure you add #startFormTag(class="generic")# to any form you want this CSS applied to.
<cfscript>
// Form Field Defaults
set(functionName="textField,textFieldTag,textArea,textAreaTag,passwordField,passwordFieldTag,select,selectTag,fileField,fileFieldTag",
prependToLabel="<div class='field'>",