Skip to content

Instantly share code, notes, and snippets.

View retyui's full-sized avatar
undefined

Davyd NRB retyui

undefined
View GitHub Profile
@retyui
retyui / react-native-branch.d.ts
Created January 10, 2020 09:42
react-native-branch Typescript definitions
declare module 'react-native-branch' {
// https://github.com/BranchMetrics/react-native-branch-deep-linking-attribution#content-schema
export type ContentSchema =
| 'COMMERCE_AUCTION'
| 'COMMERCE_BUSINESS'
| 'COMMERCE_OTHER'
| 'COMMERCE_PRODUCT'
| 'COMMERCE_RESTAURANT'
| 'COMMERCE_SERVICE'
| 'COMMERCE_TRAVEL_FLIGHT'
#!/bin/bash
if [[ -z "$NGROK_TOKEN" ]]; then
echo "Please set 'NGROK_TOKEN'"
exit 2
fi
if [[ -z "$USER_PASS" ]]; then
echo "Please set 'USER_PASS' for user: $USER"
@retyui
retyui / remove-all.md
Last active August 10, 2023 16:17
Simple way to remove all workflow runs in GitHub Actions:

Simple way to remove all workflow runs in Github Actions:

export user=NameOrOrgName
export repo=RepoName


gh api repos/$user/$repo/actions/runs --paginate -q '.workflow_runs[] | "\(.id)"'  | xargs -n1 -I % gh api repos/$user/$repo/actions/runs/% -X DELETE
@retyui
retyui / start-vpn.sh
Created August 10, 2023 16:10
AnyConnect linux connect vpn script
#!/usr/bin/expect
set USERNAME "<user>"
set PASSWORD [lindex $argv 0]
eval spawn /opt/cisco/anyconnect/bin/vpn connect vpn.mysite.com
expect "Connect Anyway" { send "y\r" }
expect "import the certificate" { send "n\r" }