Skip to content

Instantly share code, notes, and snippets.

View melonamin's full-sized avatar
🦄
magic

Alex Mazanov melonamin

🦄
magic
View GitHub Profile

Keybase proof

I hereby claim:

  • I am melonamin on github.
  • I am melonamin (https://keybase.io/melonamin) on keybase.
  • I have a public key whose fingerprint is 0A39 2EAC 485F 8A9B 7446 75D9 F99F 0A92 2E8C 58EE

To claim this, I am signing this object:

- Haken
- Flying Colors
- John Petrucci
- The Dear hunter
- The Winery Dogs
- Lunatica
- Devin Townsend
- Therion (Beloved Antichrist)
- Toehider
- Aurora
@melonamin
melonamin / init.sh
Created September 1, 2022 23:24
dotfiles git stepup
git init --bare $HOME/.cfg
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
config config --local status.showUntrackedFiles no
echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.bashrc
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title FSNotes Create New Note
# @raycast.mode silent
# Optional parameters:
# @raycast.icon ./images/fsnotes-icon.png
# @raycast.packageName FSNotes
@melonamin
melonamin / GetFavoritePhotos.swift
Created September 21, 2024 01:20
Script to get filenames of Favorite photos from Photos.app
import Foundation
import Photos
func requestPhotoLibraryAccess(completion: @escaping (Bool) -> Void) {
PHPhotoLibrary.requestAuthorization { status in
completion(status == .authorized)
}
}
func fetchFavoritePhotos(startDate: Date) -> PHFetchResult<PHAsset> {