Skip to content

Instantly share code, notes, and snippets.

View chaosong's full-sized avatar
🍺
homebrew

chaosong

🍺
homebrew
View GitHub Profile
@hemashushu
hemashushu / configuration.nix
Created May 5, 2025 15:05
NixOS configuration reference 2025-05
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, lib, ... }:
{
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
@unixzii
unixzii / ForceEnablingXcodeLLM.md
Last active April 19, 2025 18:12
A guide to force enabling Xcode LLM feature on China-SKU Macs.

Introduction

Apple restricted the access to Xcode LLM (Predictive code completion) feature on China models of Mac. This guide provides a way to bypass that restriction. It's verified on macOS 15.0 Beta (24A5264n), but there is no guarentee that it will always work on later macOS versions.

Prerequisites

  • Xcode is installed and run at least once.
  • SIP debugging restrictions are disabled (via csrutil enable --without debug command in recovery mode).

Disclaimer

@soheilsec
soheilsec / Red Team Courses
Created February 1, 2024 17:26
Red Team Courses
requirements:
OWASP top 10
kali linux
Active Directory concepts
Windows Internals
Linux Internals
Red Team 1 ->35-45 hours
Network Fundamentals
Web Application Security
@theory
theory / extension-ecosystem-jobs-tools.md
Last active April 22, 2024 19:44
This document sketches an idealized Postgres extension ecosystem

NOTE: Moved to the Postgres Wiki

Extension Ecosystem: Jobs and Tools

This document sketches an idealized Postgres extension ecosystem.

Why?

The past year has seen a surge in interest in Postgres extension distribution. A number of people have noted in particular the challenges in finding and

@joelonsql
joelonsql / PostgreSQL-EXTENSIONs.md
Last active May 8, 2025 08:12
1000+ PostgreSQL EXTENSIONs

🗺🐘 1000+ PostgreSQL EXTENSIONs

This is a list of URLs to PostgreSQL EXTENSION repos, listed in alphabetical order of parent repo, with active forks listed under each parent.

⭐️ >= 10 stars
⭐️⭐️ >= 100 stars
⭐️⭐️⭐️ >= 1000 stars
Numbers of stars might not be up-to-date.

@chriseidhof
chriseidhof / boilerplate.swift
Last active April 17, 2025 11:08
QuickMacApp
// Run any SwiftUI view as a Mac app.
import Cocoa
import SwiftUI
NSApplication.shared.run {
VStack {
Text("Hello, World")
.padding()
.background(Capsule().fill(Color.blue))

User authentication system

Your task is now to create a user authentication system.

This document will guide you through all the features and implication of such system, so that you don't have to search them yourself.

We will focus on web/browser-technologies, however similar concept can be widely applied. This guide, is a work in progress, feel free to comment and provide feedbacks.

Expected Workflows

@mikedesu
mikedesu / proxy
Last active July 2, 2019 14:52 — forked from sryze/proxy
Quickly toggle HTTP(S) proxy on Mac OS X from command line
#!/bin/sh
# usage: ./proxy.sh <service> <port> <on/off>
SERVICE="$1" # or "Wi-Fi"
PROXY_HOST="127.0.0.1"
PROXY_PORT="$2"
case "$3" in
on)
@sdhzdmzzl
sdhzdmzzl / bj-unicom-iptv.m3u
Last active May 6, 2025 05:35
北京联通iptv列表
#EXTINF:-1,CCTV-1
rtp://239.3.1.1:8000
#EXTINF:-1,CCTV-2
rtp://239.3.1.2:8004
#EXTINF:-1,CCTV-4
rtp://239.3.1.4:8216
#EXTINF:-1,CCTV-7