Skip to content

Instantly share code, notes, and snippets.

View storopoli's full-sized avatar

Jose Storopoli storopoli

View GitHub Profile
@storopoli
storopoli / init.lua
Last active March 4, 2024 09:59
Minimal Neovim config
-------------------------------------------------------------------------------
-- DEPENDENCIES
-- neovim nodejs ripgrep rust-analyzer
-- 21 Plugins
-- ~33ms startup
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-- Options
@storopoli
storopoli / chomebook.md
Last active January 30, 2024 18:12
Life with a Chromebook (arm64)
@dangovorenefekt
dangovorenefekt / blockmetatwitter.md
Last active April 26, 2024 11:12
Block Meta and Twitter (nginx)
@yzdbg
yzdbg / auto-dr.md
Last active November 3, 2023 17:11

Automating Daily Reports, because fuck it, really...

Each day at our company, developers are required to document their activities, painstakingly jotting down their daily work and future plans. A monotonous chore that I just really dislike.

So now, there's a scribe for that :

auto-dr-

Code

#! /usr/bin/env bash
usage() {
echo "
Bind/unbind a USB device from a given vendor:product id
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-d|--dry-run] [--hdmi|microsd|usba|ssd250] [--detect=deviceid:vendorid] [on|off]
Example usage: $(basename "${BASH_SOURCE[0]}") --hdmi off
Example usage: $(basename "${BASH_SOURCE[0]}") --detect=27c6:609c
" >&2
@jpsamaroo
jpsamaroo / ffmpeg-cut.jl
Created July 7, 2022 20:40
FFMPEG Cutting Script - in Julia
#!/usr/bin/env julia
function ts_to_s(ts::AbstractString)
secs = tryparse(Float64, ts)
if secs !== nothing
return secs
end
hours, mins, secs = parse.(Float64, split(ts, ':'))
return (hours * 60 * 60) + (mins * 60) + secs
end
@qguv
qguv / vscode-wayland.md
Last active April 3, 2024 06:40
Visual Studio Code: Enable native Wayland support

Native wayland support is now working consistently for me in VSCode, giving much better text rendering. Unfortunately, it's still hidden behind some command-line flags.

By adding some files to /usr/local/*, you can ensure that VSCode always launches with these flags.

Adding launch flags to VSCode

Assuming that the VSCode launcher is /usr/bin/code-oss (as is the case in Arch):

  1. Create /usr/local/bin/code-oss with the following content:
@storopoli
storopoli / 9barista_coffee.md
Created December 28, 2021 22:07
9Barista Coffee

9Barista Coffee

  1. 120mL Water
  2. 18g Coffee
  3. Tamping — firm push downwards — around 5kg of force is enough
  4. Medium to High Heat — closest to 3in in diameter
  5. Expresso should be 35-40mL
  6. Pour your espresso straight away

Grinder

Arch Linux ARM on Crostini

Screenshot

I got Arch Linux ARM installed on a Lenovo Chromebook Duet! I mostly used the instructions from the Arch Wiki as reference.

0. Before we begin

@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active May 3, 2024 13:01
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}