Note: this is a work in progress, and is subject to change soon.
save a chart directory
| # First, we need to find our device. BEFORE inserting your USB drive, run the | |
| # following: | |
| diskutil list | |
| # This will output a bunch of info about all of the disk drives connected to | |
| # your Mac. Each entry will have a header in the form "/dev/diskX", where X is | |
| # some number starting at 0. Now, insert your USB drive and run the command | |
| # again. You should see a new entry. Make note of the name (ie, /dev/diskX). | |
| diskutil list |
| #!/bin/bash | |
| pidlist() { | |
| local thispid=$1 | |
| local fulllist= | |
| local childlist= | |
| childlist=$(ps --ppid $thispid -o pid h) | |
| for pid in $childlist | |
| do | |
| fulllist="$(pidlist $pid) $fulllist" | |
| done |
| #!/usr/bin/env bash | |
| set -e | |
| cweb_version=0.6.16 | |
| cweb=https://github.com/koute/cargo-web/releases/download/$cweb_version/cargo-web-x86_64-unknown-linux-gnu.gz | |
| curl -Lo cargo-web.gz $cweb | |
| gunzip cargo-web.gz | |
| chmod u+x cargo-web |
| ` # \ | |
| # PowerShell Param statement : every line must end in #\ except the last line must with <#\ | |
| # And, you can't use backticks in this section #\ | |
| param( [ValidateSet('A','B')]$tabCompletionWorksHere, #\ | |
| [switch]$andHere #\ | |
| ) <#\ | |
| #^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ` | |
| #vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv | |
| # Bash Start ------------------------------------------------------------ |
| gource -s .06 -1280x720 --auto-skip-seconds .1 --multi-sampling --stop-at-end --key --highlight-users --hide mouse,progress,files,filenames,dirnames --file-idle-time 0 --max-files 0 --background-colour 000000 --font-size 22 --title "Lucene/Solr" --output-ppm-stream - --output-framerate 30 | avconv -y -r 30 -f image2pipe -vcodec ppm -i - -b 65536K movie.mp4 | |
| && ffmpeg -i movie.mp4 -b:v 3048780 -vcodec libx264 -crf 24 output.mp4 |
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: kibana | |
| # Required-Start: $local_fs $remote_fs $network | |
| # Should-Start: $time | |
| # Required-Stop: $local_fs $remote_fs $network | |
| # Default-Start: 3 5 | |
| # Default-Stop: 0 1 2 6 | |
| # Short-Description: Kibana 4 |
| /* | |
| * emoji.c | |
| * Mike McGirr | |
| * A little bit of code to print out the cocktail emoji. | |
| */ | |
| #include <stdio.h> | |
| #include <wchar.h> | |
| #include <locale.h> | |
| int main() |