Skip to content

Instantly share code, notes, and snippets.

View dsayling's full-sized avatar
🖖

Drew Ayling dsayling

🖖
View GitHub Profile
@dsayling
dsayling / stacked.md
Last active September 11, 2024 20:32
StackedPRs

Stacked PRS

So, you have a bunch of work that you feel is too much work to deliever at once!

You have something that looks like this

image

The PR between the last commit on Main and the end result of your PR is YUGE!

{
"meta": {
"theme": "kendall"
},
"basics": {
"name": "Drew Ayling",
"label": "DevOps Practitioner | Software and System Architect",
"picture": "https://raw.githubusercontent.com/dsayling/dsayling/refs/heads/main/headshot.png",
"email": "dsayling@gmail.com",
"url": "https://ayling.fyi",
@dsayling
dsayling / ss_path.sh
Created May 25, 2023 17:32
Set macOS screenshot location to ~/Desktop/Screenshots
SS_PATH=~/Desktop/Screenshots
mkdir $SS_PATH || echo "screenshots already exist"
defaults write com.apple.screencapture location $SS_PATH
@dsayling
dsayling / remove-squash-merged-branches
Created May 24, 2023 17:53
Removes the local branches that have been squash merged into default (in this case main)
alias gprunemerged='git checkout -q main && git for-each-ref refs/heads/ "--format=%(refname:short)" | while read branch; do mergeBase=$(git merge-base main $branch) && [[ $(git cherry main $(git commit-tree $(git rev-parse "$branch^{tree}") -p $mergeBase -m _)) == "-"* ]] && git branch -D $branch; done'
@dsayling
dsayling / setup_m1_python.md
Last active April 25, 2023 20:55
Setting up m1 mac for python dev using x86

Install rosetta, the x86 mac emulation:

softwareupdate --install-rosetta

Install commandline tools:

xcode-select --install
@dsayling
dsayling / testrail_doc_problems.md
Last active October 26, 2022 20:19
Gurock TestRail Documentation Problems

TestRail Documentation Issues

get_attachments_for_plan

Doc Link

Problem

The api request is a bulk endpoint with offset and limit, however the parameters table does not show these. Also, the response in the documentation does not follow the offset and limit response standard. However, in reality it does follow the standard.

@dsayling
dsayling / main.yml
Created September 27, 2022 18:08
Starter python publish workflow with poetry
# Main Workflow
# Workflow runs on every push to main, filtering out changes to markdown and json files.
# The workflow is split into two jobs:
# - tag-default-branch: This job pushes a new tag to the default branch (main) based on the latest commit.
# The version is bumped based on angular commit message conventions.
# Poetry uses this tag to determine the version of the package.
# - build-and-publish: This job builds and publishes the package to the artifactory server.
name: main workflow
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.outlook.sync</string>
<key>Program</key>
<!--Be sure to put your username here-->
@dsayling
dsayling / sounds.sh
Created September 13, 2022 22:47
script to update default mac outlook sounds
#!/usr/bin/env sh
outlookPath="/Applications/Microsoft Outlook.app/Contents/Frameworks/OutlookCore.framework/Versions/Current/Resources"
# when you set this up as a root launchdaemon, you'll need to put the full path
# or to a root path
default_soundPath="/Users/$USER/sounds"
allSounds=("goodbye.wav" "mailsent.wav" "nomail.wav" "welcome.wav" "mailerror.wav" "newmail.wav" "reminder.wav")
for sound in ${allSounds[@]}; do
# check the file exists
# Run this as a script
# newf=$1
# or just update this
newf = ~/Downloads/newmail.wav
cd /Applications/Microsoft\ Outlook.app/Contents/Frameworks/OutlookCore.framework/Versions/Current/Resources
mv newmail.wav newmail.wav.bu
cp $newf .