Skip to content

Instantly share code, notes, and snippets.

View Searge's full-sized avatar
🦄
Servering servers

Sergij Boremchuk Searge

🦄
Servering servers
View GitHub Profile
@mjkstra
mjkstra / arch_linux_installation_guide.md
Last active July 28, 2024 14:13
A modern, updated installation guide for Arch Linux with BTRFS on an UEFI system
@samuelcolvin
samuelcolvin / python-people.md
Last active June 23, 2024 19:06
An incomplete list of people in the Python community to follow on Twitter and Mastodon.

Python People

(Updated 2022-11-16 with suggestions from comments below, Twitter and Mastodon)

An incomplete list of people in the Python community to follow on Twitter and Mastodon.

With the risk that Twitter dies, I'd be sad to lose links to interesting people in the community, hence this list.

I would love you to comment below with links to people I've missed.

@giuseppe998e
giuseppe998e / nixos-btrfs-tmpfs.md
Last active June 15, 2024 23:31
Install NixOS with BTRFS and IN-RAM root

Install NixOS with BTRFS and IN-RAM root

1. Format and partition the hard drive

  1. Create the GPT partition table
    • $ parted /dev/sdX mklabel gpt
  2. Create the UEFI FAT32 partition (which will be /dev/sdXY)
    • $ parted /dev/sdX mkpart esp fat32 1MiB 512MiB
    • $ parted /dev/sdX set 1 esp on
    • $ parted /dev/sdX set 1 boot on
  • $ mkfs.fat -F 32 -n UEFI /dev/sdXY
@sts10
sts10 / rust-command-line-utilities.markdown
Last active July 27, 2024 18:00
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool

With dataclasses Rich will essentially replace the dataclass __repr__ by inspecting the dataclass fields. It does this so it can know how to expand the dataclass on to multiple lines with indentation.

For example, here is a dataclass

@dataclass
class DC:
    foo: str
    bar: int
@zhoreeq
zhoreeq / vulpes-nord.json
Created August 10, 2021 16:30 — forked from Omega9/vulpes-nord.json
Vulpes Nord theme for Pleroma
{
"_pleroma_theme_version": 2,
"theme": {
"themeEngineVersion": 3,
"shadows": {
"panel": [
{
"color": "#000000",
"x": 0,
"y": "10",
" Wez's VIM colors for Dark background
" vim:ts=2:sw=2:et:
hi clear
if exists("syntax on")
syntax reset
endif
let g:colors_name = "wez"
let &background="dark"
#!/usr/bin/awk -f
# This program is a copy of guff, a plot device. https://github.com/silentbicycle/guff
# My copy here is written in awk instead of C, has no compelling benefit.
# Public domain. @thingskatedid
# Run as awk -v x=xyz ... or env variables for stuff?
# Assumptions: the data is evenly spaced along the x-axis
# TODO: moving average
@FalcoSuessgott
FalcoSuessgott / .gitconfig
Last active January 11, 2022 14:47
List all branches and there last commits (Git alias)
...
[alias]
# https://stackoverflow.com/questions/5188320/how-can-i-get-a-list-of-git-branches-ordered-by-most-recent-commit
br = for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'
import sys
from functools import reduce
N = 4
VARS = 'abcd'
mult = lambda a, b: a * b
def showN(i):
if i == 1: