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:
| #Creates a new issue with custom fields | |
| curl -D- -u uname:pass -X POST --data "{\"fields\": {\"project\": { \"id\": \"10430\" },\"summary\": \"This is a test issue\", \"description\": \"Description\",\"issuetype\": { \"id\" : \"1\"}, \"components\" : [{\"id\":\"10731\"}], \"customfield_10711\" : [{\"id\":\"10500\"}] } }" -H "Content-Type: application/json" http://localhost:8080/jira/rest/api/2/issue/ | |
| #Returns all information for all versions | |
| curl -D- -u uname:pass -X PUT -d "Content-Type: application/json" http://localhost:8080/jira/rest/api/2/project/AN/versions? | |
| #Returns all issues in a version | |
| #This URL requires the version ID of a single version which is provided by the above query | |
| curl -D- -u uname:pass -X PUT -d "Content-Type: application/json" http://localhost:8080/jira/rest/api/2/search?jql=project="AN"+AND+fixVersion='12345' |
| function setWeatherIcon(condid) { | |
| switch(condid) { | |
| case '0': var icon = '<i class="wi-tornado"></i>'; | |
| break; | |
| case '1': var icon = '<i class="wi-storm-showers"></i>'; | |
| break; | |
| case '2': var icon = '<i class="wi-tornado"></i>'; | |
| break; | |
| case '3': var icon = '<i class="wi-thunderstorm"></i>'; |
| """ | |
| Usage: python remove_output.py notebook.ipynb [ > without_output.ipynb ] | |
| Modified from remove_output by Minrk | |
| """ | |
| import sys | |
| import io | |
| import os | |
| from IPython.nbformat.current import read, write |
| #! /usr/bin/env bash | |
| # Target and build configuration. | |
| TARGET=arm-none-eabi | |
| PREFIX=/opt/arm-none-eabi-4.7.1 | |
| # Sources to build from. | |
| BINUTILS=binutils-2.23.1 | |
| GCC=gcc-4.7.1 | |
| NEWLIB=newlib-1.20.0 |
| stashgrep() { | |
| for i in `git stash list | awk -F ':' '{print $1}'`; do | |
| git stash show -p $i | grep -H --label="$i" "$1" | |
| done | |
| } |
| #!/bin/sh -e | |
| #git-cache-meta -- simple file meta data caching and applying. | |
| #Simpler than etckeeper, metastore, setgitperms, etc. | |
| #from http://www.kerneltrap.org/mailarchive/git/2009/1/9/4654694 | |
| #modified by n1k | |
| # - save all files metadata not only from other users | |
| # - save numeric uid and gid | |
| # 2012-03-05 - added filetime, andris9 |
| export LESS_TERMCAP_mb=$'\E[01;31m' | |
| export LESS_TERMCAP_md=$'\E[01;31m' | |
| export LESS_TERMCAP_me=$'\E[0m' | |
| export LESS_TERMCAP_se=$'\E[0m' | |
| export LESS_TERMCAP_so=$'\E[01;44;33m' | |
| export LESS_TERMCAP_ue=$'\E[0m' | |
| export LESS_TERMCAP_us=$'\E[01;32m' |
| def sleep(secs): | |
| d = Deferred() | |
| reactor.callLater(secs, d.callback, None) | |
| return d |