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:
| So you've cloned somebody's repo from github, but now you want to fork it and contribute back. Never fear! | |
| Technically, when you fork "origin" should be your fork and "upstream" should be the project you forked; however, if you're willing to break this convention then it's easy. | |
| * Off the top of my head * | |
| 1. Fork their repo on Github | |
| 2. In your local, add a new remote to your fork; then fetch it, and push your changes up to it | |
| git remote add my-fork [email protected] |
| # Print all project items | |
| Recurse-Project -Action {param($item) "`"$($item.ProjectItem.Name)`" is a $($item.Type)" } | |
| # Function to format all documents based on https://gist.github.com/984353 | |
| function Format-Document { | |
| param( | |
| [parameter(ValueFromPipelineByPropertyName = $true)] | |
| [string[]]$ProjectName | |
| ) | |
| Process { |
| #/bin/bash | |
| #-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password | |
| REPO_URL=`git remote -v | grep -m1 '^origin' | sed -Ene's#.*(https://[^[:space:]]*).*#\1#p'` | |
| if [ -z "$REPO_URL" ]; then | |
| echo "-- ERROR: Could not identify Repo url." | |
| echo " It is possible this repo is already using SSH instead of HTTPS." | |
| exit | |
| fi |
| var dns = require('dns'); | |
| function reverseLookup(ip) { | |
| dns.reverse(ip,function(err,domains){ | |
| if(err!=null) callback(err); | |
| domains.forEach(function(domain){ | |
| dns.lookup(domain,function(err, address, family){ | |
| console.log(domain,'[',address,']'); | |
| console.log('reverse:',ip==address); |
| #!/bin/bash -e | |
| #### | |
| # Helper script to update the Last modified timestamp of files in a Git SCM | |
| # Projects working Copy | |
| # | |
| # When you clone a Git repository, it sets the timestamp of all the files to the | |
| # time when you cloned the repository. | |
| # | |
| # This becomes a problem when you want the cloned repository, which is part of a | |
| # Web application have a proper cacheing mechanism so that it can re-cache files |
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
| #!/usr/bin/env bash | |
| # | |
| # Get the value of a tag for a running EC2 instance. | |
| # | |
| # This can be useful within bootstrapping scripts ("user-data"). | |
| # | |
| # Note the EC3 instance needs to have an IAM role that lets it read tags. The policy | |
| # JSON for this looks like: | |
| # | |
| # { |
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |