Skip to content

Instantly share code, notes, and snippets.

@ereli
ereli / hello.go
Last active May 13, 2024 15:18
How to sign macOS and Windows executables using self-signed certificates on a Mac.
package main
import "fmt"
func main() {
fmt.Println("hello world")
}
@tool
extends EditorScenePostImport
class MeshInstanceList:
var mesh: Mesh
var aabb: AABB
var transforms: Array
# Converts geometry node instances into MultiMeshInstances
func gn_instances_to_mm(parent: Node, scene: Node):
@juligaioso
juligaioso / #30DaysOfCTF
Last active May 13, 2024 15:17
30 days of CTF
For the next 30 days, I decided to improve my pentesting skills. So, inspired in the challenge of #100DaysOfCode, i create the challenge #30DaysOfCTF.
## Main Rules:
1. Resolve a CTF challenge every day;
2. Create and publish a WriteUp about the CTF;
3. Share my progress and the WriteUp in the social midia with the hashtag #30DaysOfCTF.
My #30DaysOfCTF starters in 05/13/2024.
@c22dev
c22dev / DEPSteps.md
Last active May 13, 2024 15:14
Remove MDM & DEP from an Apple Sillicon Mac (Sonoma)

How to make an MDM Mac shine like it's brand new ?

Works, as of 14/04/2024, on macOS 14.4.1 and lower (prob higher but idk)

This was made for Apple Sillicon Macs.

Restore Process

You need another Mac for this.

If you don't have one and have recovery locked, it's not possible.

@CarsonSlovoka
CarsonSlovoka / README.create-toc.md
Last active May 13, 2024 15:14
Create the TOC (table of content) by javascript.
@CHIZI-0618
CHIZI-0618 / PuerNya_sing-box_fakeip_client_config.jsonc
Last active May 13, 2024 15:13
sing-box 带有 Proxy Providers 的客户端配置示例
{
"log": {
"level": "info",
"output": "sing-box.log",
"timestamp": true
},
"dns": {
"servers": [
{
"tag": "cloudflare",
@Merott
Merott / tailwind-colors-as-css-variables.md
Last active May 13, 2024 15:11
Expose Tailwind colors as CSS custom properties (variables)

This is a simple Tailwind plugin to expose all of Tailwind's colors, including any custom ones, as custom css properties on the :root element.

There are a couple of main reasons this is helpful:

  • You can reference all of Tailwind's colors—including any custom ones you define—from handwritten CSS code.
  • You can define all of your colors within the Tailwind configuration, and access the final values programmatically, which isn't possible if you did it the other way around: referencing custom CSS variables (defined in CSS code) from your Tailwind config.

See the Tailwind Plugins for more info on plugins.

@sebj
sebj / Guide.md
Last active May 13, 2024 15:10
Add a scene delegate back to a SwiftUI Project

Define an application delegate

See also: UIApplicationDelegate documentation

// AppDelegate.swift
@UIApplicationMain
final class AppDelegate: NSObject, UIApplicationDelegate {

    func application(
        _ application: UIApplication,