Skip to content

Instantly share code, notes, and snippets.

View bsramin's full-sized avatar
👨‍💻
Optimize the world, bit by bit

Ramin Banihashemi bsramin

👨‍💻
Optimize the world, bit by bit
View GitHub Profile
@bsramin
bsramin / ferdi_fix_user_agent.sh
Created May 1, 2020 18:21
Fix issue for ferdi user agent (for google services)
#!/bin/bash
# Fixes broken Google-based Franz recipes by changing user-agent per recipe
# "This browser or app may not be secure. Learn more. Try using a different browser"
FRANZ_OR_FERDI=Ferdi
MAC_OSX_PATH="$HOME/Library/Application Support/$FRANZ_OR_FERDI/recipes"
find "$MAC_OSX_PATH" -type d \( \
-name "hangouts" -o \
-name "hangoutschat" -o \
-name "gmail" -o \
-name "googlecalendar" -o \
@bsramin
bsramin / deletePackageVersion.sh
Created April 8, 2020 22:21 — forked from ghorbanzade/deletePackageVersion.sh
registryPackagesForQuery and deletePackageVersion
curl -X POST \
-H "Accept: application/vnd.github.package-deletes-preview+json" \
-H "Authorization: bearer <PERSONAL_ACCESS_TOKEN>" \
-d '{"query":"mutation { deletePackageVersion(input:{packageVersionId:\"<PACKAGE_VERSION>\"}) { success }}"}' \
https://api.github.com/graphql