Skip to content

Instantly share code, notes, and snippets.

View tdegrunt's full-sized avatar

Tom de Grunt tdegrunt

View GitHub Profile
@tdegrunt
tdegrunt / keyboardLayout.json
Last active April 8, 2024 08:48
Visual Studio Code (vscode/code) Colemak keyboard layout
{
"layout": {
"id": "com.apple.keylayout.Colemak",
"localizedName": "Colemak",
"lang": "en"
},
"rawMapping": {
"KeyA": {
"value": "a",
"valueIsDeadKey": false,
@tdegrunt
tdegrunt / nerd_fonts.md
Created March 2, 2024 07:39 — forked from davidteren/nerd_fonts.md
Install Nerd Fonts via Homebrew [updated & fixed]
@tdegrunt
tdegrunt / postgres_queries_and_commands.sql
Created January 24, 2024 08:24 — forked from rgreenjr/postgres_queries_and_commands.sql
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(clock_timestamp(), query_start), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'
@tdegrunt
tdegrunt / tasks.json
Created February 15, 2017 12:51
Visual Studio Code - Ruby / Rails tasks
{
"version": "0.1.0",
"tasks": [
{
"isShellCommand": true,
"taskName": "bundle install",
"command": "bundle",
"args": ["install"],
"suppressTaskName": true
},
@tdegrunt
tdegrunt / walk.go
Created September 29, 2014 11:53
Replace some text in a bunch of files with golang
package main
import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
"strings"
)
@tdegrunt
tdegrunt / .gitignore
Created May 22, 2018 07:13
Ruby programming with VS Code
*.gem
*.rbc
/.config
/coverage/
/InstalledFiles
/pkg/
/spec/reports/
/spec/examples.txt
/test/tmp/
/test/version_tmp/
@tdegrunt
tdegrunt / bt-agent.service
Created June 28, 2019 05:56 — forked from rcarmo/bt-agent.service
Set up PAN networking on Raspbian Stretch (use sudo to create these files and run all commands)
# in /etc/systemd/system
[Unit]
Description=Bluetooth Agent
[Service]
ExecStart=/usr/bin/bt-agent -c NoInputNoOutput
Type=simple
[Install]
WantedBy=multi-user.target
@tdegrunt
tdegrunt / gist:626632aba41fda8fc82af33cc5d940c5
Last active January 15, 2023 12:38
Bluetooth not working on ChimeraOS 38
I'm using a computer (Minisforum HM90) which has a AMD/MediaTek RZ608 bluetooth/wifi chipset, wifi works, but bluetooth doesn't. Initially i got a vcp.c d-bus experimental not enabled error, but that was fixed by adding experimental to /etc/bluetooth/main.conf
After a long read and investigation I found an article mentioning that RZ608 may be buggy and restarting/cycling power and or completely removing the PC from power could resolve the issue. It did.
```
[gamer@chimeraos ~]$ rfkill list
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
@tdegrunt
tdegrunt / readme.md
Created January 4, 2023 20:20 — forked from Kethen/readme.md
So steam deck recovery image dropped, let's boot it (sorta) (non amd hardware)

Booting the Steam Deck recovery image

https://help.steampowered.com/en/faqs/view/1B71-EDF2-EB6D-2BB3

SteamOS runs a custom grub to cater it's needs for it's A/B partition design. So far the said custom grub does not boot for me on ovmf/intel uefi (maybe it boots on amd? some said they managed to just rufus the image and boot it)

skip to https://gist.github.com/Kethen/698cfa8cf387e131ebd36fbfbfe9272e#gamescope-and-non-amd-gpu if it just boots for you

Upon closer inspection the official bootloader does load some kind of amd firmware before booting the kernel