Skip to content

Instantly share code, notes, and snippets.

View bergkvist's full-sized avatar

Tobias Bergkvist bergkvist

  • Software Engineer @ Ulvetanna
  • Oslo, Norway
View GitHub Profile
@bergkvist
bergkvist / force-full-composition-pipeline.sh
Created August 3, 2021 03:48
Avoid vertical screen tears when you have an Nvidia Graphics card
#!/bin/bash
s="$(nvidia-settings -q CurrentMetaMode -t)"
MODE="${1:-On}"
if [[ "${s}" != "" ]]; then
s="${s#*" :: "}"
nvidia-settings -a CurrentMetaMode="${s//\}/, ForceCompositionPipeline=$MODE, ForceFullCompositionPipeline=$MODE\}}"
fi

Keybase proof

I hereby claim:

  • I am bergkvist on github.
  • I am bergkvist (https://keybase.io/bergkvist) on keybase.
  • I have a public key ASBysYhr038dSRqnPQ75tCcXQcZsSK-JnXxg9XLlCJQ5Mgo

To claim this, I am signing this object:

@bergkvist
bergkvist / package-tracking.sol
Last active May 1, 2019 08:02
Package Tracking on Ethereum (Solidity)
pragma solidity ^0.5.0;
contract PackageTracking {
struct Place {
bool exists;
string country;
string location;
}
struct Package {