Skip to content

Instantly share code, notes, and snippets.

@saoula
saoula / gist:d305a5d16a46fcffb0b6d57834cfc674
Created August 30, 2024 15:58
flux-lora-runpod.README
#/bin/bash
set -e
git clone --branch=release https://github.com/bghira/SimpleTuner.git
cd SimpleTuner
git checkout a2b170ef4e41bab6269110189f86f297a9484d96
python -m venv .venv
source .venv/bin/activate
pip install -U poetry pip
poetry install --no-root

Run mdadm - this command is used to manage and monitor software RAID devices in linux.

mdadm --detail /dev/md0 or md<N>

mount -t ext4 /dev/md0 /share/MD0_DATA

Check disks

mdadm --examine /dev/sdd3

@saoula
saoula / iptables-cheatsheet.md
Created December 23, 2021 14:43 — forked from mcastelino/iptables-cheatsheet.md
iptables-cheatsheet

The netfilter hooks in the kernel and where they hook in the packet flow

The figure below calls out

  • The netfilter hooks
  • The order of table traversal
@saoula
saoula / restart_bluetooth.sh
Created May 1, 2020 18:14 — forked from nicolasembleton/restart_bluetooth.sh
Restart Bluetooth Daemon on Mac OS X without restarting
#!/bin/bash
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
@saoula
saoula / all_repos_github
Created March 24, 2017 23:37
Get all repos for an organization on GitHub
curl -u $USERNAME:$PASSWORD -s "https://api.github.com/orgs/$ORGANIZATION/repos?per_page=100&page=2" | jq ".[].ssh_url" | xargs -L 1 git clone
@saoula
saoula / vmware_macos_retina
Created March 2, 2017 10:20
Retina Display for MacOS Guest on VMWare Fusion 8
sudo defaults write /Library/Preferences/com.apple.windowserver.plist DisplayResolutionEnabled -bool true