Skip to content

Instantly share code, notes, and snippets.

Thread 23 (Thread 0x7fb039ffb700 (LWP 8292)):
#0 0x00007fb08407e256 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /nix/store/qb6k4hp7gk331x9fydw0w7qj4dv09bwz-glibc-2.27/lib/libpthread.so.0
No symbol table info available.
#1 0x0000000000440c49 in std::_Function_handler<void (), waybar::modules::Clock::Clock(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Json::Value const&)::{lambda()#1}>::_M_invoke(std::_Any_data const&) ()
No symbol table info available.
#2 0x000000000043a949 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<waybar::util::SleeperThread::operator=(std::function<void ()>)::{lambda()#1}> > >::_M_run() ()
No symbol table info available.
#3 0x00007fb084502b0f in ?? () from /nix/store/1220kf6lvlswh677wvizp9p51c6rcp3x-gcc-8.3.0-lib/lib/libstdc++.so.6
No symbol table info available.
Bus 003 Device 022: ID 054c:0cd3 Sony Corp.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x054c Sony Corp.
# vim: et:sta:bs=2:sw=4:
import logging
import time
from concurrent import futures
import grpc
import sdnotify
import ctypes, socket, os
from select import select
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 5.3.0 Kernel Configuration
#
#
# Compiler: gcc (GCC) 8.3.0
#
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=80300
{ config, lib, pkgs, ... }:
let
rootfs = "/dev/disk/by-uuid/7165e542-0995-474c-a228-9592339e0604";
swapfs = "/dev/disk/by-uuid/baaf824a-bee0-4037-a237-3a69f1db7985";
in
{
# fs layout:
# before: /nixos/nix/* /boot/grub/menu.lst
# after: /nix/* /old-root/boot/grub/menu.lst
{ stdenv, musl, netbsd }:
let
getconf = builtins.fetchurl https://raw.githubusercontent.com/alpinelinux/aports/master/main/musl/getconf.c;
getent = builtins.fetchurl https://raw.githubusercontent.com/alpinelinux/aports/master/main/musl/getent.c;
isMusl = stdenv.hostPlatform.isMusl;
in
stdenv.mkDerivation {
pname = "musl-bin";
version = musl.version;
srcs = [
@yorickvP
yorickvP / fix.patch
Last active September 10, 2019 18:49
diff --git a/src/lib_base/p2p_addr.ml b/src/lib_base/p2p_addr.ml
index b2c78e40..cecc8efc 100644
--- a/src/lib_base/p2p_addr.ml
+++ b/src/lib_base/p2p_addr.ml
@@ -30,7 +30,7 @@ let encoding =
def "p2p_address" ~description:"An address for locating peers."
@@ splitted
~json:(conv Ipaddr.V6.to_string Ipaddr.V6.of_string_exn string)
- ~binary:(conv Ipaddr.V6.to_bytes Ipaddr.V6.of_bytes_exn string)
+ ~binary:(conv Ipaddr.V6.to_octets Ipaddr.V6.of_octets_exn string)
@yorickvP
yorickvP / README.md
Last active August 24, 2019 13:56
glitchlock

I saw the awesome thing at r/unixporn and wanted to make it lock faster and run it with sway, so here it is.

nix run https://gist.github.com/yorickvP/70cecb02096379b2f7a3510fb726f2ff/archive/master.tar.gz -c glitchlock

let
# point to recent (08/23) nixpkgs
native = import (<nixpkgs>) {};
pkgs = import (<nixpkgs>) {
crossSystem = {
config = "riscv32-none-elf";
libc = "newlib";
platform = (native.platforms.riscv-multiplatform "32") // { gcc.arch = "rv32i"; };
};
};
Wiphy phy0
max # scan SSIDs: 20
max scan IEs length: 422 bytes
max # sched scan SSIDs: 20
max # match sets: 11
max # scan plans: 2
max scan plan interval: 65535
max scan plan iterations: 254
Retry short limit: 7
Retry long limit: 4