Skip to content

Instantly share code, notes, and snippets.

View andrebrait's full-sized avatar

Andre Brait andrebrait

View GitHub Profile
@andrebrait
andrebrait / powertop_systemd_service.md
Created March 17, 2025 12:49 — forked from abelardojarab/powertop_systemd_service.md
Create powertop systemd service
$cat << EOF | sudo tee /etc/systemd/system/powertop.service
[Unit]
Description=PowerTOP auto tune

[Service]
Type=idle
Environment="TERM=dumb"
ExecStart=/usr/sbin/powertop --auto-tune
@andrebrait
andrebrait / powertop.service
Created March 17, 2025 12:48 — forked from kikislater/powertop.service
powertop.service
[Unit]
Description=Powertop tunings
[Service]
Type=oneshot
ExecStart=/usr/bin/powertop --auto-tune
[Install]
WantedBy=multi-user.target
@andrebrait
andrebrait / powertop.service
Created March 17, 2025 12:47 — forked from tazjin/powertop.service
Systemd service for powertop auto tune
[Unit]
Description=Powertop tunings
[Service]
Type=oneshot
RemainAfterExit=no
ExecStart=/usr/bin/powertop --auto-tune
#"powertop --auto-tune" still needs a terminal for some reason.
#Possibly a bug?
Environment="TERM=xterm"

1G1R Commands for 1G1R ROM Set Generator

Create 1G1R ROM Sets from No-Intro P/C XML DAT files.

Additional ROMs are excluded if they meet any of the following criteria:

  • Non-Game (Program, Tester, Greeting Card, Music Album, etc...)
  • Bundle (2+ games in one ROM where a single version already exists)

Note: This list is currently a work-in-progress.

Index

@andrebrait
andrebrait / find-https-debian-archives.py
Last active May 28, 2017 23:23 — forked from eighthave/find-https-debian-archives.py
Script to find official Debian mirrors that support HTTPS
#!/usr/bin/python
import urllib2
import re
import ssl
import sys
# # find generic mirrors
mirrors = urllib2.urlopen('http://www.debian.org/mirror/list')
https = []