Skip to content

Instantly share code, notes, and snippets.

@ottergauze
ottergauze / starship.toml
Last active April 6, 2023 23:10
My Starship prompt config file - Optimised for use in PowerShell, but should work in Linux too. (Very early version, bugs / formating errors may occur)
format = '''
🦦 $username$hostname$git_branch$directory \($c$cmake$crystal$deno$docker_context$fennel$fossil_branch$golang$haxe$jobs$kotlin$lua$hg_branch$nodejs$php$python$raku$rust$swift$vlang$zig\) $spack $terraform $fill $memory_usage $time
$character'''
scan_timeout = 10
add_newline = true
[aws]
disabled = true
@ottergauze
ottergauze / discord-disable-avatar-decorations.css
Last active December 9, 2022 13:38
Avatar decorations are another Nitro marketting ploy and also seem to break on custom themes. This is a userstyle you can use to disable them. I recommend https://openasar.dev/, but anything that allows stacked themes should work
.avatarDecoration-34OC0G, .avatarDecoration-2OJuSI {
display: none;
}
@ottergauze
ottergauze / Disable Turbo ROG Zephyrus
Created May 28, 2021 18:14
A demonstration of how to unlock the ability to disable Ryzen Turbo on ROG Zephyrus laptops.
This guide already exists on the internet, but only on Reddit. So I'm also putting it here for redundancy's sake because it could vanish at any time. I also fixed a typo that prevented people from copying the registry path.
-- Unlocking Option --
1. Press Win+R
2. Type "regedit" and click OK
3. In the top bar, paste the following path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Power\PowerSettings\54533251-82be-4824-96c1-47b60b740d00\be337238-0d82-4146-a960-4f3749d470c7
4. Double click "Attributes"
5. Change the key from 1 to 2.

BEGIN MESSAGE. cwtIAFcPUFqf3jq 5k3nFWOvbjsRsne 6qqXYwak7vawO4N 0IfJVC9Bi1d5MoP jH6rjaZteR8TdaK XygynDYdwAoTCKq 6Xr2MZHgg6epDuz xKPHDGPeR19UDAT hg0UtW2ZqCffLkP y4AXW8yhcxrXWrp CxG9lyxqAcyE311 3BGZsS6OWpiPuiw JpsFvtIf00kvlEN R2fc0Ptk1gpdJm9 fLfAS7tiSkCT. END MESSAGE.

Keybase proof

I hereby claim:

  • I am ottergauze on github.
  • I am ottergauze (https://keybase.io/ottergauze) on keybase.
  • I have a public key ASB-y00KPyjuNwOBkDvVHjR-PzxVdLtBMojeMITIRDHsOAo

To claim this, I am signing this object:

@ottergauze
ottergauze / fizzbuzz.py
Created September 23, 2019 11:20
A quick simple programming in Python exercise. - I haven't used python properly in quite some time.
def fizzbuzzswitch(x, i):
return {
1: "Fizz",
2: "Buzz",
3: "FizzBuzz"
}.get(x, i)
for i in range(1,101):
condition = 0