Skip to content

Instantly share code, notes, and snippets.

View claytonrothschild's full-sized avatar
😎
building cool stuff for CloudPano

Clayton Rothschild claytonrothschild

😎
building cool stuff for CloudPano
View GitHub Profile
@claytonrothschild
claytonrothschild / GHL-notification-sound.md
Created January 30, 2025 01:43
GoHighLevel Bookmarklet: Make sound when new notification

problem to solve

GoHighLevel does not play notification sounds properly, especially when a live chat comes in. This causes you to lose your chance to respond to the live chat in a timely manner.

This script ensures a sound is played when notifications, such as live chat notifications, turn on.

technical explanation

The script continuously checks if the #recent_activities-toggle element contains -notification. If present, it starts playing a sound repeatedly. If removed, it stops the sound. The loop runs every 1 second.

@claytonrothschild
claytonrothschild / RunHttpsWebsite.Dockerfile
Created December 18, 2018 18:53
Run a IIS HTTPS Webserver using Docker
FROM microsoft/iis
WORKDIR /app
RUN powershell -NoProfile -Command \
Import-module IISAdministration; \
New-IISSite -Name "[YourSiteName]" -PhysicalPath C:\app -BindingInformation "*:81:"; \
# Download the IIS url-rewrite module
Invoke-WebRequest http://download.microsoft.com/download/D/D/E/DDE57C26-C62C-4C59-A1BB-31D58B36ADA2/rewrite_amd64_en-US.msi -UseBasicParsing -OutFile C:/app/rewrite.msi; \
Start-Process msiexec -ArgumentList '/i C:\app\rewrite.msi /qn' -Wait; \
@claytonrothschild
claytonrothschild / IIS-RewriteHttpToHttps.ps1
Created December 18, 2018 18:37
Use Powershell to Create IIS Rule to Rewrite HTTP to HTTPS
Import-module IISAdministration;
New-IISSite -Name "[YourSiteName]" -PhysicalPath C:\app -BindingInformation "*:81:";
# Download the IIS url-rewrite module
Invoke-WebRequest http://download.microsoft.com/download/D/D/E/DDE57C26-C62C-4C59-A1BB-31D58B36ADA2/rewrite_amd64_en-US.msi -UseBasicParsing -OutFile C:/app/rewrite.msi;
Start-Process msiexec -ArgumentList '/i C:\app\rewrite.msi /qn' -Wait;
rm C:\app\rewrite.msi;
# Produce a rule that looks like this:
# <rewrite>
# <rules>

Keybase proof

I hereby claim:

  • I am claytonrothschild on github.
  • I am claytonr (https://keybase.io/claytonr) on keybase.
  • I have a public key ASDD9tVIsvzXNqWndXVXVfSepKNZn8c_uTBUaNxJaDBLWQo

To claim this, I am signing this object: