Skip to content

Instantly share code, notes, and snippets.

@Julli4n
Julli4n / ok.js
Last active January 14, 2025 19:33
ROBLOX
/*
!! The feature that uses this endpoint has recently started rolling out to users.
!! See `App > Avatar > Profile Picture Editor`
!!
!! You may continue using this script, the only advantage is being able to
!! customize FullBody and Closeup independently.
*/
@Xyrem
Xyrem / NvidiaGPUSpoofer.c
Last active January 14, 2025 19:32
Nvidia GPU UUID randomizer
DriverInformation_t NVBase;
uint32_t UuidValidOffset = 0;
// Get nvlddmkm.sys information.
if (!Utils::GetDriverInformation(H("nvlddmkm.sys"), NVBase))
{
DBG("Could not find nvlddmkm.sys\n");
return 0;
}
@cpfair
cpfair / unificliptz.md
Created August 24, 2022 22:30
Unifi Protect Cameras - Set PTZ position preset via Command Line/CLI over SSH

This method was tested on a Unifi Protect G4 PTZ Camera.

Instructions:

  1. Enable SSH on camera: log into Unifi appliance via SSH, open /usr/share/unifi-protect/app/config/config.json in an editor, and change "enableSsh": false to "enableSsh": true.

  2. Get camera SSH password: this is the "Recovery Code" found in the Unifi Protect settings under "Other Configurations."

  3. Connect to camera via SSH: ssh [email protected] using the password from (2)

  4. Run these commands to set pan, tilt, and zoom:

ubnt_ipc_cli -T=ubnt_ispserver -m='{"functionName":"ChangeIspSettings", "zoomPosition":12}'

@MaxGabriel
MaxGabriel / parser.ts
Created September 24, 2018 20:27
Date parsing code
import * as P from 'parsimmon'
import Day from '~/utils/Day'
import Month from '~/utils/Month'
const shortMonths = {
jan: 1,
feb: 2,
mar: 3,
apr: 4,
may: 5,

!!! MAIN OBJECTIVES !!!

  1. Read the "User Input" at the bottom
  2. Read through this entire prompt carefully
  3. Follow the "Steps to Follow" section
  4. Stop at each verification point for human confirmation
  5. MAINTAIN THE TASK FILE AS THE CENTRAL SOURCE OF TRUTH !!! END MAIN OBJECTIVES !!!

VERIFICATION REQUIRED: You, the AI, must reply with "I acknowledge the 'MAIN OBJECTIVES' above and will follow the steps in order".

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

@chrisgillis
chrisgillis / ssl_smtp_example.go
Created April 16, 2014 14:48
Golang SSL SMTP Example
package main
import (
"fmt"
"log"
"net"
"net/mail"
"net/smtp"
"crypto/tls"
)
@othyn
othyn / guide.md
Last active January 14, 2025 19:19
Fix horrendously bad macOS (12.3.1 tested) SMB (Samba) performance on Unraid

Intro

Out of the box, my SMB performance on macOS 12.3.1 would top out at around 20MB/s in short ~5 second bursts, which was absolutely horrendous, slow to navigate in Finder and slugish to interact with.

Since making these changes, I now get sustained ~80-100MB/s+ and instant Finder navigation which is superb and how things should be out-of-the-box (OOTB)!

May 2023 update: As of Ventura, the SMB issues were just horribly inconsistent and hard to maintain. Something in the combination of Unraid, macOS and SMB just doesn't play nice. I ended up binning NFS/SMB all together and heading to a locally hosted Nextcloud instance for file syncing, then using SFTP/Ansible Git flow for editing files within appdata.

Sources