- using
pkgutil
# list all your installed packages
pkgutil --pkgs
# show your package info
pkgutil --pkg-info Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:
| #!/usr/bin/env ruby -wKU | |
| # | |
| # by Kelan Champagne http://yeahrightkeller.com | |
| # with edits by sjschultze | |
| # and advanced metadata handling by lukf | |
| # | |
| # A script to generate a personal podcast feed, hosted on Dropbox | |
| # | |
| # Inspired by http://hints.macworld.com/article.php?story=20100421153627718 | |
| # |
| #!/bin/bash | |
| function jsonval { | |
| temp=`echo $json | sed 's/\\\\\//\//g' | sed 's/[{}]//g' | awk -v k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' | sed 's/\"\:\"/\|/g' | sed 's/[\,]/ /g' | sed 's/\"//g' | grep -w $prop` | |
| echo ${temp##*|} | |
| } | |
| json=`curl -s -X GET http://twitter.com/users/show/$1.json` | |
| prop='profile_image_url' | |
| picurl=`jsonval` |
| #!/bin/bash | |
| # ------------------------------------------------------------------ | |
| # [Author] Title | |
| # Description | |
| # ------------------------------------------------------------------ | |
| set -e | |
| SUBJECT=some-unique-id |
| #!/bin/bash | |
| # Author: Craig Russell | |
| # Email: [email protected] | |
| # Date: yyyy-mm-dd | |
| # Usage: script.sh [-a|--alpha] [-b=val|--beta=val] | |
| # Description: | |
| # | |
| # | |
| # |
| <?php | |
| $iter = 500000; | |
| $start = microtime(true); | |
| $n = 0; | |
| for ($c=0; $c<7*$iter; $c++) { | |
| $i = $c % 16; | |
| if ($i===0) $n += 0; |
| import requests, json | |
| from pprint import pprint | |
| from urllib.request import Request, urlopen | |
| import csv | |
| import os | |
| import timeit | |
| def getInput(file): | |
| '''Opens the file, produces list of lines in the file, removes the header row, and returns the list''' | |
| inFile = open(file) |
Download, but don't run, the Sierra installer from the Mac App Store. This places the installer at
/Applications/Install\ macOS\ Sierra.app/.
Now run the following commands to build a suitable VM image from the installer:
git clone https://github.com/jonanh/osx-vm-templates
cd osx-vm-templates/packer
sudo ../prepare_iso/prepare_vdi.sh -D DISABLE_REMOTE_MANAGEMENT -o macOS_10.12.vdi /Applications/Install\ macOS\ Sierra.app/ .
| (* | |
| Export All Safari Tabs in All Open Windows to a Markdown File | |
| 2018-01-25 | |
| // SCRIPT PAGE | |
| https://gist.github.com/unabridgedxcrpt/3f35aa5aec81289368858e2ba6009451 | |
| // ORIGINAL SCRIPT PAGE | |
| http://hegde.me/urlsafari KSHITEESH ON GIST.GITHUB.COM | |