Skip to content

Instantly share code, notes, and snippets.

@dredix
dredix / UpdateDDNS.ps1
Created August 29, 2012 07:50
A PowerShell script for performing a Dynamic DNS Update with namecheap.com
# UpdateDDNS.ps1
# Update Dynamic DNS on Namecheap.com via HTTP GET request.
Param(
[parameter(Mandatory=$true)]
[alias("c")]
$ConfigFile)
# Parse the content of an INI file, return a hash with values.
# Source: Artem Tikhomirov. http://stackoverflow.com/a/422529
Function Parse-IniFile ($file) {
@dhrrgn
dhrrgn / RedisSession.php
Last active February 15, 2022 19:54
PHP 5.4 Redis Session Handler
<?php
use Predis\Client;
class RedisSession implements SessionHandlerInterface {
private $redis;
private $keyPrefix;
private $maxLifetime;
/**
@hansihe
hansihe / rl-api.md
Last active October 19, 2022 21:54
Rocket League API Documentation

#Rocket League API

Endpoints

All requests seem to be to the domain https://psyonix-rl.appspot.com. There are several endpoints on this domain.

Endpoint Purpose
/callproc105/ Leaderboard, player statistics
/Population/GetPopulation/ Player counts/regions
/login105/ Authentication, obtaining session ids
@danieltharp
danieltharp / DangItBobby.ps1
Created April 6, 2016 22:14
PowerShell script to find where a user is logged into on the network and disable their NIC.
# ********************************************************************************
#
# Script Name: DangItBobby.ps1
# Version: 1.0.0
# Author: bluesoul <https://bluesoul.me>
# Date: 2016-04-06
# Applies to: Domain Environments
#
# Description: This script searches for a specific, logged on user on all or
# specific Computers by checking the process "explorer.exe" and its owner. It
@ciotlosm
ciotlosm / Readme.md
Last active February 5, 2024 15:04
Kiosk mode for lovelace

Kiosk mode

Installation

Add kiosk.js file with the content below to your www folder in config.

Like any other custom script, use ui-lovelace.yaml resources section to reference the kiosk.js file.

Make sure you add kiosk somewhere in your URL. You can use it in the id of your view or in the query string.

@denji
denji / nvenc-install.sh
Last active January 30, 2024 19:39 — forked from lucaspar/nvenc-install.sh
Installation script of CUDA-accelerated `ffmpeg` with NVIDIA Encoder ( docker NVIDIA Encoder https://github.com/markus-perl/ffmpeg-build-script )
#!/bin/bash
# =========================================================================
# Source: https://gist.github.com/lucaspar/27f5e108b80524b315be10b2a9049817
# =========================================================================
# This script will compile and install a static FFmpeg build with
# support for NVENC in Ubuntu. Developed in Ubuntu 23.10,
# with NVIDIA Drivers v535.129.03 and CUDA v12.2 with a GPU
# with CUDA capability 8.6 (RTX 3080) (see ccap below).
# It assumes NVIDA drivers are installed and that you have a
# CUDA-compatible GPU. You can check installed drivers with:
@SLAPaper
SLAPaper / fix_lobe.js
Last active September 3, 2023 08:09
FIx Lobe Theme in A1111 WebUI v1.6.0RC
// ==UserScript==
// @name A1111 WebUI fix lobe theme
// @namespace http://tampermonkey.net/
// @version 0.3
// @description fix Lobe theme broken webui v1.6.0
// @author SLAPaper, primeinc
// @match http*://localhost:7860/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=undefined.localhost
// @grant none
// ==/UserScript==
@eacpereira
eacpereira / StarfieldSFSECompleteConsoleCommands.md
Created September 18, 2023 18:24
Complete list of Starfield Console Commands with SFSE on. Minimally Edited.

Console Commands

Command Description
Show Show script value
ShowVars Show variables on object. You can optionally specified a papyrus variable or script to filter with [player|sv]
ShowGlobalVars Show all global variables.
ShowQuestVars Show quest variables. You can optionally specified a papyrus variable or script to filter with [svq QuestID]
ShowQuests List quests.
ShowQuestAliases Show quest aliases. [ShowQuestAliases QuestID]
SetPapyrusQuestVar Set a Papyrus property on the specified quest.