Skip to content

Instantly share code, notes, and snippets.

View T12z's full-sized avatar

Thorsten Schulz T12z

View GitHub Profile
@jtc-dolby
jtc-dolby / A PTP locked udp transmitter
Last active June 29, 2022 06:31 — forked from jeez/ Scheduled Tx Tools
[TSN] Scheduled Tx Tools - Examples and Helpers for testing SO_TXTIME, and the etf and taprio qdiscs
This is based on the good work of Jesus Sanchez-Palencia to provide a working example for the SO_TXTIME socket option. I've had some trouble using this example to get reliable output so I modifed it slightly so that is doesn't quit on the first error and I can collect a decent trace that shows the packet drops occurring
@ioggstream
ioggstream / system-sleep-xhci.sh
Created November 7, 2017 13:08
Disable broken xhci device before suspend and avoid freeze.
#!/bin/sh
#
# This script should prevent the following suspend errors
# which freezes the Dell Inspiron laptop.
#
# Put it in /usr/lib/systemd/system-sleep/xhci.sh
#
# The PCI 00:14.0 device is the usb xhci controller.
#
# kernel: [67445.560610] pci_pm_suspend(): hcd_pci_suspend+0x0/0x30 returns -16
@adeluccar
adeluccar / gist:d105299f2d5af55e3e96f9b989e7eb48
Created August 8, 2017 22:50
How to Flatten the History of a Git Repository Safely
git checkout --orphan future-master
git add -A  # Add all files and commit them
git commit
git branch -D master  # Deletes the master branch
git branch -m master  # Rename the current branch to master
git push -f origin master  # Force push master branch to github
git gc --aggressive --prune=all     # remove the old files