Skip to content

Instantly share code, notes, and snippets.

@nicolasdao
nicolasdao / open_source_licenses.md
Last active May 2, 2024 18:16
What you need to know to choose an open source license.
@wouterdebie
wouterdebie / comfyui_macos.sh
Last active May 2, 2024 18:15
ComfyUI MacOS Apple Silicon install
#!/bin/bash
set -e
brew install llvm libomp python@3.11
export CC=$(brew ls --verbose llvm | grep -e 'bin/clang$')
export CXX=$(brew ls --verbose llvm | grep -e 'bin/clang++$')
git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI
python3.11 -m venv venv
@senseisimple
senseisimple / comment-36.md
Last active May 2, 2024 18:12
dbm to percent conversion - quadratic

In Response to comment: https://www.intuitibits.com/2016/03/23/dbm-to-percent-conversion/#comment-9 regarding the quadratic formula used by WiFi Explorer (based on ipw2200 driver logic) for which a dBm to Percent table is provided.

https://github.com/torvalds/linux/blob/9ff9b0d392ea08090cd1780fb196f36dbb586529/drivers/net/wireless/intel/ipw2x00/ipw2200.c#L4321

Some quick PHP based on the ipw2200 code and a table generating function:

function signal_quality_perc_quad($rssi, $perfect_rssi=-20, $worst_rssi=-85) {
$nominal_rssi=($perfect_rssi – $worst_rssi);
@kizzx2
kizzx2 / docker-compose.yml
Last active May 2, 2024 18:10
Restart a docker container periodically with docker-compose
version: '3'
services:
app:
image: nginx:alpine
ports: ["80:80"]
restart: unless-stopped
restarter:
image: docker:cli
volumes: ["/var/run/docker.sock:/var/run/docker.sock"]
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created May 2, 2024 16:53
thumbsremover v1.6.1.280 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-3166082273-3713568515-573898151-1000</user>
<keys>
<key installerType="InnoSetup" displayName="Thumbs Remover" displayVersion="1.6.1.280">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{CD3423F8-F651-41DE-AA3C-0BF2A2EF505A}_is1</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[C:\Program Files\Thumbs Remover\]]></InstallLocation>
<UninstallString><![CDATA["C:\Program Files\Thumbs Remover\unins000.exe" /SILENT]]></UninstallString>
@Lordmau5
Lordmau5 / userscript.js
Last active May 2, 2024 18:07
Keygenmusic.tk Improvements
// ==UserScript==
// @name Keygenmusic.tk Improvements
// @namespace http://tampermonkey.net/
// @version 1.3.1
// @description Various extra functionality and fixes for the amazing site Keygenmusic.tk (Volume slider, Seekbar, Loop toggle, List fixes)
// @author Lordmau5
// @match https://keygenmusic.tk/
// @icon https://www.google.com/s2/favicons?sz=64&domain=keygenmusic.tk
// @grant none
// @require https://unpkg.com/hyperlist@1.0.0/dist/hyperlist.js
@0x199
0x199 / notify.cpp
Last active May 2, 2024 18:04
sceKernelSendNotificationRequest - PS4 OpenOrbis Toolchain Implementation
#include <orbis/libkernel.h>
void SystemNotification(const char* text, const char* iconName = "icon_system");
void SystemNotification(const char* text, const char* iconName) {
OrbisNotificationRequest NotificationBuffer;
NotificationBuffer.type = OrbisNotificationRequestType::NotificationRequest;
NotificationBuffer.unk3 = 0;
NotificationBuffer.useIconImageUri = true;
@conradfuhrman
conradfuhrman / herd-reverb-ssl.md
Last active May 2, 2024 18:04
Laravel Herd, SSL, and Reverb with Herd

The biggest issue with Herd Pro is that you cannot use Reverb out of the box with a site that has SSL enabled. Here is the workaround for it all to play nicely together.

First you will need to create two sites. The two I have here are as follows:

  • reverb-ssl - This is a new Laravel 11 project using Breeze for the ease of Inertia. This also follows the setup for Reverb line by line.
  • wss-reverb-ssl - This is an empty directory, we are going to use this only for editing a Nginx config and setting up a proxy to the reverb service.

Screenshot 2024-04-03 at 2 33 08 PM

Of note is that I'm using Herd Pro as well, so all additional services are being used directly though Herd Pro itself.

Indexer Membership Status API URL Software API Hits/Day NZB Grabs/Day Retention Account Duration Counter Reset Counter Reset
NZB.cat Free https://nzb.cat nZEDb 500 50 60 Days
NZB.cat VIP https://nzb.cat nZEDb 5,000 1,000 Lifetime
Oznzb.com Freeloader https://api.oznzb.com Newsnab+ 5 5 Rolling Counter Rolling Co