Skip to content

Instantly share code, notes, and snippets.

@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
@OdinMovec
OdinMovec / digitalocean-promo-code-february-march-april-2018.md
Created May 2, 2024 06:47 — forked from fredroo/digitalocean-promo-code-february-march-april-2018.md
Digital Ocean Promo Code for January / February / March / April / May / June / July / August / September / October / November / December 2024

Digital Ocean Promo Code for January, February, March, April, May, June, July, August, September, October, November, and December of 2024

Save $200 for your Cloud Computing Solution with Digital Ocean.

How to get the Discount?

1.) Use this link to Sign Up and save your first $200.

2.) Enter the Promocode LOWENDBOX when you choose your payment method and get another $15 discount.

@prwhite
prwhite / Makefile
Last active May 2, 2024 18:02
Add a help target to a Makefile that will allow all targets to be self documenting
# Add the following 'help' target to your Makefile
# And add help text after each target name starting with '\#\#'
help: ## Show this help.
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
# Everything below is an example
target00: ## This message will show up when typing 'make help'
@echo does nothing
@Julli4n
Julli4n / ok.js
Last active May 2, 2024 18:02
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.
*/
@aspose-com-gists
aspose-com-gists / DWGtoSVG.cs
Last active May 2, 2024 18:01
Convert DWG to SVG in C# .NET
// Load the input DWG file
Image image = Image.Load("sample.dwg");
// Initialize SvgOptions class object
ImageOptions.SvgOptions options = new ImageOptions.SvgOptions();
// Set SVG color mode
options.ColorType = SvgColorMode.Grayscale;
options.TextAsShapes = true;
@gcsuid
gcsuid / yt101
Last active May 2, 2024 17:59
comment on video
import os
import random
import pickle
import requests
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
from googleapiclient.discovery import build
SCOPES = ['https://www.googleapis.com/auth/youtube.force-ssl']
@voltrevo
voltrevo / phrases.md
Last active May 2, 2024 17:56
Test bip39 seedphrases

The following is a well known test seed phrase:

test test test test test test test test test test test junk

During development, it's beneficial to use seedphrases which are obviously meant for testing, so using test for the first 11 words is helpful. Since only 4 bits of 12-word bip39 seedphrases are for the checksum, 1 in 16 phrases are valid by chance. This gives us many additional options for the last word if you need more than one seedphrase:

test test test test test test test test test test test absent