curiouser / gist:d61c2d421e064cff8aa10c524e46ac5e
0 polubień
0 forków
1 plików
Ostatnio aktywne 1 day ago
| 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 / gist:dfd984f1a56247bd9e49d43a759f27d7
0 polubień
0 forków
4 plików
Ostatnio aktywne 1 day ago
| 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 / gist:1b63e1d1ac5e43ffaf3ac8cfca0eb4a3
0 polubień
0 forków
1 plików
Ostatnio aktywne 1 day ago
| 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 / gist:acb40a2c656e404abce39afaf9f7f555
0 polubień
0 forków
1 plików
Ostatnio aktywne 1 day ago
| 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 / gist:9a99f480c6d44a3cb65f678b8cf915b5
0 polubień
0 forków
1 plików
Ostatnio aktywne 1 day ago
| 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 / gist:c9259ee1339844b1bc45cd3545c7fba4
0 polubień
0 forków
1 plików
Ostatnio aktywne 1 day ago
| 1 | #! /bin/bash |
| 2 | |
| 3 | # global config |
| 4 | cp -f ~/.atom/config.cson ~/.var/app/io.atom.Atom/data/ |
| 5 | # keybindings |
| 6 | cp -f ~/.atom/keymap.cson ~/.var/app/io.atom.Atom/data/ |
| 7 | # init script (maybe you defined some custom function and then bound to a key combo?) |
| 8 | cp -f ~/.atom/init.coffee ~/.var/app/io.atom.Atom/data/ |
| 9 | # packages |
| 10 | cp -rf ~/.atom/packages ~/.var/app/io.atom.Atom/data/ |
curiouser / gist:2547ae28d5a04d1694aae54b92ab7f90
0 polubień
0 forków
2 plików
Ostatnio aktywne 1 day ago
| 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 / gist:b2531c991a824accb971491ab8c4d021
0 polubień
0 forków
1 plików
Ostatnio aktywne 1 day ago
| 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 / gist:142b8511a8e248cbbf837f35f46effcc
0 polubień
0 forków
1 plików
Ostatnio aktywne 1 day ago
| 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 / gist:bdbfa02070c9460c8e85e3b6e12af8c7
0 polubień
0 forków
1 plików
Ostatnio aktywne 1 day ago
| 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 |