This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
PREFIX=$1 | |
mkdir -p $PREFIX/Ardour6.app/Contents/MacOS | |
mkdir -p $PREFIX/Ardour6.app/Contents/Resources | |
sed -e "s?@ENV@??g" \ | |
-e "s?@VERSION@?6?g" \ | |
-e "s?@INFOSTRING@??g" \ | |
-e "s?@IDSUFFIX@?Ardour6?g" \ | |
-e "s?@BUNDLENAME@?Ardour6?g" \ | |
-e "s?@EXECUTABLE@?Ardour6?g" < Info.plist.in > $PREFIX/Ardour6.app/Contents/Info.plist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# open terminal | |
cmd - return : open -n -a kitty.app | |
# open chrome | |
cmd + shift - return : open -n -a "Google Chrome" | |
# moves focus between windows in the current focused display | |
alt - h : yabai -m window --focus west | |
alt - j : yabai -m window --focus south | |
alt - k : yabai -m window --focus north |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/data/data/com.termux/files/usr/bin/bash | |
#Based on https://github.com/termux/termux-app/issues/77 | |
export PREFIX='/data/data/com.termux/files/usr' | |
export HOME='/data/data/com.termux/files/home' | |
export LD_LIBRARY_PATH='/data/data/com.termux/files/usr/lib' | |
export PATH="/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets:$PATH" | |
export LANG='en_US.UTF-8' | |
export SHELL='/data/data/com.termux/files/usr/bin/bash' | |
export BIN='/data/data/com.termux/files/usr/bin' | |
export TERM=screen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# restarts a service in launchd. assumes you have | |
# https://github.com/MarkTiedemann/countdown-cli installed. but will run `sleep` | |
# if you don't. | |
# | |
# usage: svc_bounce domain/svc_target timeout | |
# timeout is needed so launchd can shut the service down gracefully. | |
################################################################################ | |
function svc_bounce() { | |
local -r svc="${1}"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Script to install xquartz and set the DISPLAY variable correctly, find the listen port and add current ip to connect to X11. | |
#skip if you want, install xquartz | |
brew cask reinstall xquartz | |
#get ip | |
IP=$(ifconfig|grep -E inet.*broad|awk '{ print $2; }') | |
#open XQuartz | |
open -a XQuartz & | |
#Go to preference Security check allow network, restart : | |
read -p "Go to preference Security check allow network and press a key to continue" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/genv /usr/local/bin/bash | |
args_modded="-a $(echo ${*}| sed 's/-s 512//')"; | |
exec /usr/bin/sudo -E /usr/bin/dtruss ${args_modded} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:%s/\$\([A-Za-z_]\+\)/${\1}/g |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:'<,'>s/export \(.*\)="\$\({.*}\)"/export \1="\${\1}"/g |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lan="{192.168.64.0/24}" | |
vpn="{ VPN_RANGE_GOES_HERE }" | |
ext_if="bridge100" | |
vpn_if="utun0" | |
nat on $ext_if from $lan to $vpn -> ($ext_if) | |
nat on $vpn_if from $lan to $vpn -> ($vpn_if) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# author Marek Vavrecan ([email protected]) | |
# show usage | |
[ $# -eq 0 ] && { echo "Usage: $0 [apk path] [source namespace] [target namespace]"; exit 1; } | |
APK_PATH="$1" | |
NAMESPACE_FROM="$2" | |
NAMESPACE_TO="$3" |