All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Register

Login


All New Register Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated
curiouser's Avatar

curiouser / carPriceNormalizer.mjs

0 likes
0 forks
1 files
Last active 2 months ago
normalize the cost of various used cards
1 #!/usr/bin/env node
2
3 const currentYear = new Date().getFullYear();
4
5 const adjustments = {
6 exteriorColor: {
7 black: 1000,
8 blue: -500,
9 burgundy: 500,
10 charcoal: 500,
curiouser's Avatar

curiouser / gist:4c77dc2b759e41ee9082e187531821a6

0 likes
0 forks
1 files
Last active 2 months ago
pcmify.sh
1 #! /bin/bash
2 askYesNo() {
3 local answer=
4 while [ "$answer" != "y" ] && [ "$answer" != "n" ]; do
5 read -e -n 1 -p "$1 (y/n) " answer
6 done
7
8 if [ "$answer" != "y" ]; then
9 return 1
10 fi
curiouser's Avatar

curiouser / dmesg-i7-1165g7.txt

0 likes
0 forks
4 files
Last active 2 months ago
thunderbolt hacking
1 # lspci -xxxx
2
3 86:00.0 PCI bridge: Intel Corporation Thunderbolt 4 Bridge [Maple Ridge 4C 2020] (rev 02)
4 00: 86 80 36 11 07 05 10 00 02 00 04 06 08 00 01 00
5 10: 00 00 00 00 00 00 00 00 86 87 8b 00 e1 f1 00 00
6 20: 10 f8 10 f8 01 f8 01 f8 00 00 00 00 00 00 00 00
7 30: 00 00 00 00 80 00 00 00 00 00 00 00 ff 01 02 00
8 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9 50: 15 00 00 00 1f 02 01 00 00 00 00 00 00 00 00 00
10 60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
curiouser's Avatar

curiouser / gist:d70f9f5a2fa54c909e87fec704a62a06

0 likes
0 forks
1 files
Last active 2 months ago
01-wireguard.yml
1 network:
2 renderer: NetworkManager
3 version: 2
4 tunnels:
5 wg0:
6 mode: wireguard
7 addresses:
8 - 10.10.10.102/32
9 key: <private key>
10 peers:
curiouser's Avatar

curiouser / system76-power-profile-default.sh

0 likes
0 forks
1 files
Last active 2 months ago
Write a systemd service file to set profile after system76-power service starts and enable it
1 #!/usr/bin/env bash
2 # as superuser
3 sudo su
4
5 # write a systemd service file to set profile after system76-power service starts
6 cat <<EOF > /etc/systemd/system/system76-power-profile-default.service
7 [Unit]
8 Description=Set the profile profile at startup.
9 After=com.system76.PowerDaemon.service
curiouser's Avatar

curiouser / Migrate pulsar from deb to flatpak or vice versa

0 likes
0 forks
2 files
Last active 3 weeks ago
Rough script for migrating common settings from your .deb Pulsar to user-specific flatpak Pulsar (Pop!_OS 24.04 tested)
1 #! /usr/bin/env bash
2
3 # in case Pulsar flatpak hasn't been installed yet
4 mkdir -p ~/.var/app/dev.pulsar_edit.Pulsar/data/
5
6 # copy all the packages and config files
7 cp -rf ~/.pulsar/{config.cson,keymap.cson,init.coffee,packages} ~/.var/app/dev.pulsar_edit.Pulsar/data/
curiouser's Avatar

curiouser / main.sh

0 likes
0 forks
1 files
Last active 2 months ago
Make a 2011 MacBook Pro with failing AMD dGPU run Pop!_OS 22.04
1 #! /usr/bin/env bash
2
3 # If the Pop! installer won't boot due to dGPU failure, remove the SATA SSD/HDD from the MacBook and install Pop! to it using a computer that will boot the installer
4
5 sudo su
6
7 # With Pop! installed and running as root
8 # disable AMD gpu drivers
9 cat << EOF > /etc/modprobe.d/blacklist-amd-dgpu.conf
10 blacklist radeon
curiouser's Avatar

curiouser / system76-power-graphics-power-default.service

0 likes
0 forks
2 files
Last active 2 months ago
write a systemd service file to set graphics power off when integrated graphics mode after system76-power service starts
1 #!/usr/bin/env bash
2 # as superuser
3 sudo su
4
5 # write a systemd service file to set graphics power after system76-power service starts
6 vi /etc/systemd/system/system76-power-graphics-power-default.service
7
8 # enable our new service
9 systemctl enable system76-power-graphics-power-default
curiouser's Avatar

curiouser / migrate-atom-to-pulsar.sh

0 likes
0 forks
1 files
Last active 2 months ago
Rough migration guide for Atom to Pulsar on Linux
1 #! /usr/bin/env bash
2 # NOTE: This worked for my migration from Pop!_OS 22.04 Atom 1.63.1 which was installed with flatpak (user)
3
4 # First, download and install the deb package found here https://pulsar-edit.dev/download.html
5
6 # for flatpak Atom migration to Pulsar deb - copy configuration and packages
7 rsync -av ~/.var/app/io.atom.Atom/data/ ~/.pulsar/
8
9 # for deb Atom migration to Pulsar deb - copy configuration and packages
10 #rsync -av ~/.atom/ ~/.pulsar/
curiouser's Avatar

curiouser / davinci-resolve-studio.desktop

0 likes
0 forks
1 files
Last active 2 months ago
Hybrid graphics laptop DaVinci Resolve desktop file
1 # ~/.local/share/applications/davinci-resolve-studio.desktop
2 [Desktop Entry]
3 Version=1.0
4 Encoding=UTF-8
5 Exec=/bin/bash -c '__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia QT_DEVICE_PIXEL_RATIO=1 QT_AUTO_SCREEN_SCALE_FACTOR=true /opt/resolve/bin/resolve'
6 Icon=/opt/resolve/graphics/DV_Resolve.png
7 Name=DaVinci Resolve Studio
8 Terminal=false
9 MimeType=application/x-resolveproj;
10 Type=Application
Newer Older

Powered by Opengist ⋅ Load: 184ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文