Skip to content

Instantly share code, notes, and snippets.

View Oneiroi's full-sized avatar
:shipit:

David Busby Oneiroi

:shipit:
View GitHub Profile
@Oneiroi
Oneiroi / rand_pass.py
Last active August 23, 2018 16:16 — forked from bergantine/gist:1119284
Python Random Password Generator (One Liner). #python #password
python -c "from string import printable; from random import choice; print ''.join([choice(printable) for i in range(32)])"
@Oneiroi
Oneiroi / CVE-2020-0601-check.ps1
Created January 23, 2020 13:11
Powershell script to check if the target system has applied any of the KB articles which are thought to contain the fix for CVE-2020-0601
wmic qfe get Caption,Description,HotFixID,InstalledOn |Select-String 'KB45((3(4306|4271|4276|4293|4273))|28760|35550)'
#!/bin/bash
# "---------------------------------------------------"
# " This is a simple script for creating a query "
# " that collects data from the table pg_class "
# " for list of databases "
# "---------------------------------------------------"
if [ "$#" -eq 0 ] ;
then
echo -e "\n\tYou must enter at least one database name as an argument."
@Oneiroi
Oneiroi / Dockerfile
Created October 11, 2023 10:30 — forked from xen0bit/Dockerfile
CVE-2023-38545
FROM debian:latest
RUN apt-get update && apt-get install -y \
git \
build-essential \
wget \
python3
WORKDIR /build
@Oneiroi
Oneiroi / jetson_oled.py
Last active August 21, 2025 08:52
FIXED 20250820 old.py - Yahboom Jetson Nano Case Compatible with Jetson Orin Nano SUPER Orin NX SUPER Protective Case Xaver NX TX2-NX with RGB Fan, Antennas, OLED Display
#!/usr/bin/env python3
# coding=utf-8
import time
import os
import sys
import subprocess
from luma.core.interface.serial import i2c
from luma.oled.device import ssd1306
from PIL import Image, ImageDraw, ImageFont