Skip to content

Instantly share code, notes, and snippets.

View zippyy's full-sized avatar
🏠
Working from home

Zippy zippyy

🏠
Working from home
View GitHub Profile
@kunaalm
kunaalm / base-config.yaml
Created October 26, 2023 01:42
Homeassistant / ESPHome Smart Light Automation
# WiFi credentials
wifi:
ssid: ${ssid}
password: ${password}
ap:
ssid: ${devicename}
password: ${password}
manual_ip:
static_ip: ${ipaddr}
@zippyy
zippyy / windows_privesc
Created March 28, 2022 15:35 — forked from sckalath/windows_privesc
Windows Privilege Escalation
// What system are we connected to?
systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
// Get the hostname and username (if available)
hostname
echo %username%
// Get users
net users
net user [username]
@jinschoi
jinschoi / create_sub.py
Last active January 5, 2026 06:15
Python script to generate Flipper RAW .sub files from OOK bitstreams
#!/usr/bin/env python3
from typing import Iterable, Union, Any
# freq: frequency in Hz
# zerolen: length of space bit in μs
# onelen: length of mark bit in μs
# repeats: number of times to repeat sequence
# pause: time to wait in μs between sequences
# bits: string of ones and zeros to represent sequence
@echo off
REM Description: Small helper script to quickly start an AADSync but just double clicking on this script file.
REM Author: Michael Mardahl - github.com/mardahl
echo Starting AD Sync (Delta)...
powershell.exe -ex bypass -command "ipmo adsync;Start-ADSyncSyncCycle delta;"
echo Finished script execution.
pause
@rajat404
rajat404 / space.html
Last active April 30, 2023 22:46
Hugo shortcode for adding `N` spaces in your markdown
{{ range $_, $__ := ( .Get 0 | seq) }} {{ end }}
<!-- For detailed usage refer to: https://www.rajat404.com/blog/hugo-shortcode-space -->
@sbrl
sbrl / ParseCSV.mjs
Last active January 28, 2022 05:11
Quick CSV Parser that converts CSV files into an array of JS Objects.
"use strict";
/**
* Parses the source CSV into an array of objects.
* @param {string} source The source CSV to parse.
* @param {Boolean} [parse_numbers=true] Whether number-like values should be parsed with parseFloat()
* @returns {[object]} An array of objects. The keys are taken from the csv header.
*/
export default function ParseCSV(source, parse_numbers = true) {
@eddiewebb
eddiewebb / readme.md
Last active January 12, 2026 06:31
Hugo JS Searching with Fuse.js
#!/bin/bash
# https://gist.github.com/koenpunt/40c0b042c453a1add0e8
#
# Check if the user is in the right group
# and afterwards retrieve the SSH public key from LDAP
# Logs directly in Syslog
# requires ldap-utils
#
# sshd_config for OpenSSH 6.2 or higher:
#
@sckalath
sckalath / windows_privesc
Last active January 22, 2026 09:20
Windows Privilege Escalation
// What system are we connected to?
systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
// Get the hostname and username (if available)
hostname
echo %username%
// Get users
net users
net user [username]