Skip to content

Instantly share code, notes, and snippets.

View lovesegfault's full-sized avatar
🔨

Bernardo Meurer lovesegfault

🔨
View GitHub Profile
(chroot) livecd / # emerge --depclean -a
* Always study the list of packages to be cleaned for any obvious
* mistakes. Packages that are part of the world set will always
* be kept. They can be manually added to this set with
* `emerge --noreplace <atom>`. Packages that are listed in
* package.provided (see portage(5)) will be removed by
* depclean, even if they are part of the world set.
*
* As a safety measure, depclean will not remove any packages
{ stdenv
, buildFHSUserEnv
, fetchurl
, lib
, rpmextract
, writeShellScript
}:
let
pname = "hqplayerd";
struct Solution;
#[derive(Debug, PartialEq, Eq)]
pub struct TreeNode {
pub val: i32,
pub left: Option<Rc<RefCell<TreeNode>>>,
pub right: Option<Rc<RefCell<TreeNode>>>,
}
impl TreeNode {
[pi3]
kernel=u-boot-rpi3.bin
[pi4]
kernel=u-boot-rpi4.bin
enable_gic=1
armstub=armstub8-gic.bin
# Otherwise the resolution will be weird in most cases, compared to
# what the pi3 firmware does by default.
self: super: {
pypy3 = (super.pypy3.override {
packageOverrides = _: pySuper: {
psycopg2 = pySuper.psycopg2.overrideAttrs (_: { disabled = false; });
};
}).overrideAttrs (oldAttrs: {
meta.platforms = oldAttrs.meta.platforms ++ [ "aarch64-linux" ];
});
octoprint = super.octoprint.override { python3 = self.pypy3; };
pool: tank
state: ONLINE
status: One or more devices has experienced an unrecoverable error. An
attempt was made to correct the error. Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
using 'zpool clear' or replace the device with 'zpool replace'.
see: http://zfsonlinux.org/msg/ZFS-8000-9P
scan: scrub in progress since Tue Oct 13 22:33:18 2020
1.99T scanned at 27.1G/s, 79.7G issued at 1.06G/s, 1.99T total
44K repaired, 3.92% done, 0 days 00:30:40 to go
[pi3]
kernel=u-boot-rpi3.bin
[pi4]
kernel=u-boot-rpi4.bin
enable_gic=1
armstub=armstub8-gic.bin
# Otherwise the resolution will be weird in most cases, compared to
# what the pi3 firmware does by default.
[pi3]
kernel=u-boot-rpi3.bin
[pi4]
kernel=u-boot-rpi4.bin
enable_gic=1
armstub=armstub8-gic.bin
# Otherwise the resolution will be weird in most cases, compared to
# what the pi3 firmware does by default.
[root@aurelius:/home/bemeurer]# cat /sys/kernel/debug/pinctrl/*.gpio-pinctrl-bcm2835/pins
registered pins: 54
pin 0 (gpio0) function alt2 in hi; irq 0 (none)
pin 1 (gpio1) function alt2 in hi; irq 0 (none)
pin 2 (gpio2) function alt2 in hi; irq 0 (none)
pin 3 (gpio3) function alt2 in hi; irq 0 (none)
pin 4 (gpio4) function alt2 in lo; irq 0 (none)
pin 5 (gpio5) function alt2 in lo; irq 0 (none)
pin 6 (gpio6) function alt2 in lo; irq 0 (none)
pin 7 (gpio7) function alt2 in lo; irq 0 (none)
int get_rpi_info(rpi_info *info)
{
FILE *fp;
char buffer[1024];
char hardware[1024];
char revision[1024];
int found = 0;
int len;
if ((fp = fopen("/proc/device-tree/system/linux,revision", "r"))) {