Skip to content

Instantly share code, notes, and snippets.

Disable Device Enrollment Notification on Mac.md

Restart the Mac in Recovery Mode by holding Comment-R during restart

Open Terminal in the recovery screen and type

csrutil disable
@gwalkey
gwalkey / gist:b168d532b472333e96663cf607bf84eb
Last active March 16, 2025 12:00
Create a NuGet Package to Install a Powershell Module
Download the CLI Version of NuGet
https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
--Create Work Paths
md c:\nuget
md c:\nuget\source
md c:\nuget\publish
-- One-Time - Create local NuGet Repo/feed using a local drive path
cd c:\nuget
@SteveGilham
SteveGilham / SnapInPP.cpp
Created May 19, 2018 07:00
simple cmdlet in C++/CLI
using namespace System;
using namespace System::Management::Automation;
using namespace System::ComponentModel;
namespace PSBook { namespace Commands
{
[RunInstaller(true)]
public ref class PSBookChapter2MySnapIn : PSSnapIn
{
public:
public class Result<T> : Result
{
public T Value { get; }
public Result(T result)
{
Success = true;
Value = result;
}
public Result()
@degritsenko
degritsenko / mikotik-youtube.MD
Last active March 16, 2025 11:57
Route youtube traffic via VPN with Mikrotik / Форвард youtube в туннель на mirotik

Должен быть настроен DOH

Этап 0. Аренуем VPS, настраиваем туннель с роутером. Проще всего wireguard

Этап 1. Создаем таблицу маршрутизации

/routing table add disabled=no fib name=xoxo
package tenancy
import (
"context"
"database/sql"
"database/sql/driver"
"errors"
"fmt"
"github.com/lib/pq"
kl note: Here is the Deep Research prompt I used in the Cursor Storybook video: https://youtu.be/gXmakVsIbF0
For background, this is a real-world tech feasibility task I am working on where I am trying to build out a realistic-looking fake website for an AI browsing agent to use to complete tasks. I found this random site that was close enough to what I wanted so I used it as a shortcut instead of taking the time to write out a full PRD or anything.
...above this was just the transcript and the initial guidance...
Act as a technical fellow and create a detailed, step-by-step guide to recreating this software using a modern stack. Here is the cursorrules for this repository:
# .cursorrules
Components & Naming
@TomLous
TomLous / setup.sh
Last active March 16, 2025 11:55
Clean Install
defaults write com.apple.finder AppleShowAllFiles YES
defaults write com.apple.Finder AppleShowAllFiles true
# TODO: Copy id_rsa keys to .ssh (copy from file)
chmod 600 ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa.pub
# Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
@opus-x
opus-x / Spotify_Eliminate_Advertisements
Last active March 16, 2025 11:43
Eliminate Spotify Advertisements + Complete Server List
##################################################################################
# ELIMINATE SPOTIFY ADS (VERSION 1.2 - 8.5) - ABANDONED FOR NOW #
##################################################################################
#
# NOTE: SOMETIMES ONLY ANNOUNCEMENT OF AN AD WHILE USING APP VERSION 7.5-7.9?-8.x.
# USING AN OFFICIAL OLDER VERSION SOLVES THIS. TEST IT (APKMIRROR). THIS WILL NOT
# OCCUR USING CHROMECAST / GOOGLE HOME.
#
# COULD NOT SOLVE THE AUDIO AD INRO/OUTRO IN THE APP.
# SUGGESTIONS? WRITE A COMMENT BELOW.
@buddhiraz
buddhiraz / claude_agent.py
Last active March 16, 2025 11:41
A Simple Implementation of Claude ChatBot , with Tools usage and streaming working wiihtout breaking !!!!
import anthropic
import json
from typing import Dict, Any
API_KEY = 'sk-ant-api03-fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
client = anthropic.Anthropic(api_key=API_KEY)