Skip to content

Instantly share code, notes, and snippets.

View fr3fou's full-sized avatar
☁️
borgar

Simo fr3fou

☁️
borgar
  • Ruse, Bulgaria
  • 02:40 (UTC +03:00)
  • X @fr3fou
View GitHub Profile
@asdine
asdine / logging.go
Last active September 17, 2022 23:40
Send zerolog errors to Sentry
package logger
import (
"encoding/json"
"fmt"
"io"
"log"
"os"
"runtime"
"time"
@mrk-han
mrk-han / emulator-install-using-avdmanager.md
Last active May 1, 2024 21:12
Installing and creating Emulators with AVDMANAGER (For Continuous Integration Server or Local Use)

Install and Create Emulators using AVDMANAGER and SDKMANAGER

TL;DR

For an emulator that mimics a Pixel 5 Device with Google APIs and ARM architecture (for an M1/M2 Macbook):

  1. List All System Images Available for Download: sdkmanager --list | grep system-images

  2. Download Image: sdkmanager --install "system-images;android-30;google_atd;arm64-v8a"

@clo-yunhee
clo-yunhee / !tabletarea.sh
Last active November 25, 2018 19:38
Small(kinda?) configurable shell script to calculate active tablet area units for Xorg drivers (You'll have to adapt the output depending on which driver you're using)
#!/bin/sh
#Monitor display ratio
disprat=$(echo "16 / 9" | bc -l)
#Full area size in real units (for the G640, in mm)
tabw=152.4
tabh=101.6
#Full area size in driver units
@ChrisWellsWood
ChrisWellsWood / i3_config
Last active September 17, 2023 14:41
i3wm Config and Cheat Sheet
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
@Legestrophe
Legestrophe / Lege skins.md
Last active February 18, 2023 16:46
Lege skin compilation

Lege skin compilation

Click on the skin name to download. If the download does not start or displays strange characters, press ctrl + S.

@jaytaylor
jaytaylor / react-unexpected-use-of-location.md
Created July 12, 2017 22:44
Solution for "Unexpected use of 'location'" React error.
React: Unexpected use of 'location';

Solution: Use window.location instead of bare location.

@fluxrad
fluxrad / onedark.theme
Last active January 26, 2024 13:12
A one-dark theme for xfce4-terminal
[Scheme]
Name=One Dark
ColorForeground=#ABB2BF
ColorCursor=#ABB2BF
ColorBackground=#282C34
ColorSelection=#3B4451
ColorSelectionUseDefault=FALSE
ColorBold=#B9C0CB
ColorBoldUseDefault=FALSE
ColorPalette=#282C34;#E06C75;#98C379;#E5C07B;#61AFEF;#C678DD;#56B6C2;#ABB2BF;#3E4452;#BE5046;#98C379;#D19A66;#61AFEF;#C678DD;#56B6C2;#5C6370
@AgentOak
AgentOak / youtube_formats.md
Last active May 5, 2024 18:03
Youtube Format IDs

Last updated: April 2021

Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22). Depending on the age and/or popularity of the video, not all formats will be available.

DASH video

Resolution AV1 HFR High AV1 HFR AV1 VP9.2 HDR HFR VP9 HFR VP9 H.264 HFR H.264
MP4 MP4 MP4 WebM WebM WebM MP4 MP4
@Francesco149
Francesco149 / osu_on_linux_overhaul.md
Last active April 12, 2024 21:56
Ultimate guide to low-latency osu on linux
@oinopion
oinopion / read-access.sql
Created October 5, 2016 13:00
How to create read only user in PostgreSQL
-- Create a group
CREATE ROLE readaccess;
-- Grant access to existing tables
GRANT USAGE ON SCHEMA public TO readaccess;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess;
-- Grant access to future tables
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readaccess;