Skip to content

Instantly share code, notes, and snippets.

@hstefan
hstefan / app.go
Created November 4, 2023 23:14
dbinjection
package main
import (
"database/sql"
"fmt"
"net/http"
"os"
"time"
_ "github.com/lib/pq"
# Macros for setting the status leds on the Voron StealthBurner toolhead (or for any neopixel-type leds).
#
# You will need to configure a neopixel (or other addressable led, such as dotstar). See
# https://www.klipper3d.org/Config_Reference.html#neopixel for configuration details.
#####################################
# INSTRUCTIONS #
#####################################
# How to use all this stuff:
#!/usr/bin/env python3
import smtplib
import codecs
import random
from email.mime.text import MIMEText
if __name__ == "__main__":
participants = {
"Foo": "foo@foo.com",
root@database-recovery:/mnt/cardoncio-backrest-shared-repo# tree -L 3
.
├── archive
│ └── db
│ ├── 12-1
@hstefan
hstefan / mkinitcpio.conf
Last active November 8, 2021 21:11
grub and init
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
pub mod envoy {
pub mod admin {
pub mod v2alpha {
tonic::include_proto!("envoy.admin.v2alpha");
}
pub mod v3 {
tonic::include_proto!("envoy.admin.v3");
}
pub mod v4alpha {
tonic::include_proto!("envoy.admin.v4alpha");
#!/usr/bin/env python3
import dataclasses
import http.client
import io
import socket
import xml.etree.ElementTree as ET
from typing import Dict, List, Optional
from urllib.parse import urlparse
#!/usr/bin/env python3
import socket
import http.client
import io
import dataclasses
import xml.etree.ElementTree as ET
import urllib.parse
from typing import Dict, Optional
#!/usr/bin/env python3
import random
import colorama
from colorama import Fore, Style
colorama.init()
C_MAJOR_SCALE = {
"C": "ionian",
constraint RegisteredPort for integer {
minimum 1024, maximum 49151
}
constraint HostPattern for string {
format "regex"
}
type ServiceAddress {
hostname: string {