Skip to content

Instantly share code, notes, and snippets.

View ZeldaZach's full-sized avatar
💭
The inner machinations of my mind are an enigma

Zach H ZeldaZach

💭
The inner machinations of my mind are an enigma
  • Google
  • Multiverse
View GitHub Profile
@ZeldaZach
ZeldaZach / testPR
Created July 3, 2015 04:07
Cockatrice Build Script
#!/bin/bash
#This is used to test PRs
set -e
cd ~/Desktop/Stuff/cockatrice
debug=0
server=0
openOracle=0
@ZeldaZach
ZeldaZach / test-PR
Created June 20, 2015 21:41
Cockatrice Build Script
#!/bin/bash
#This is used to test PRs -- Save them to desktop
set -e
cd ~/Desktop/Stuff/cockatrice
debug=0
while getopts ":u::d" opt; do
case $opt in
@ZeldaZach
ZeldaZach / gist:19cc82f78493acf421b7
Created April 12, 2015 21:53
Open in finder from QT
#if defined(Q_OS_MAC)
QStringList scriptArgs;
scriptArgs << QLatin1String("-e");
scriptArgs << QString::fromLatin1("tell application \"Finder\" to open POSIX file \"%1\"").arg(settingsCache->getPicsPath() + "/CUSTOM/");
scriptArgs << QLatin1String("-e");
scriptArgs << QLatin1String("tell application \"Finder\" to activate");
QProcess::execute("/usr/bin/osascript", scriptArgs);