Skip to content

Instantly share code, notes, and snippets.

View m0ppers's full-sized avatar
🤦‍♂️
ouch

m0ppers

🤦‍♂️
ouch
View GitHub Profile
{
"accessors": [
{
"bufferView": 0,
"byteOffset": 0,
"count": 1028,
"componentType": 5126,
"type": "VEC3",
"min": [0.13397455215454102, 0.0, 0.0],
"max": [2.866025447845459, 2.0, 2.5]
@m0ppers
m0ppers / config
Created September 27, 2020 07:13
asus AMD laptop + waybar
# Tested on a G14. needs jq and inotify-tools on arch linux
"custom/asus-laptop": {
"format": " {}",
"exec": "while true; do jq --unbuffered --compact-output --arg fan $(cat /sys/devices/platform/asus-nb-wmi/throttle_thermal_policy) --arg turbo $(cat /sys/devices/system/cpu/cpufreq/boost) -n '.text=\"Fan: \" + if $fan == \"0\" then \"normal\" elif $fan == \"1\" then \"boost\" else \"silent\" end + \", Turbo: \" + if $turbo==\"1\" then \"on\" else \"off\" end'; inotifywait --quiet -e modify /sys/devices/system/cpu/cpufreq/boost /sys/devices/platform/asus-nb-wmi/throttle_thermal_policy > /dev/null; done",
"return-type": "json"
},
_________
Load (/usr/lib/python3.7/site-packages/blueman/main/PluginManager.py:60)
['Services', 'PulseAudioProfile']
_________
__load_plugin (/usr/lib/python3.7/site-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.manager.Services.Services'>
_________
__load_plugin (/usr/lib/python3.7/site-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.manager.PulseAudioProfile.PulseAudioProfile'>
_________
#include <stdio.h>
#include <stdint.h>
#define COLOR_R 241
#define COLOR_G 127
#define COLOR_B 201
#define COLOR_A 255
int main() {
#l 2 8 img/just_revision.png // load RGBA image into 8(+3)
#l 1 17 img/noglitches.png // load RGBA image into 17(+3)
// some "constants"
pi $0, si 0 // $0 = 0
pi $1, si 1 // $1 = 1
pi $2, si 2 // etc...
pi $3, si 3
pi $4, si 4
pi $8, si 8
#l 2 8 images/hoshi.png
#l 2 12 images/evoke-text.png
#l 2 16 images/evoke.png
pi $0, si 0 // $0 = 0
pi $1, si 1 // $1 = 1
pi $2, si 2
pi $3, si 3
pi $8, si 8
pi $16, si 16
#l 2 4 img/cat_big.png
pi $0, si 0
pi $1, si 1
pi $2, si 2
pi $3, si 3
pi $4, si 4
pi $8, si 8
pi $13, si 13
pi $14, si 14
#l 2 8 0
pi $0, si 0
pi $1, si 1
pi $2, si 2
pi $4, si 4
pi $8, si 8
pi $12, si 12
pi $16, si 16
pi $127, si 127
#l 2 8 images/emojis.png
pi $0, si 0
pi $1, si 1
pi $2, si 2
pi $4, si 4
pi $8, si 8
pi $12, si 12
pi $16, si 16
pi $127, si 127
pi $0, si 0
pi $1, si 1
pi $2, si 2
pi $4, si 4
pi $8, si 8
pi $16, si 16
pi $127, si 127
pi $shifter, pi 0
pi $roffset, pi 0
pi $goffset, pi 0