Skip to content

Instantly share code, notes, and snippets.

@YOU54F
YOU54F / Cypress_instuctions.md
Last active May 11, 2019 00:06
Instructions for running Cypress with iFrames / X-origin in Chrome headed

Cypress & iFrames/x-origin issues.

Currently working Browsers & Modes

  • Chrome Headed
    • Cypress UI
    • Cypress CLI
  • Chrome Headless
    • Cypress UI
  • Cypress CLI
@YOU54F
YOU54F / config.yml
Created May 16, 2019 19:52
Cypress Microsoft Edge MacOSX - CircleCI config
version: 2.1
jobs:
test:
macos:
xcode: 10.1.0
working_directory: ~/app
steps:
- checkout
- run:
@YOU54F
YOU54F / items.json
Last active June 17, 2020 16:41
Configuration file for My TouchBar. My rules - https://github.com/Toxblh/MTMR
[
{ "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": {
@YOU54F
YOU54F / getStarredRepos.sh
Last active October 24, 2020 02:21
Get starred repos and create a markdown file
#!/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 / merge_all_prs.sh
Created May 5, 2021 19:52
merge all open PR's across all repos for a github userr
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 / clone_all_pact_org_repos.sh
Created March 29, 2022 14:59
Clone all of the pact-organisation repos
#!/bin/sh
export ORG=pact-foundation
mkdir $ORG; cd $ORG
gh repo list $ORG --limit 9999 --json url | jq '.[]|.url' | xargs -n1 git clone
@YOU54F
YOU54F / update_git_repos.sh
Created March 29, 2022 15:31
Update all them git repos whether they are on main or master. Gotta sync em all
#!/bin/bash
# store the current dir
CUR_DIR=$(pwd)
# Let the person running the script know what's going on.
echo "[Pulling in latest changes for all repositories...]"
# Find all git repositories and update it to the master latest revision
for i in $(find . -name ".git" | cut -c 3-); do
@YOU54F
YOU54F / gist:96c358e9917a89e8c700f03ca11495ec
Last active May 4, 2022 21:39
clone all repos for an org
gh repo list $ORG_NAME --limit 9999 --json sshUrl | jq '.[]|.sshUrl' | xargs -n1 git clone
@YOU54F
YOU54F / aws_cognito_get_tokens.py
Created May 17, 2022 03:20 — forked from aleksei140888/aws_cognito_get_tokens.py
The script helps to change the password for the cognito user and get access, id and resfresh tokens for it. (Please allow ALLOW_USER_PASSWORD_AUTH and ALLOW_USER_SRP_AUTH for your app_client)
import boto3
import logging
import botocore
from typing import Optional
from botocore.exceptions import ClientError
AWS_ACCESS_KEY_ID = 'AKIAS7AVEMA4RPAVEMAA'
AWS_SECRET_ACCESS_KEY = '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'
@YOU54F
YOU54F / travelling_ruby.sh
Created May 17, 2022 20:06
Travelling Ruby > 2.4 : Active Forks
# Find interesting forks
https://gitpop2.herokuapp.com/phusion/traveling-ruby
https://andremiras.github.io/gitpop3/
# FooBarWidgets Posts and comments about upggrade to ruby 2.4
https://www.joyfulbikeshedding.com/blog/2021-01-13-alternative-to-macos-dyld-library-path.html
https://github.com/phusion/traveling-ruby
https://github.com/phusion/traveling-ruby/pull/94#issuecomment-754371791
# Interesting Forks