Skip to content

Instantly share code, notes, and snippets.

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
absl-py==1.4.0
accelerate==0.16.0
addict==2.4.0
aenum==3.1.11
aiofiles==23.1.0
aiohttp==3.8.4
aiosignal==1.3.1
altair==4.2.2
antlr4-python3-runtime==4.9.3
anyio==3.6.2
@primeinc
primeinc / relaunch.py
Created March 7, 2023 07:04
SDA1111-Relaunch Script
# this scripts installs necessary requirements and launches main program in webui.py
import subprocess
import os
import sys
import importlib.util
import shlex
import platform
import argparse
import json
@primeinc
primeinc / sda1111-sparsecheckout.sh
Last active March 7, 2023 03:23
SDA1111-SparseCheckout
#!/usr/bin/env bash
#########################################################
# Uncomment and change the variables below to your need:#
#########################################################
# Set defaults
# Install directory without trailing slash
if [[ -z "${install_dir}" ]]
then
install_dir="/content"
@primeinc
primeinc / webui.sh
Last active March 7, 2023 05:33
SD-Automatic-Root-Script
#!/usr/bin/env bash
#########################################################
# Uncomment and change the variables below to your need:#
#########################################################
# Check if COMMANDLINE_ARGS is set
if [[ -z "${COMMANDLINE_ARGS}" ]]; then
export COMMANDLINE_ARGS="--share --disable-safe-unpickle --enable-insecure-extension-access \
--no-half-vae --no-half --xformers --no-hashing --disable-console-progressbars \
--no-download-sd-model --api --allow-code --theme dark"
<?php
namespace Database\Seeders;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Storage;
class DatabaseSeeder extends Seeder
{
if (Storage::disk('local')->exists($sqlFilePath)) {
try {
$fileContent = Storage::disk('local')->get($sqlFilePath);
} catch (\Exception $e) {
dd('Whoops: ' . $e->getMessage());
}
if(!$fileContent) {
throw new \Exception("SQL File is empty: {$sqlFilePath}");
}
@primeinc
primeinc / cyberpower_pdu_snmp_reboot.ps1
Created December 14, 2021 18:13
Quick and dirty SNMP command to turn on and off an outlet using powershell / windows
# Quick and dirty SNMP command to turn on and off an outlet using powershell / windows
#.iso.org.dod.internet.private.enterprises.cps.products.hardware.ePDU.ePDUOutlet.ePDUOutletControl.ePDUOutletControlTable.ePDUOutletControlEntry.ePDUOutletControlOutletCommand
# .1.3.6.1.4.1.3808.1.1.3.3.3.1.1.4
# .1.3.6.1.4.1.3808.1.1.3.3.3.1.1.4.5 for outlet number 5
$SNMP = New-Object -ComObject olePrn.OleSNMP
$SNMP.open('192.168.10.100','private',2,1000)
#$RESULT = $SNMP.Get(".1.3.6.1.4.1.3808.1.1.3.3.3.1.1.4.5")
$ACTION = 3
@primeinc
primeinc / Readme.md
Last active November 3, 2020 06:49 — forked from ciotlosm/Readme.md
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.

@primeinc
primeinc / Thaumcraft-InvTweaksTree.txt
Last active June 9, 2020 10:25
Thaumcraft Inventory Tweaks for InvTweaksTree
<thaumcraft>
<thaumcraftAerCrystal id="thaumcraft:crystal_essence" data='{Aspects:[{amount:1,key:"aer"}]}'/>
<thaumcraftTerraCrystal id="thaumcraft:crystal_essence" data='{Aspects:[{amount:1,key:"terra"}]}'/>
<thaumcraftIgnisCrystal id="thaumcraft:crystal_essence" data='{Aspects:[{amount:1,key:"ignis"}]}'/>
<thaumcraftAquaCrystal id="thaumcraft:crystal_essence" data='{Aspects:[{amount:1,key:"aqua"}]}'/>
<thaumcraftOrdoCrystal id="thaumcraft:crystal_essence" data='{Aspects:[{amount:1,key:"ordo"}]}'/>
<thaumcraftPerditioCrystal id="thaumcraft:crystal_essence" data='{Aspects:[{amount:1,key:"perditio"}]}'/>
<thaumcraftVacuosCrystal id="thaumcraft:crystal_essence" data='{Aspects:[{amount:1,key:"vacuos"}]}'/>
<thaumcraftLuxCrystal id="thaumcraft:crystal_essence" data='{Aspects:[{amount:1,key:"lux"}]}'/>
<thaumcraftMotusCrystal id="thaumcraft:crystal_essence" data='{Aspects:[{amount:1,key:"motus"}]}'/>