Skip to content

Instantly share code, notes, and snippets.

View ghorbanzade's full-sized avatar

Pejman Ghorbanzade ghorbanzade

View GitHub Profile
@ghorbanzade
ghorbanzade / deletePackageVersion.sh
Created November 22, 2019 08:08
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
@ghorbanzade
ghorbanzade / create-iso.sh
Last active July 12, 2018 09:03 — forked from julianxhokaxhiu/create-iso.sh
Script to Convert OSX app Image to Bootable iso
#!/bin/bash
# tested for Yosemite, ElCapitan and Sierra
print_usage () {
echo "usage: ${0} path_to_app"
exit -1;
}
if [ $# -ne 1 ]; then