Skip to content

Instantly share code, notes, and snippets.

View julian-klode's full-sized avatar

Julian Andres Klode julian-klode

View GitHub Profile

atomic-apt is a wrapper for apt, and integration to initramfs-tools that manages atomic system installations using btrfs.

goal

Having a writable / file system often ends up with you installing arbitrary packages into it and making other arbitrary modifications that you forget about later, you accumulate technical debt.

You also replace files non-atomically, causing potential issues at runtime.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
JNJ,Johnson & Johnson,"0,6554 %",Pharmaceuticals,US,"87.776.930,88 $",509.472
BRK.B,Berkshire Hathaway Inc. Class B,"0,5942 %",Reinsurance,US,"79.575.944,40 $",254.220
XOM,Exxon Mobil Corp.,"0,4679 %",Integrated Oil and Gas,US,"62.660.695,32 $",824.917
CVX,Chevron Corp.,"0,3661 %",Integrated Oil and Gas,US,"49.031.004,86 $",373.342
KO,Coca-Cola Co.,"0,3405 %",Soft Drinks,US,"45.600.155,21 $",747.421
WFC,Wells Fargo & Co.,"0,3139 %",Banks,US,"42.045.560,80 $",781.516
MC,LVMH Moet Hennessy Louis Vuitton SE,"0,2939 %",Clothing and Accessories,FR,"39.364.441,11 $",48.596
WMT,Walmart Inc.,"0,2895 %",Diversified Retailers,US,"38.774.485,97 $",277.337
SHEL,Shell plc,"0,2799 %",Integrated Oil and Gas,,"37.491.469,24 $",1.481.199
BRK.A,Berkshire Hathaway Inc. Class A,"0,2385 %",Reinsurance,US,"31.946.740,00 $",68
/*
* SPDX-License-Identifier: GPL-2.0-or-later
*
* Copyright (C) 2021 Julian Andres Klode <[email protected]>
*
* Some portions included below are taken from the dummy apt solver, and hence
* share its copyright owners.
*
*/
@julian-klode
julian-klode / a.hs
Last active September 9, 2021 07:08
import Control.Monad
main = do topic <- getLine
payload <- getLine
let msg = Message (Topic topic) payload
mapM_ (runAction topic payload) rules
where
runAction topic payload (Action (Topic t) cb)
= when (t == topic) $ cb payload
#!/bin/sh
. /etc/os-release
case "$DISTRO" in
*:*)
ID=$(echo $DISTRO | cut -f1 -d:)
VERSION_CODENAME=$(echo $DISTRO | cut -f2 -d:)
;;
Dpkg::Post-Invoke:: "grep -q Vaapi /opt/google/chrome/google-chrome || sed -i 's#^exec.*HERE.*/chrome.*#\0 --enable-features=VaapiVideoDecoder#' /opt/google/chrome/google-chrome";
#!/usr/bin/python3
#
# Copyright (C) 2020-2021 Julian Andres Klode <[email protected]>
#
# This Source Code Form is subject to the terms of the Mozilla
# Public License, v. 2.0. If a copy of the MPL was not distributed
# with this file, You can obtain one at
# https://mozilla.org/MPL/2.0/.
#
"""HR plotting script.
#!/usr/bin/python3
#
# Copyright (C) 2020-2021 Julian Andres Klode <[email protected]>
#
# This Source Code Form is subject to the terms of the Mozilla
# Public License, v. 2.0. If a copy of the MPL was not distributed
# with this file, You can obtain one at
# https://mozilla.org/MPL/2.0/.
#
"""HR plotting script.
#!/usr/bin/python3
#
# Copyright (C) 2020-2021 Julian Andres Klode <[email protected]>
#
# This Source Code Form is subject to the terms of the Mozilla
# Public License, v. 2.0. If a copy of the MPL was not distributed
# with this file, You can obtain one at
# https://mozilla.org/MPL/2.0/.
#
"""HR plotting script.