View displays.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# displays.sh single | |
# displays.sh stack | |
# displays.sh split | |
# displays.sh triple | |
case $1 in | |
single) | |
xrandr \ |
View migrate-atom-to-pulsar.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# NOTE: This worked for my migration from Pop!_OS 22.04 Atom 1.63.1 which was installed with flatpak (user) | |
# First, download and install the deb package found here https://pulsar-edit.dev/download.html | |
# for flatpak Atom migration to Pulsar deb - copy configuration and packages | |
rsync -av ~/.var/app/io.atom.Atom/data/ ~/.pulsar/ | |
# for deb Atom migration to Pulsar deb - copy configuration and packages | |
#rsync -av ~/.atom/ ~/.pulsar/ |
View davinci-resolve-studio.desktop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.local/share/applications/davinci-resolve-studio.desktop | |
[Desktop Entry] | |
Version=1.0 | |
Encoding=UTF-8 | |
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' | |
Icon=/opt/resolve/graphics/DV_Resolve.png | |
Name=DaVinci Resolve Studio | |
Terminal=false | |
MimeType=application/x-resolveproj; | |
Type=Application |
View system76-power-graphics-power-default.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Set the graphics power to off for integrated graphics during startup. | |
After=com.system76.PowerDaemon.service | |
[Service] | |
Type=simple | |
ExecStart=/bin/bash -c '[[ $(system76-power graphics) == 'integrated' ]] && system76-power graphics power off' | |
[Install] | |
WantedBy=default.target |
View main.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# 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 | |
sudo su | |
# With Pop! installed and running as root | |
# disable AMD gpu drivers | |
cat << EOF > /etc/modprobe.d/blacklist-amd-dgpu.conf | |
blacklist radeon |
View migrate-atom-deb-to-user-flatpak.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# global config | |
cp -f ~/.atom/config.cson ~/.var/app/io.atom.Atom/data/ | |
# keybindings | |
cp -f ~/.atom/keymap.cson ~/.var/app/io.atom.Atom/data/ | |
# init script (maybe you defined some custom function and then bound to a key combo?) | |
cp -f ~/.atom/init.coffee ~/.var/app/io.atom.Atom/data/ | |
# packages | |
cp -rf ~/.atom/packages ~/.var/app/io.atom.Atom/data/ |
View system76-power-profile-default.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# as superuser | |
sudo su | |
# write a systemd service file to set profile after system76-power service starts | |
cat <<EOF > /etc/systemd/system/system76-power-profile-default.service | |
[Unit] | |
Description=Set the profile profile at startup. | |
After=com.system76.PowerDaemon.service |
View 01-wireguard.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
network: | |
renderer: NetworkManager | |
version: 2 | |
tunnels: | |
wg0: | |
mode: wireguard | |
addresses: | |
- 10.10.10.102/32 | |
key: <private key> | |
peers: |
View dmesg-i7-1165g7.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 0.000000] microcode: microcode updated early to revision 0x88, date = 2021-03-31 | |
[ 0.000000] Linux version 5.15.15-76051515-generic (jenkins@warp.pop-os.org) (gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0, GNU ld (GNU Binutils for Ubuntu) 2.37) #202201160435~1642693824~21.10~97db1bb SMP Thu Jan 20 17:35:05 U | |
[ 0.000000] Command line: initrd=\EFI\Pop_OS-5b30118c-3837-4895-9c60-70ea27dd36d9\initrd.img root=UUID=5b30118c-3837-4895-9c60-70ea27dd36d9 ro quiet systemd.show_status=false splash resume=UUID=f44f6cb9-8bab-4ab8-99fb-c409ad6e9668 loglevel=0 | |
[ 0.000000] KERNEL supported cpus: | |
[ 0.000000] Intel GenuineIntel | |
[ 0.000000] AMD AuthenticAMD | |
[ 0.000000] Hygon HygonGenuine | |
[ 0.000000] Centaur CentaurHauls | |
[ 0.000000] zhaoxin Shanghai | |
[ 0.000000] x86/split lock detection: #AC: crashing the kernel on kernel split_locks and warning on user-space split_locks |
View pcmify.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
askYesNo() { | |
local answer= | |
while [ "$answer" != "y" ] && [ "$answer" != "n" ]; do | |
read -e -n 1 -p "$1 (y/n) " answer | |
done | |
if [ "$answer" != "y" ]; then | |
return 1 | |
fi |
NewerOlder