Skip to content

Instantly share code, notes, and snippets.

@YOU54F
YOU54F / merge_all_prs.sh
Created May 5, 2021
merge all open PR's across all repos for a github userr
View merge_all_prs.sh
for repo in $(gh repo list -L 100 | awk {'print $1}'); do
for pr_no in $(gh pr list -R $repo | awk {'print $1}'); do
gh pr merge -R $repo -s $pr_no
done
done
@YOU54F
YOU54F / getStarredRepos.sh
Last active Oct 24, 2020
Get starred repos and create a markdown file
View getStarredRepos.sh
#!/bin/bash
USER=${1:-YOU54F}
STARS=$(curl -sI https://api.github.com/users/$USER/starred?per_page=1|egrep '^Link'|egrep -o 'page=[0-9]+'|tail -1|cut -c6-)
PAGES=$((658/100+1))
echo You have $STARS starred repositories.
echo
@YOU54F
YOU54F / config.yml
Created May 16, 2019
Cypress Microsoft Edge MacOSX - CircleCI config
View config.yml
version: 2.1
jobs:
test:
macos:
xcode: 10.1.0
working_directory: ~/app
steps:
- checkout
- run:
@YOU54F
YOU54F / Cypress_instuctions.md
Last active May 11, 2019
Instructions for running Cypress with iFrames / X-origin in Chrome headed
View Cypress_instuctions.md

Cypress & iFrames/x-origin issues.

Currently working Browsers & Modes

  • Chrome Headed
    • Cypress UI
    • Cypress CLI
  • Chrome Headless
    • Cypress UI
    • Cypress CLI
@YOU54F
YOU54F / items.json
Last active Jun 17, 2020
Configuration file for My TouchBar. My rules - https://github.com/Toxblh/MTMR
View items.json
[
{ "type": "escape", "align": "left" },
{
"type": "appleScriptTitledButton",
"source": {
"inline":
"if application \"iTunes\" is running then\rtell application \"iTunes\"\rif player state is playing then\rreturn (get artist of current track) & \" – \" & (get name of current track)\relse\rreturn \"\"\rend if\rend tell\rend if\rreturn \"\"\r"
},
"action": "appleScript",
"actionAppleScript": {