Skip to content

Instantly share code, notes, and snippets.

View halr9000's full-sized avatar
πŸ‘‹
πŸ€™

Hal Rottenberg halr9000

πŸ‘‹
πŸ€™
View GitHub Profile
@nathanshipley
nathanshipley / img2img_FLUX_ReduxDepth_NS_02_2024-12-09.json
Last active June 12, 2025 20:26
img2img_FLUX_ReduxDepth_NS_02_2024-12-09
{
"last_node_id": 457,
"last_link_id": 804,
"nodes": [
{
"id": 4,
"type": "SetNode",
"pos": [
-433,
2
@zvalentine22
zvalentine22 / upload_script.py
Created September 14, 2020 06:31
snapmaker2.0 upload without luban
import requests
import argparse
import os.path
import sys
debug = False
# if debug = True, ignore command line arguments and use the following:
ip = "192.168.0.47"
port = 8080
@RealOrangeOne
RealOrangeOne / README.md
Last active December 7, 2024 23:50
Trello JSON parser

Trello Parser

Download

Open a terminal, run this:

sudo curl https://gist.githubusercontent.com/RealOrangeOne/c35751ee794e90df512bdfba6f22574d/raw/trello-parser.py -o /usr/bin/trelloparse && sudo chmod +x /usr/bin/trelloparse

Usage

$ trelloparse -h

usage: tp [-h] input output

@ashishterp
ashishterp / slack_alert.py
Last active January 23, 2025 12:16
Splunk Alerting to Slack
# Instructions:
# 1. Go to https://[yourdomain].slack.com/services/new
# 2. Configure a new Incoming WebHook and paste the URL below on Line 14
# 3. Copy this file into $SPLUNK_HOME$/bin/scripts
# 4. Configure your saved search to run slack_alert.py
import httplib, json
import getopt, sys, os
import subprocess
@mwjcomputing
mwjcomputing / Invoke-RestMethod.ps1
Last active December 12, 2015 01:08
Adds a force switch to Invoke-RestMethod
function Invoke-RestMethod {
[CmdletBinding(HelpUri='http://go.microsoft.com/fwlink/?LinkID=217034')]
param(
[Microsoft.PowerShell.Commands.WebRequestMethod]
${Method},
[Parameter(Mandatory=$true, Position=0)]
[ValidateNotNullOrEmpty()]
[uri]
${Uri},
@lpar
lpar / domino2syslog.rb
Last active August 29, 2016 16:14
Ruby code to pump IBM Lotus Domino server logs to regular Unix syslog
#!/usr/bin/env ruby
# encoding: UTF-8
# Script to take IBM Lotus Domino console input on stdin, and send it to
# syslog.
#
# Allows you to do all your logging via syslog, rather than having to
# keep weeks of data in log.nsf.
#
# In rsyslog, filter like this: