Skip to content

Instantly share code, notes, and snippets.

View ameintjes's full-sized avatar

Ayton Meintjes ameintjes

View GitHub Profile
@donniecode1983
donniecode1983 / RoboCopyCommandExamples.txt
Created November 29, 2018 16:23
RoboCopyCommandExamples
Examples of Microsoft's Robocopy Syntax
#1 Simple copy
To copy contents of C:\UserFolder to C:\FolderBackup:
Robocopy C:\UserFolder C:\FolderBackup
This is the simplest usage for Robocopy
#2 Copy all content including empty directory
To copy all contents including empty directories of SourceFolder to DestinationFolder:
Robocopy C:\SourceDir C:\DestDir /E
@fpletz
fpletz / esphome-print-async.py
Last active March 10, 2025 12:09
aioesphomeapi minimal examples
#!/usr/bin/env python3
import aioesphomeapi
import asyncio
async def main():
loop = asyncio.get_running_loop()
cli = aioesphomeapi.APIClient(loop, "foobarhostname", 6053, "foobarpassword")
await cli.connect(login=True)
@Krever
Krever / _README.md
Last active May 25, 2025 17:00
Yabai setup for i3wm users
@lindenb
lindenb / FastGatk.java
Created June 9, 2021 08:37
Fast GATK: calling a small region for a large number of Bams with GATK HaplotypeCaller
/*
The MIT License (MIT)
Copyright (c) 2021 Pierre Lindenbaum
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@biemster
biemster / ESP32_blescan.py
Created January 17, 2023 12:20
simple ESP32 MicroPython Bluetooth LE scanner
import time
import bluetooth
from micropython import const
_IRQ_SCAN_RESULT = const(5)
_IRQ_SCAN_DONE = const(6)
def bt_irq(event, data):
if event == _IRQ_SCAN_RESULT:
# A single scan result.
addr_type, addr, connectable, rssi, adv_data = data
@gnat
gnat / postgres_portable_no_install.md
Last active July 22, 2024 09:47
Postgres Standalone

🐘 Postgres Standalone

Why?

  • Localize your database into one single folder of your choosing.
  • No sudo / root requirement.
  • Run multiple Postgres at the same time on the same machine- Full bare metal performance.
  • Postgres is a great starter before moving to "slow single machine but horizontal scale": CockroachDB, ScyllaDB, etc.

Compile

@rain-1
rain-1 / base model trends.md
Last active October 19, 2025 08:19
base model trends.md