Skip to content

Instantly share code, notes, and snippets.

@iul1an
iul1an / bootstrap.sh
Last active March 23, 2025 15:23
kind+gitea+argocd
#!/bin/bash
set -euo pipefail
# create cluster
cat <<EOF | kind create cluster --config=-
---
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
@KBPsystem777
KBPsystem777 / copilot-instructions.md
Created March 22, 2025 05:31
My personal Copilot Instructions setup for everyday web development activities

πŸ‘‘ Core Philosophy

  • βœ… Write ultra-clean, testable, reusable code
  • βœ… Follow DRY (Don’t Repeat Yourself) at all times
  • βœ… Predict bugs & optimize for performance
  • βœ… Promote code clarity & maintainability
  • βœ… Ensure 90%+ unit test pass rate
  • βœ… Encourage documentation with emojis 😎
  • βœ… Check for existing components before suggesting new ones
  • βœ… Use Tailwind + React-TS with pnpm/npm (government-grade software)
@danjargold
danjargold / whatFilesHaveIShared.gs
Created August 11, 2018 09:31
Google script to list (on a Google Sheet) all files shared in your google drive, including all viewers, editors, and sharing permissions. Credit goes to @woodwardtw (https://gist.github.com/woodwardtw/22a199ecca73ff15a0eb) as this is an improvement on his code which only assesses a single folder and one level of sub-folders down.
function listFolders(folder) {
var sheet = SpreadsheetApp.getActiveSheet();
sheet.appendRow(["Name", "Sharing Access", "Sharing Permission", "Get Editors", "Get Viewers", "Date", "Size", "URL", "Download", "Description", "Type"]); //writes the headers
//var folder = DriveApp.getFolderById("INSERT_YOUR_FILE_ID");//that long chunk of random numbers/letters in the URL when you navigate to the folder
//getLooseFiles(folder, sheet);
//getSubFolders(folder, sheet);
//instead of getting folder by ID rather get all folders and cycle through each. Note this will miss loose files in parent directory.
var folder = DriveApp.getFolders()
@moladukes
moladukes / holidays.json
Created August 30, 2023 20:24
Google Calendar Country Holiday CalendarId's
{
"Afghanistan": "en.af#holiday@group.v.calendar.google.com",
"Albania": "en.al#holiday@group.v.calendar.google.com",
"Algeria": "en.dz#holiday@group.v.calendar.google.com",
"American Samoa": "en.as#holiday@group.v.calendar.google.com",
"Andorra": "en.ad#holiday@group.v.calendar.google.com",
"Angola": "en.ao#holiday@group.v.calendar.google.com",
"Anguilla": "en.ai#holiday@group.v.calendar.google.com",
"Antigua and Barbuda": "en.ag#holiday@group.v.calendar.google.com",
"Argentina": "en.ar#holiday@group.v.calendar.google.com",
@ChristopherA
ChristopherA / brew-bundle-brewfile-tips.md
Last active March 23, 2025 15:11
Brew Bundle Brewfile Tips

Brew Bundle Brewfile Tips

Copyright & License

Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.

Sponsor

If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.

@dreness
dreness / thyme-snippets.md
Last active March 23, 2025 15:09
A bunch of Algodoo script snippets, extracted from public files

... is pretty great. If you somehow arrived here without knowing what Algodoo is, I implore you to go try it right now.

I had a hard time finding good examples of Thyme code on ye interwebs, and this document tries to remedy that. I downloaded a bunch of public compositions by the talented matto and then made a Jupyter notebook to extract interesting Thyme snippets from the project files (which are just zip archives after all). For this purpose, I define "interesting" as:

@creold
creold / textBlock.jsx
Created August 17, 2023 08:25
Converts selected point textFrames into a Block of Text. Adobe Illustrator script
//@target Illustrator
// script.name = textBlockLive.jsx;
// script.description = converts selected point textFrames into a Block of Text;
// script.required = one document with at least two selected Point Text frames;
// script.parent = carlos canto // 12/4/11; Update 03/15/205 added User Defined Units, cosmetics
// script.modification = sergey osokin // 08/12/23; keep text editable, sort texts by Y, cosmetics
// script.elegant = false;
function main() {
@NickSeagull
NickSeagull / ubuntu-bloat-removal.sh
Last active March 23, 2025 15:08
Updated Jan 22nd, 2024 - Simple command to remove all "bloatware" from ubuntu
sudo apt-get remove \
aisleriot \
brltty \
duplicity \
empathy \
empathy-common \
example-content \
gnome-accessibility-themes \
gnome-contacts \
gnome-mahjongg \
@jeremyd2019
jeremyd2019 / find_fast_cwd_arm.c
Last active March 23, 2025 15:02
prototype code to find fast cwd pointer on arm64
#include <windows.h>
/* hacks on top of hacks ... */
#define _PEB _NOT__PEB
#define PEB _NOT_PEB
#define PPEB _NOT_PPEB
#define _TEB _NOT__TEB
#define TEB _NOT_TEB
#define PTEB _NOT_PTEB
#include <winternl.h>
#undef _PEB
{ΓΏxosPc0 serial#f050412cc7e4c7e22c7ee7d08699826b subid 0xc4
xenv cs2 ok
Power supply: OK
DRAM0 OK (9)
DRAM1 OK (8)