Skip to content

Instantly share code, notes, and snippets.

View Weilbyte's full-sized avatar
🦊
average rj45 enjoyer

Weilbyte Weilbyte

🦊
average rj45 enjoyer
View GitHub Profile
@Weilbyte
Weilbyte / whale.omp.json
Created December 31, 2020 02:23
My oh-my-posh3 theme
{
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "root",
"style": "powerline",
"powerline_symbol": "\uE0B0",
@Weilbyte
Weilbyte / extend.sh
Last active October 31, 2020 04:11
Extend LVM volume automatically
#!/bin/bash
disk=/dev/sda
part=3
volume=/dev/ubuntu-vg/ubuntu-lv
echo -e "Fix\n$part\n" | /usr/sbin/parted ---pretend-input-tty $disk resizepart $part 100%
/usr/sbin/pvresize $disk$part
/usr/sbin/lvextend -r $volume -l '+100%FREE'
@Weilbyte
Weilbyte / harbor.sh
Created May 23, 2020 21:52
Harbor Install Script
#!/bin/bash
mkdir -p /srv/harbor
cd /srv/
HARBORVERSION=$(curl -s https://github.com/goharbor/harbor/releases/latest/download 2>&1 | grep -Po [0-9]+\.[0-9]+\.[0-9]+)
curl -s https://api.github.com/repos/goharbor/harbor/releases/latest | grep browser_download_url | grep online | cut -d '"' -f 4 | wget -qi -
tar xvf harbor-online-installer-v$HARBORVERSION.tgz
cd harbor
./install.sh --with-clair
@Weilbyte
Weilbyte / MaceWindows.xml
Created March 19, 2020 10:38
Windows 10 Single-GPU Passthrough VM
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
virsh edit MaceWindows
or other application using the libvirt API.
-->
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>MaceWindows</name>
<uuid>373c90f4-9ac6-4153-b88d-12f11af386ec</uuid>
@Weilbyte
Weilbyte / DiscordDMCleaner.ahk
Last active December 3, 2022 07:12
AHK script to delete Discord DMs. Ctrl+D to start deleting, ESC to kill script.
Escape::
ExitApp
Return
^d::
Loop, 100000
{
send, {Up}
send, ^a
send, {BS}