Skip to content

Instantly share code, notes, and snippets.

View fguchelaar's full-sized avatar
👋

Frank Guchelaar fguchelaar

👋
View GitHub Profile
@fguchelaar
fguchelaar / Fastfile
Last active April 16, 2021 16:51
tvOS - Fastfile
default_platform(:tvos)
platform :tvos do
desc "Push a new build to TestFlight"
lane :beta do
changelog = File.read("../Changelog-tvOS.txt")
puts "Using changelog:"
puts "\n\n" + changelog
if prompt(text: "Is the changelog ok?", boolean: true)

Development machine setup

Tools

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Global npm packages

First need to install node / npm. Possibly through nvm?

@fguchelaar
fguchelaar / InspectCodeFixPath.ps1
Created March 15, 2016 09:38
Running JetBrains' InspectCode outputs an XML-file with references to the inspected files which are relative to the solution that was provided to the cli. When this XML-file is used with Jenkins' Warnings-plugin, the links to files (in the inspection-report) cannot be resolved, if the solution is not in the root of the workspace. This script pre…
param (
[string]$file = $(throw "-file is required."),
[string]$path = $(throw "-path is required.")
)
[System.IO.FileInfo]$fileInfo = $file
[xml]$xml = Get-Content -Path $file
foreach ($project in $xml.Report.Issues.Project) {
$projectName = $project.Name
@fguchelaar
fguchelaar / generatewarningsfromcomments.sh
Last active September 18, 2016 12:25
Generate Xcode warnings from TODO, FIXME and ERROR comments. Modified version of the original one at http://jeffreysambells.com/2013/01/31/generate-xcode-warnings-from-todo-comments
TAGS="TODO:|FIXME:"
ERRORTAG="ERROR:"
OUTPUT=$(find "${SRCROOT}" \( -name "*.h" -or -name "*.m" -or -name "*.swift" \) -print0 | xargs -0 egrep --ignore-case --with-filename --line-number --only-matching "($TAGS).*\$|($ERRORTAG).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/i" | perl -p -e "s/($ERRORTAG)/ error: \$1/i")
ECHO "$OUTPUT"
if [[ $OUTPUT == *" error: "* ]]
then
exit 1
fi
@fguchelaar
fguchelaar / .gitignore
Last active January 2, 2022 08:38
.gitignore for Xcode / AppCode
# .gitignore file for Xcode / AppCode projects
# based on https://github.com/github/gitignore/blob/master/Objective-C.gitignore
# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
@fguchelaar
fguchelaar / UpdateSABnzbd.applescript
Last active February 2, 2022 19:35
Auto update SABnzbd on Mac OS X. This AppleScript checks if you're running the latest version of SABnzbd and, if necessary, updates. It assumes SABnzbd is located in the '/Applications' folder.
-- Choose your OS X version
--set osx to "OS X 10.5 and 10.6 (Leopards)"
--set osx to "OS X 10.7 (Lion)"
set osx to "OS X 10.8 (Mountain Lion)"
set currentVersion to get version of application "SABnzbd"
log "You are running: " & currentVersion
set versionUrl to "http://sabnzbdplus.sourceforge.net/version/latest"
set versionContent to do shell script "curl " & quoted form of versionUrl