Skip to content

Instantly share code, notes, and snippets.

View ndrsllwngr's full-sized avatar

Andreas Ellwanger ndrsllwngr

View GitHub Profile
- name: Overprovision like the pros'
hosts: all
tasks:
- name: Install early OOM killer and zram
ansible.builtin.apt:
pkg:
- earlyoom
- zram-tools
- name: Configure early OOM killer
ansible.builtin.lineinfile:
@pksunkara
pksunkara / config.toml
Last active November 1, 2025 15:24
Sample of jj config file (Example jj/config.toml) (Place them in $XDG_CONFIG_HOME/jj)
'$schema' = 'https://jj-vcs.github.io/jj/latest/config-schema.json'
[user]
name = 'Pavan Kumar Sunkara'
email = '[email protected]'
username = 'pksunkara'
[ui]
default-command = 'default'
editor = 'nvim'

So, your program has dependencies, like tokio or openSSL. All of your dependencies are kind of like mini-programs that can be compiled by themselves. But to be useful, your program needs to be able to find and call the functions in your dependencies. To do this, a program called a linker exists - it effectively adds your program and all of your dependencies all together in one big file, and renames all the functions so that they call each other correctly.

You don't always want to include every dependency in your binary, though, so there are two sub-types of linking - static linking and dynamic linking. Static linking happens when you compile your program - by default, crates in Rust are statically linked. On the other hand, dynamic linking happens when the operating system tries to load your program. The system looks for all the libraries that your program says it needs, and links the versions it finds in.

Using a distroless base image gave you those errors because the dynamic linker couldn't find the lib

// TODO: make `pages` optional and measure the div when unspecified, this will
// allow more normal document flow and make it easier to do both mobile and
// desktop.
import {
createContext,
useCallback,
useContext,
useEffect,
useMemo,
useRef,
@sts10
sts10 / rust-command-line-utilities.markdown
Last active October 30, 2025 03:46
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
@Axel-Erfurt
Axel-Erfurt / celluloidTV.m3u
Last active October 24, 2025 15:02
Livestreams deutscher TV-Sender
#EXTM3U
#EXTINF:-1,ARD
https://daserste-live.ard-mcdn.de/daserste/live/hls/de/master.m3u8
#EXTINF:-1,ARD ONE
https://mcdn-one.ard.de/ardone/hls/master.m3u8
#EXTINF:-1,ARD Alpha
https://mcdn.br.de/br/fs/ard_alpha/hls/de/master.m3u8
#EXTINF:-1,ARD Tagesschau
https://tagesschau.akamaized.net/hls/live/2020115/tagesschau/tagesschau_1/master.m3u8
#EXTINF:-1,ZDF
@elliottmorris
elliottmorris / election_night_live_model.R
Last active October 18, 2025 10:10
A live election-night prediction model using The Economist's pre-election forecast
#' Description
#' This file runs a live election-night forecast based on The Economist's pre-election forecasting model
#' available at projects.economist.com/us-2020-forecast/president.
#' It is resampling model based on https://pkremp.github.io/update_prob.html.
#' This script does not input any real election results! You will have to enter your picks/constraints manually (scroll to the bottom of the script).
#'
#' Licence
#' This software is published by *[The Economist](https://www.economist.com)* under the [MIT licence](https://opensource.org/licenses/MIT). The data generated by *The Economist* are available under the [Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0/).
#' The licences include only the data and the software authored by *The Economist*, and do not cover any *Economist* content or third-party data or content made available using the software. More information about licensing, syndication and the copyright of *Economist* content can be fou
@mattdesl
mattdesl / about.md
Last active June 11, 2019 01:36
pen plotterable circle pack demo with D3 + canvas-sketch + utils https://github.com/mattdesl/canvas-sketch

To run with latest canvas-sketch-cli, copy the contents of sketch.js and then:

mkdir my-sketch
cd my-sketch

# Run a development server
pbpaste | canvas-sketch sketch.js --new --open
@stidges
stidges / tailwind.itermcolors
Last active November 30, 2023 21:00
An iTerm2 color scheme based on the Tailwind CSS color scheme (https://tailwindcss.com/docs/colors)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.17254902422428131</real>
@kencarino
kencarino / Delete facebook group members (all the one visible on a given page)
Last active August 12, 2020 19:21 — forked from nirgeier/Delete all facebook members (all the one visible on a given page)
Delete all facebook group members on a given page. Usage: Copy this script, open developers console (F12) in chrome (win) and paste this script. The script will delete all the members that you can see in the given page. Once the script is done you should see a group with no members.
/**
*
* This script will remove all group members displayed on group page except admins.
*
* @author: Nir Geier
* @modified: Ken Carino
*
* Updated May 29, 2019 - Tested on Chrome Version 74.0.3729.169
*
* Requirements: