This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
security add-generic-password \ | |
-a my-github-login \ | |
-s github \ | |
-D "GitHub's OAuth2 Token" \ | |
-T "" \ | |
-w the-long-oauth-token |
Data Down / Actions Up
Other
http://emberjs.jsbin.com/rwjblue/299/edit?js,output - simplified version of ic-ajax
Contributor: Adam Edwards | |
1. Install chocolatey – http://chocolatey.org | |
2. Install PSReadline to give PowerShell readline power – use the –emacs mode in your PowerShell profile so you have history search and other keyboard behavior like bash: https://github.com/lzybkr/PSReadLine | |
3. Use chocolatey to install ConEmu, a terminal replacement that supports ANSI colors, dynamic resizing, “normal” text selection and cut and paste, and lots of other customizations: cinst conemu. And set the startup shell for ConEmu to PowerShell (not cmd.exe) | |
4. Use chocolatey to install an editor – if you’re not already an emacs or vim person, use it to install Atom or Sublime, or Notepad++ | |
5. Always use PowerShell – do not use cmd.exe | |
6. Install ChefDK and use chef shell-init powershell to get at your Chef Ruby environment. | |
7. Use Pantry – it can automate #1, 3, 4, and 6 and will probably have support for #2. https://github.com/chef/pantry-chef-repo | |
8. If you get stuck on a box where you don’t an editor or chocolatey and need to e |
TMUX= tmux new-session -d -s name | |
tmux switch-client -t name |
#!/bin/bash | |
node_command="node --debug app.js" | |
node_inspector_command="node-inspector" | |
function getPid { | |
command=$1 | |
echo `ps -A -o pid,cmd | grep "$command" | grep -v grep | head -n 1 | awk '{print $1}'` | |
} | |
echo `getPid $node_command` |
Add these lines to the bottom of the file:
# ~/.bashrc
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
After editing the file execute this commands
If you have a rvmrc dotfile in your rails project and you are using an specific Gemset for your Ruby version, take care!!
Unicorn ALWAYS uses Ruby version @global gemset. You could get a template error like this: "Could not find XXXX in any of the sources"
If you want to fix quickly this issue you can copy your current gemset of files to global default gemset, like this example:
rvm gemset copy [email protected] 1.9.3@global