Skip to content

Instantly share code, notes, and snippets.

View SmugZombie's full-sized avatar

Ron Egli SmugZombie

View GitHub Profile
// ==UserScript==
// @name Porkbun PriceScanner
// @namespace Github.com/Smugzombie
// @version 0.1
// @description Scans Porkbun's Domain Page for Best Priced Domains
// @author SmugZombie
// @match https://porkbun.com/checkout/search?q=*&all=1
// @grant none
// ==/UserScript==
#!/bin/bash
# Loops through the current directory looking for .mp3 files, converts them to wav files and cleans up the current directory
# Ron Egli - Github/smugzombie
# Create a place for the Originals
dir1="mp3"
dir2="wav"
if [[ ! -e $dir1 ]]; then
mkdir $dir1
@SmugZombie
SmugZombie / README.md
Created October 11, 2019 17:59 — forked from barneycarroll/README.md
Lock and unlock a page's scroll position.

jquery.scrollLock.js

Useful for when a blocking user experience is needed (in my case, didn't want people unwittingly loosing their place by scrolling while a modal required their attention): $.scrollLock() locks the body in place, preventing scroll until it is unlocked.

// Locks the page if it's currently unlocked
$.scrollLock();

// ...or vice versa
#!/bin/bash
echo
echo "# arguments called with ----> ${@} "
echo "# \$1 ----------------------> $1 "
echo "# \$2 ----------------------> $2 "
echo "# path to me ---------------> ${0} "
echo "# parent path --------------> ${0%/*} "
echo "# my name ------------------> ${0##*/} "
echo "# path to me ---------------> " $(basename $0)
@ECHO OFF
FOR /F "tokens=3 delims=: " %%H IN ('SC QUERY "ServiceName" ^| FINDSTR " STATE"') DO (
IF /I "%%H" NEQ "RUNNING" (
NET START "ServiceName"
)
)
; A system-wide mute toggle for Zoom Meetings.
$F9::
; Zoom appears not to accept ControlSend when in the background, so
; we isolate the Zoom and current windows, switch over to Zoom, send
; its own mute-toggle hotkey, and then switch back.
;
; Get the current window
WinGet, active_window, ID, A
;
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#Include, WinRun.ahk
# Base64 String Handling Taking Advantage of Powershell
# Ron Egli - Github.com/SmugZombie
# Download the DMG
curl -o ringcentral.dmg http://downloads.ringcentral.com/sp/RingCentralPhone-10.2.1.dmg
# Mount the DMG
hdiutil attach ringcentral.dmg
# Move the app to the applications directory
cp -R /Volumes/RingCentral\ Phone/RingCentral\ for\ Mac.app /Applications/
# Change Perms
chown -R root:admin RingCentral\ for\ Mac.app/
# Eject DMG
hdiutil eject /Volumes/RingCentral\ Phone/
def strtr(strng, replace):
buf, i = [], 0
while i < len(strng):
for s, r in replace.items():
if strng[i:len(s)+i] == s:
buf.append(r)
i += len(s)
break
else:
buf.append(strng[i])

Open RegEdit.exe and Navigate to:

Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters

Create new DWORD32, Named AutoShareWks, Do not modify its value - Should equal: 0

Reboot