Skip to content

Instantly share code, notes, and snippets.

View GrayedFox's full-sized avatar
👣
Maken tracks, one step at a time.

Che Fisher GrayedFox

👣
Maken tracks, one step at a time.
View GitHub Profile
@GrayedFox
GrayedFox / post-build-script.sh
Last active May 19, 2022 06:59
AppCenter Post Build Script for running XCUI Tests
#!/bin/sh
# this script assumes you have added an API token via AppCenter and stored it
# as an environment variable in your build configuration settings
# see https://docs.microsoft.com/en-us/appcenter/test-cloud/frameworks/xcuitest/#build-for-testing
# for a better understanding of what's going on
SCHEME="schemeOfApplicationUnderTest"
APP="appleUserName/appName"
DEVICES="appCenterTestDevices"
@GrayedFox
GrayedFox / cpc
Created October 5, 2022 01:36
Copy contents of a file using xclip
#!/usr/bin/env bash
if [ $# -ne 1 ] ; then
echo "error: you must pass a single argument that is the file you wish to copy the contents of"
exit 1
fi
FILE=$1
xclip -selection clipboard < $FILE
@GrayedFox
GrayedFox / grub.cfg
Created March 6, 2023 06:05 — forked from borysn/grub.cfg
multiboot iso usb
# multiboot iso grub config
set timeout=15
set default=0
# (U)EFI Graphic Protocol
insmod efi_gop
insmod efi_uga
insmod font
@GrayedFox
GrayedFox / show-hide-konsole
Last active October 31, 2023 00:25
A script to show and hide the konsole application, useful when bound to a custom keyboard shortcut.
#!/usr/bin/env bash
# if konsole is not open launch it
if [ -z "$(xdotool search --class konsole)" ]; then
konsole --tabs-from-file "/home/grayedfox/.config/konsole-tabs"
fi
# get current focused window and visible konsole window
CLASS="konsole"
KONSOLE_ID="$(xdotool search --class $CLASS | awk '{print $1}')"