Skip to content

Instantly share code, notes, and snippets.

View ggand0's full-sized avatar
💭
getting shit done

Gota Gando ggand0

💭
getting shit done
View GitHub Profile
@hopeseekr
hopeseekr / StackOverflow Stats.md
Last active August 19, 2025 15:42
StackOverflow Dec 2024 stats

Disclaimer: I'm in the Top 1% of StackOverflow contributors with 23,315 rep points.

I asked 1 high-quality question in 2024, and it was closed almost immediately, and I haven't engaged with the site since.

If someone with 20,000+ karma has their nicely-formatted questions closed so quickly, what must the newbies and rank-in-file encounter? This is probably a big reason why it's declining.


@rsms
rsms / macos-distribution.md
Last active October 16, 2025 08:15
macOS distribution — code signing, notarization, quarantine, distribution vehicles
@airstrike
airstrike / split.rs
Last active March 30, 2025 13:08
`Split` widget for `iced`
//! Divide the available space in two parts to display two different elements.
//
// Originally from iced_aw. https://github.com/iced-rs/iced_aw/
//
// Kept up-to-date with `iced`'s `master` branch by me (`0.14.0-dev`).
//
// New features:
// - Negative divider position, for measuring from the end (right or bottom)
// MIT License
@smosko
smosko / TouchBarFix.scpt
Created November 29, 2023 13:27
Macbook Pro TouchBar Flicker Fix
# 1. Paste this into Script Editor, replace username and password;
# 2. Export as "Application", check "Stay open" and "Run-only";
# 3. Add to Login Items in Settings/General to run automatically;
# 4. To hide the Dock icon, add to Content/Info.plist:
# <key>LSUIElement</key>
# <string>1</string>
on idle
set idleTime to (do shell script "ioreg -c IOHIDSystem | awk '/HIDIdleTime/ {print $NF/1000000000; exit}'") as integer
if idleTime is less than 58 then
@JacekWozniak12
JacekWozniak12 / Unity_ScreenHelper.cs
Last active November 10, 2022 08:22
Create screenshots of entry points from multiple scenes.
using System.Collections;
using UnityEngine;
using UnityEngine.SceneManagement;
public class Unity_ScreenHelper : MonoBehaviour
{
// Here is container with scenes.
// Assuming that SceneName property of element
// contains name of scene.
// IMPORTANT: add scene to build first.
@hakerdefo
hakerdefo / sources.list
Last active August 12, 2025 14:58
Ubuntu 22.04 LTS (Jammy Jellyfish) complete sources.list
deb http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
@shivamsnaik
shivamsnaik / Evaluator.py
Last active October 8, 2023 03:24
Pure COCO-library-based Method to calculate metrics such as Precision, Recall, and F1-Score with outputs in MarkDown tables
from pycocotools.coco import COCO
from pycocotools.cocoeval import COCOeval
from pycocotools.cocoeval import Params
import numpy as np
import logging
def evaluate_metrics(cocoEval, params = None, display_summary = False):
# Display the iouThresholds for which the evaluation took place
if params:
cocoEval.params = params

If you have GSettings schema undefined not found during installation of Panel World Clock (Lite) by Nei, then it might not be a problem with GSettings or gnome. If you installed gnome-clock with snap, remove it by snap remove gnome-clock and then reinstall it by apt. Now reinstall panel world clock, logout and login again.

@maelvls
maelvls / README.md
Last active October 9, 2025 07:42
My hundred struggles while using Linux as my desktop driver (Ubuntu 22.04)

My hundred struggles while using Linux as my desktop driver (Ubuntu 24.04)

Hi! On Thursday 25 April 2021, I entirely switched from macOS to Linux: https://maelvls.dev/evolution-of-my-home-office/. I took note of every adjustment I had to make along the way. I use Ubuntu "vanilla" (with Gnome as my desktop manager).

🔥 Update 26 June 2023: I am abandoning "desktop" Linux! I can't bear having to work around everything all the time, not even counting the tons of problems that occur whenever I do a major version upgrade (e.g., when I upgraded from 21.10 to 22.04, my PPAs broken obviously, and also I lost all the hack I had made to the /etc to work around problems). I am officially back to macOS starting 26 June 2023. I'll still use my Linux workstation remotely over Mosh, but not as a desktop environment. To learn more: https://hackmd.io/@maelvls/my-macos-tweaks


My other articles:

// npm i axios
const axios = require('axios').default;
axios.interceptors.request.use( x => {
// to avoid overwriting if another interceptor
// already defined the same object (meta)
x.meta = x.meta || {}
x.meta.requestStartedAt = new Date().getTime();
return x;