This works, but is not ideal
build.gradle.kts
buildscript {
dependencies {
# All this comes from https://twitter.com/viktorklang/status/807629003385237504 | |
function restart_audio() { | |
command sudo killall coreaudiod && \ | |
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.audio.coreaudiod.plist && \ | |
sudo launchctl load /System/Library/LaunchDaemons/com.apple.audio.coreaudiod.plist || \ | |
return | |
echo 'Audio daemon restarted' | |
} |
.idea | |
out/ | |
.idea_modules/ | |
*.iml |
# Created by .ignore support plugin (hsz.mobi) | |
### JetBrains template | |
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm | |
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | |
# User-specific stuff: | |
.idea/**/workspace.xml | |
.idea/**/tasks.xml | |
.idea/dictionaries |
import groovy.json.JsonSlurper | |
import groovy.transform.Field | |
def json = new JsonSlurper().parse(System.in) | |
if (!(json instanceof Map)) { | |
System.err.println "Input was not json" | |
System.exit 1 | |
} |
#!/bin/bash | |
set -e | |
# Install OhYourDotfiles | |
cd $HOME | |
git clone https://github.com/DanielThomas/oh-your-dotfiles.git .oh-your-dotfiles | |
ln -s ~/.oh-your-dotfiles/oh-your.zshrc ~/.zshrc |