Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Script to clean Unity-generated meta files and pull latest changes
# Also updates the 'foundation' submodule to the latest commit
# Usage: ./clean_and_pull.sh [path/to/unity/project] [--auto-discard] [--yes] [--force-fetch] [--branch=name] [--submodule-branch=name]
#
# Options:
# --auto-discard Automatically discard all local changes without prompting
# --yes, -y Automatically answer yes to all prompts
# --force-fetch Force fetch even if recent fetch detected (slower but always fresh)
@mrtysn
mrtysn / userChrome.css
Created January 10, 2025 04:32
firefox css config on macos with sideberry
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/window_control_placeholder_support.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
/*
Creates placeholders for window controls.
This is a supporting file used by other stylesheets and is mostly
unnecessary if window titlebar is enabled.
Should preferably be imported before other stylesheets, because some values in this style are deliberately overridden by other styles.
*/
@mrtysn
mrtysn / #vscode-extensions.txt
Last active November 11, 2024 12:08
vscode-settings
aaravb.chrome-extension-developer-tools
amazonwebservices.aws-toolkit-vscode
amodio.restore-editors
atlassian.atlascode
bierner.markdown-mermaid
cezaraugusto.vscode-chrome-extesion-manifest-json-schema
chakrounanas.turbo-console-log
christian-kohler.npm-intellisense
christian-kohler.path-intellisense
codezombiech.gitignore
@mrtysn
mrtysn / .phoenix.js
Last active November 13, 2024 15:36
phoenix macOS
const screenMid = 0;
const screenMac = 1;
const screenVertical = 2;
const locFull = 0;
const locTopHalf = 1;
const locBottomHalf = 2;
const locLeftHalf = 3;
const locRightHalf = 4;
const locTopLeft = 5;
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DL><p>
<DL><p>
<DT><H3 ADD_DATE="1723825584" LAST_MODIFIED="1723830541">browser-extensions</H3>
<DL><p>
<DT><A HREF="https://github.com/rkk3/ad-accelerator" ADD_DATE="1723825603" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABcUlEQVQ4jY3TvWpVURAF4LXvvUmuIkEsLLQKgiAW/qAkNvoUFraCDxMlqEUCghZaiyKCjU3wBewEBTUpFEvBGJEkfjZz8HAw4sCG2XvNmv+dJEFLCS7hAT5gGz9Kv4/F7CeYwUoROvlVp5NtLGPUJ44wh+f+Xx5XwFHn5E4BL3EN69jCBj6W/qqwF2W73JGX8BO7WK23CY5jWucYZgu7XbbfcW6S5EaS2apoF+Mke621T70WfUYrbDfJOMnBJNeDd9WobZzs9aU/mdbdsYBvxXmdqg82MbPvmP44G+NtOfg6StKSSHIoyYF+5L+QW5JpkvniTUZJNgs/kmSxtaaaOCxh0lqTZCnJ0Qq6EdyrdLaqjFP/yOA03mCvyl4LztflLp6U/hRnBsSHvX7t1OjPdgZrBVzArVqohZ6DE4N1hpXhKq/jPa7i4iD1Kb70nDwrzmho9KhndLiHzVefdrDabeVwPJ1+GTcx7b3N1S+8MuT8Bs9NR9kw0z0NAAAAAElFTkSuQmCC">rkk3/ad-accelerator</A>
@mrtysn
mrtysn / openai-custom-instructions.txt
Last active October 6, 2023 10:53
ChatGPT Custom Instructions
>>> What would you like ChatGPT to know about you?
I have been using computers since 1997. I know the ins and outs of them.
Furthermore, I want to get a lot of high quality work done in a very short amount of time.
I try to keep my search time at O(1) and I expect the same from others.
Finding a way to solve a problem should be done very quickly with a very high accuracy.
>>> How would you like ChatGPT to respond?
— Be highly organized
@mrtysn
mrtysn / nodeVersionSwitch.sh
Last active April 14, 2022 09:02
Automatically switch node version using fnm based on the required value in package.json
#!/usr/bin/env bash
# Place this script in the same directory as your package.json file.
# Uncomment and add the section below to your .zshrc
# SECTION BEGIN
# # nodeVersionSwitch.sh script https://gist.github.com/mrtysn/ff2a68c27b2be908c4f8188052d7d728
# # fnm node version manager https://github.com/Schniz/fnm#zsh
# eval "$(fnm env --use-on-cd)"
# if [ -f "./package.json" ] && [ -f "./nodeVersionSwitch.sh" ]; then
# bash "./nodeVersionSwitch.sh"
@mrtysn
mrtysn / reclaimWindows10.ps1
Created January 8, 2017 11:42 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <[email protected]>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1