Skip to content

Instantly share code, notes, and snippets.

// SPDX-License-Identifier: GPL-2.0-only
// Copyright (c) 2013, The Linux Foundation. All rights reserved.
// generated with https://github.com/msm8916-mainline/linux-mdss-dsi-panel-driver-generator
static const struct drm_display_mode auo_otm1901a_5p5xa_mode = {
.clock = (1080 + 104 + 20 + 54) * (1920 + 14 + 2 + 46) * 60 / 1000,
.hdisplay = 1080,
.hsync_start = 1080 + 104,
.hsync_end = 1080 + 104 + 20,
.htotal = 1080 + 104 + 20 + 54,
@breakgimme
breakgimme / amazon-status.css
Last active November 21, 2023 17:52
see amazon order status percentage
[data-last-reached=true]+.pt-status-milestone::before {
content: attr(data-percent-complete);
width: 100%;
position: absolute;
font-weight: bold;
}
@breakgimme
breakgimme / uwu.ino
Created May 28, 2023 23:06
real japanese goblin hack 😮😮😮😮
#include "DigiKeyboard.h"
void setup() {
}
void loop() {
DigiKeyboard.sendKeyStroke(0);
DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT);
DigiKeyboard.delay(200);
@breakgimme
breakgimme / style.css
Created October 19, 2022 22:18
ms ui gothic uwu
/* ==UserStyle==
@name ms ui gothic everything uwu
@namespace github.com/openstyles/stylus
@version 1.0.0
@description changes everything to ms ui gothic to make it cute and retro and japan core uwuwuwuwuwu
@author Me
==/UserStyle== */
* {
font-family: 'MS UI Gothic' !important;
@breakgimme
breakgimme / funky.sh
Created July 31, 2022 01:12
a script that makes a 60fps 1sec webm with random size changes (each frame width and height are randomly chosen from a range of 10-1000)
#!/bin/bash
for i in {1..60}
do
ffmpeg -f lavfi -i color=c=pink:s=$(shuf -i 10-1000 -n 1)x$(shuf -i 10-1000 -n 1) -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=44100 -frames 1 gen$i.webm
echo "file 'gen$i.webm'" >> file.txt
done
ffmpeg -f concat -i file.txt -c copy -framerate 60 test.webm
rm gen*.webm
rm file.txt
@breakgimme
breakgimme / blahaj.css
Created April 12, 2022 12:04
blahaj background for notion
.notion-frame {
background-position: 95% 110% !important;
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA4QAAAOECAYAAAD5Tv87AAAlGHpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjapZxnlhw50mz/YxWzBGixHKg459vBW/67BmQpsorsniG7K4sRmRAuzRweafb/+7/H/Oc//3HWhmhiKjW3nC1/YovNd36p9v7p56ez8fw8f2q04XX1y3XzfsNzSb+F1wfyfXVv118feHt1nd/S54Hm68b4eqPF++rrLwP5+xK0Iv2+XgO110DB3xvuNUC/27K51fJ5C2Pf19fnrxj43+hHrF+X/du/C9JbiXmC9zu4YPnpQ70LCPrfm9D5JfLT8SYWHAK/p1D5GcLbVhHId3J6/9NY0aOlxm/f9EUr77+576+bX7UV/est4Rch5/fXb68bl365Ed7n8Z9njvX1m/96HWGlu6JfpK//n2fV5+yZXfSYEXV+beptK+c33jeYQlNXw9KyLfyfGKKcv42/FauemMKy0w7+TtecR12Pi2657h63z+t0kyVGv40v/OL99OFcrKH45meQ/qL+useX0MJCjz5M1B646t/X4s60zU5zZqvMvBxv9Y7BnOzi3/41//YDzyNXcM7Wd1mxLu8lbJYhzeknb0Mj7nkJNR0Bv/399Y/0GtBgkpTlIg3BjjvESO4jEoSj6MAbE6/XB11ZrwEQEVMnFuMCGkBrLiSXnS3eF+cQZEVBnaX7EP1AAy4lv1ikjyFkdFO9puYjxZ23+uS5bLhOMEMTKeRQ0E0LHWXFmLCfEis21FNIMaWUU0k1tdRzyDGnnHPJCoq9hBJNSSWXUmpppddQY00111JrbbU33wJBM7XcSquttd6ZszNy59OdN/Q+/AgjjmRGHmXU0UafmM+MM808y6yzzb78Cov4sfIqq662+nYbU9pxp
@breakgimme
breakgimme / response.js
Last active October 17, 2020 21:16
[node.js] http response code debugger how to use http://domain/responsecode (example: http://127.0.0.1/404)
var http = require('http');
http.createServer(function (req, res) {
if (!isNaN(req.url.substring(1)) && !(req.url.length >= 5) && !(req.url.length <= 3)) {
res.writeHead(req.url.substring(1));
res.end();
} else {
res.writeHead(200);
res.write('this is not a http response code');
res.end();
}

Keybase proof

I hereby claim:

  • I am breakgimme on github.
  • I am breakgimme (https://keybase.io/breakgimme) on keybase.
  • I have a public key ASBW5MMSl-UjS7Fu4PPryY7hRSNnJAsStlaLWPT8vCjRUgo

To claim this, I am signing this object: