Skip to content

Instantly share code, notes, and snippets.

View shredthaGNAR's full-sized avatar

Me shredthaGNAR

View GitHub Profile
@appel
appel / pocket-to-bookmark.py
Last active September 25, 2025 02:16
Python script which converts Pocket's csv export file to html.
# This script converts Pocket's csv export file to html,
# allowing you to import it to a wider range of apps (like Grimoire and Linkding).
# This is a deno to python port, via Gemini.
#
# Note that I did not write this, all credit goes to the original author:
# https://github.com/enjikaka/pocket-to-bookmark
#
# From that repo: "Mozilla is killing Pocket and you get your data export
# as an CSV file. I'll use Linkding instead and it supports the
# Netscape Bookmark File Format. This Deno script converts your CSV export
@0xdevalias
0xdevalias / ai-agent-rule-instruction-context-files.md
Last active December 9, 2025 18:09
Some notes on AI Agent Rule / Instruction / Context files / etc

AI Agent Rule / Instruction / Context files / etc

Some notes on AI Agent Rule / Instruction / Context files / etc.

Table of Contents

@ErnaneJ
ErnaneJ / service.applescript
Last active October 2, 2025 21:20
AppleScript to create a service to improve text with Gemini on macos system ✨
--[[
AppleScript: Text Enhancement with Gemini 1.5 API
Version: 1.0
Developed by: Ernane Ferreira (https://github.com/ErnaneJ)
Description:
This script refines and formalizes selected text by utilizing the Gemini 1.5 Flash model from Google's API.
It integrates spelling, grammar, and stylistic improvements based on a given prompt.
Dependencies:
@hoishing
hoishing / README.md
Created July 24, 2024 12:05
disable Gatekeeper with configuration profiles in macOS 15

Disable Gatekeeper with Configuration Profiles

Starting from macOS 15, sudo spctl --master-disable is no longer supported to disable Gatekeeper.

We need to disbale it with Configuration Profiles.

How

  • Create a new configuration profile, an XML file with .mobileconfig extension, refer the sample file in this gist
  • replace the UUID with your own, you can use uuidgen in terminal to generate a new one
@tanaikech
tanaikech / submit.md
Created May 8, 2024 05:27
Leveraging Gemini 1.5 API for Automated Test Case Generation in Google Apps Script Reverse Engineering

Leveraging Gemini 1.5 API for Automated Test Case Generation in Google Apps Script Reverse Engineering

Abstract

This report examines leveraging Gemini 1.5 API with Google Apps Script to automate sample input creation during script reverse engineering. Traditionally, this process is manual and time-consuming, especially for functions with numerous test cases. Gemini 1.5 API's potential to streamline development by automating input generation is explored through applying reverse engineering techniques to Google Apps Script samples.

Introduction

@p-mng
p-mng / README.md
Last active December 9, 2025 01:17
Uninstall Rosetta 2 on macOS

Uninstall Rosetta 2 on macOS

1. Disable SIP (System Integrity Protection)

  1. Boot into recovery
  2. Open a terminal (Utilities > Terminal)
  3. Disable SIP using csrutil disable
  4. Reboot into macOS

2. Uninstall Rosetta

@CJHwong
CJHwong / README.md
Last active July 21, 2025 10:05
Gems - A Gemini Gem Manager in your MacBook powered by Gemma

The latest updates are available in this repository: https://github.com/CJHwong/gems.sh

gems.sh - A Gemini Gem Manager in your MacBook powered by Gemma

gems.sh is a Zsh script that simplifies interacting with local Large Language Models using Ollama. It provides a rich set of pre-configured prompt templates with advanced features like language detection, JSON schema processing, and flexible output handling.

Inspired by the workflow described in this Hacker News post by eliya_confiant: https://news.ycombinator.com/item?id=39592297.


Spotlight Indexing switch

os x terminal command.

Turn off indexing

Turn off Spotlight Indexing

sudo mdutil -a -i off
@steventheworker
steventheworker / DockAltTab-tccutil.sh
Created April 27, 2023 19:35
DockAltTab remove all permissions w/ redundancy
tccutil reset All com.steventheworker.DockAltTab
tccutil reset ScreenCapture com.steventheworker.DockAltTab
tccutil reset AppleEvents com.steventheworker.DockAltTab
tccutil reset Accessibility com.steventheworker.DockAltTab
tccutil reset MediaLibrary com.steventheworker.DockAltTab
tccutil reset ListenEvent com.steventheworker.DockAltTab
# other... ?
# tccutil reset ListenEvent com.steventheworker.DockAltTab
# tccutil reset DeveloperTool com.steventheworker.DockAltTab
@jwmcgettigan
jwmcgettigan / bitwarden_duplicate_cleaner.py
Last active November 23, 2025 03:32
Identifies and removes duplicate 'items' and 'folders' from your Bitwarden vault. 🎃
#!/usr/bin/env python3
# Copyright © 2023 Justin McGettigan
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software
# and associated documentation files (the “Software”), to deal in the Software without
# restriction, including without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or