Skip to content

Instantly share code, notes, and snippets.

@PJB3005
PJB3005 / linux_sucks.md
Last active December 26, 2024 17:34
Summary of all problems I have with the Linux Desktop

Linux Desktop Issues

This is basically my manifesto of why Linux sucks and I keep using Windows as a desktop OS. This is both as a developer platform and end-user targeting.

Look: I would love to be able to use Linux as a daily driver. KDE is amazing and they clearly put far more effort into the desktop experience/UI than Windows (just the volume mixer alone). There are simply far too many underlying and infrastructural problems to the Linux desktop that none of KDE's great UI changes can make up for. I want Linux fanboys, developers, etc... to stop sticking their damn head in the sand about these issues and admit that Linux is still decades behind in some basic infrastructure. This shit can't get fixed if people refuse to admit it's broken in the first place, which some people are far too happy to do.

Desktop App Experience & Developer Tools

Windows has far better desktop apps than Linux, and thanks to WSL, I have all the CLI apps of Linux too. While I do believe KDE Plasma is a much better desk

@ashish-kus
ashish-kus / hyprlock.conf
Last active December 26, 2024 17:33
minimal Hyprlock
$hypr = ~/.config/hypr
source = $hypr/colors.conf # for custom color
# GENERAL
general {
no_fade_in = true
grace = 1
disable_loading_bar = false
hide_cursor = true
ignore_empty_input = true
@panchalkalpesh
panchalkalpesh / git-aliases.md
Last active December 26, 2024 17:32 — forked from ypwu1/git-aliases.md
The Ultimate Git Alias Setup · GitHub

The Ultimate Git Alias Setup

If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.

Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.

The simplest way to add an alias for a specific git command is to use a standard bash alias.

# .bashrc
#include <stdio.h>
#include <stdlib.h>
#define da_append(xs, x) \
do { \
if ((xs)->count >= (xs)->capacity) { \
if ((xs)->capacity == 0) (xs)->capacity = 256; \
else (xs)->capacity *= 2; \
(xs)->items = realloc((xs)->items, (xs)->capacity*sizeof(*(xs)->items)); \
} \
@peppergrayxyz
peppergrayxyz / qemu-vulkan-virtio.md
Last active December 26, 2024 17:28
QEMU with VirtIO GPU Vulkan Support

QEMU with VirtIO GPU Vulkan Support

With its latest reales qemu added the Venus patches so that virtio-gpu now support venus encapsulation for vulkan. This is one more piece to the puzzle towards full Vulkan support.

An outdated blog post on clollabora described in 2021 how to enable 3D acceleration of Vulkan applications in QEMU through the Venus experimental Vulkan driver for VirtIO-GPU with a local development environment. Following up on the outdated write up, this is how its done today.

Definitions

Let's start with the brief description of the projects mentioned in the post & extend them:

@spundun
spundun / gist:f01346a8d8789be861597690c7a849b8
Last active December 26, 2024 17:28 — forked from Usulyre/Vulkan virtio driver for Chrome OS crostini
How to install vulkan drivers on Debian on Crostini

Compiling/installing the experimental mesa virtio-venus-experimental driver-(below done with new linux container)

In chrome browser type or paste

chrome://flags

type in "search flags" box "crostini" without quotes.

@ctolsen
ctolsen / curl_to_ab.py
Last active December 26, 2024 17:27
"Copy to cURL" in Chrome to Apache Bench command
#!/usr/bin/env python3
import sys
import os
def curl_to_ab(curl_cmd: list, num: int=200, cur: int=4) -> str:
"""
Translate a cURL command created by Chrome's developer tools into a
command for ``ab``, the ApacheBench HTTP benchmarking tool.
@jeremycochoy
jeremycochoy / fft-ios.swift
Created February 7, 2020 20:41
How to use Apple's Accelerate FFT in swift
//
// MIT LICENSE: Copy past as much as you want :)
//
// Your signal, array of length 1024
let signal: [Float] = (0 ... 1024)
// --- INITIALIZATION
// The length of the input
length = vDSP_Length(signal.count)
@nuckle
nuckle / README.md
Last active December 26, 2024 17:26
Simple user script to make reddit chats usable in browsers on mobile devices

What does this script do?

Also publised at greasyfork

Note: this script has been migrated to a browser extension format

Well, it fixes reddit chat (chat.reddit.com) for mobile devices.

Tested only for DMs (no group chats, channels or threads)