This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# given "https://www.icloud.com/iclouddrive/<ID>#<Filename> | |
ID="...." | |
URL=$(curl 'https://ckdatabasews.icloud.com/database/1/com.apple.cloudkit/production/public/records/resolve' \ | |
--data-raw '{"shortGUIDs":[{"value":"$ID"}]}' --compressed \ | |
jq -r '.results[0].rootRecord.fields.fileContent.value.downloadURL') | |
curl "$URL" -o myfile.ext |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64 | |
from github import Github | |
from github import InputGitTreeElement | |
g = Github("YOUR TOKEN") | |
# for org repo | |
# org = g.get_organization("NaimurDev") | |
# repo = org.get_repo('test_file') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Development Build" | |
on: | |
push: | |
branches: [ development ] | |
pull_request: | |
branches: [ development ] | |
jobs: | |
Build: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install | |
pip install shell-gpt | |
sgpt "hi" (and enter your API key) | |
# commit the current folder with the generated message | |
git commit . -m "$(git diff | sgpt --model gpt-4o --code 'Write concise, informative commit messages: Start with a summary in imperative mood, explain the 'why' behind changes, keep the summary under 50 characters, use bullet points for multiple changes, avoid using the word refactor, instead explain what was done, and reference related issues or tickets. What you write will be passed to git commit -m "[message]"')" | |
# you could assign an alias now if you like it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# ================================================================================ | |
# A macOS shell script to create an .icns icon file from an image input file | |
# | |
# NOTE: make this file executable first using: | |
# chmod +x /path/to/icon_maker.sh | |
# | |
# -------------------------------------------------------------------------------- | |
# Source: https://gist.github.com/Swiss-Mac-User/7a1a55e499db618c59718cbffe23318c |
OlderNewer