Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Austrian Association for Software Tool Integration (AASTI)
under one or more contributor license agreements. See the NOTICE file
distributed with this work for additional information regarding copyright
ownership. The AASTI licenses this file to you under the Apache License,
Version 2.0 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
@ajorpheus
ajorpheus / command.sh
Last active August 29, 2015 14:22 — forked from sponomarev/command.sh
# remove
/usr/libexec/PlistBuddy -c 'Add :LSUIElement bool true' /Applications/iTerm.app/Contents/Info.plist
# restore
/usr/libexec/PlistBuddy -c 'Delete :LSUIElement' /Applications/iTerm.app/Contents/Info.plist
@ajorpheus
ajorpheus / osx_automount_nfs.md
Created November 28, 2015 21:28 — forked from L422Y/osx_automount_nfs.md
Automounting NFS share in OS X into /Volumes

I have spent quite a bit of time figuring out automounts of NFS shares in OS X...

Somewhere along the line, Apple decided allowing mounts directly into /Volumes should not be possible:

/etc/auto_master (see last line):

#
# Automounter master map
#

+auto_master # Use directory service

@ajorpheus
ajorpheus / gist:3a57fc5d2b2a72a9be281dda05da9a69
Created August 31, 2016 19:43 — forked from jimbojsb/gist:1630790
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@ajorpheus
ajorpheus / darcula.theme
Created August 31, 2016 20:00 — forked from jvandijk/darcula.theme
Highlight Darcula theme
-- Theme generated by vim2theme
Description = "vim darcula"
Default = { Colour="#a9b7c6" }
Canvas = { Colour="#2b2b2b" }
Number = { Colour="#6897bb" }
Escape = { Colour="#cc7832" , Italic=true}
String = { Colour="#a5c25c" }
BlockComment = { Colour="#808080" }
#!/bin/zsh
#
# Highlight a given file and copy it as RTF.
#
# Simon Olofsson <[email protected]>
#
set -o errexit
set -o nounset
@ajorpheus
ajorpheus / gif.sh
Created April 10, 2017 12:04 — forked from miguelmota/gif.sh
Convert a .MOV to an animated .GIF using FFMPEG and Gifsicle.
#!/bin/bash
# Convert a .MOV to an animated .GIF using FFMPEG and Gifsicle.
# Credit: https://gist.github.com/dergachev/4627207
#
# Dependencies:
# ffmpeg
# gifsicle
#
# Example:
@ajorpheus
ajorpheus / save-blobs.sh
Last active February 12, 2018 07:11 — forked from anonymous/save-blobs.sh
save-blobs.sh
#!/bin/sh
MODEL="iPhone1,1"
ECID="0123456789"
declare -a VERSIONS=("8.4.1" "8.4" "8.3" "8.2" "8.1.3" "8.1.2" "8.1.1" "8.1" "8.0.2" "8.0.1" "8.0" "11.2.2" "11.2.1" "11.2" "11.1.2" "11.1.1" "11.1" "11.0.3" "11.0.2" "11.0.1" "11.0" "10.3.3" "10.3.2" "10.3.1" "10.3" "10.2.1" "10.2" "10.1.1" "10.1" "10.0.3" "10.0.2" "10.0.1"
)
for VERSION in "${VERSIONS[@]}"
do
./tsschecker_macos -d $MODEL -e $ECID -s -i $VERSION
done
@ajorpheus
ajorpheus / save-blobs.sh
Created February 12, 2018 07:09 — forked from anonymous/save-blobs.sh
save-blobs.sh
#!/bin/sh
MODEL="iPhone9,3"
ECID="##########"
#./tsschecker_macos -d $MODEL -e $ECID -s -i 11.2.2
#./tsschecker_macos -d $MODEL -e $ECID -s -i 11.2.1
#./tsschecker_macos -d $MODEL -e $ECID -s -i 11.2
./tsschecker_macos -d $MODEL -e $ECID -s -i 11.1.2
./tsschecker_macos -d $MODEL -e $ECID -s -i 11.1.1
./tsschecker_macos -d $MODEL -e $ECID -s -i 11.1
./tsschecker_macos -d $MODEL -e $ECID -s -i 11.0.3
@ajorpheus
ajorpheus / ffmpeg-install.sh
Created February 18, 2018 11:20 — forked from clayton/ffmpeg-install.sh
Install FFMPEG on OS X with HomeBrew to convert Mp4 to WebM
# Installation
brew install ffmpeg --with-vpx --with-vorbis --with-libvorbis --with-vpx --with-vorbis --with-theora --with-libogg --with-libvorbis --with-gpl --with-version3 --with-nonfree --with-postproc --with-libaacplus --with-libass --with-libcelt --with-libfaac --with-libfdk-aac --with-libfreetype --with-libmp3lame --with-libopencore-amrnb --with-libopencore-amrwb --with-libopenjpeg --with-openssl --with-libopus --with-libschroedinger --with-libspeex --with-libtheora --with-libvo-aacenc --with-libvorbis --with-libvpx --with-libx264 --with-libxvid
# Easy Peasy
ffmpeg -i video.mp4 video.webm