Skip to content

Instantly share code, notes, and snippets.

View dcrdev's full-sized avatar
🦒
Winning

Dominic Robinson dcrdev

🦒
Winning
View GitHub Profile
@dcrdev
dcrdev / nvidia-switch.sh
Last active December 28, 2021 22:24
nvidia-switch
#!/bin/bash
# A simple wrapper around system76-power to ensure that nvidia mode is reflected
# in Xorg.
XORG_CONF=/etc/X11/xorg.conf.d/nvidia.conf
CURRENT_MODE=`system76-power graphics`
function elevate () {
if [[ $EUID -ne 0 ]];

Keybase proof

I hereby claim:

  • I am dcrdev on github.
  • I am dcrdev (https://keybase.io/dcrdev) on keybase.
  • I have a public key ASAH-N0xmCG4EmbvhzH0JAn6alIkUHr0u9cAxjFaiyP6WAo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am dcrdev on github.
* I am dcrdev (https://keybase.io/dcrdev) on keybase.
* I have a public key ASAGcCFkldVyLHgn9hciG1P5n62z7FLBDf8-BrH6pahT5go
To claim this, I am signing this object:
#!/bin/bash
initScriptLocation="/etc/init/emby-server.conf"
function main() {
service emby-server stop
read -p 'Username: ' euser
if [ -d "/var/lib/emby" ]; then
# rpmrebuild autogenerated specfile
BuildRoot: /home/dominic/.tmp/rpmrebuild.3473/work/root
AutoProv: no
%undefine __find_provides
AutoReq: no
%undefine __find_requires
# Do not try autogenerate prereq/conflicts/obsoletes and check files
%undefine __check_files
%undefine __find_prereq