Skip to content

Instantly share code, notes, and snippets.

Yorick yorickvP

Block or report user

Report or block yorickvP

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View musl-bin.nix
{ 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 = [
View fix.patch
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)
View README.md

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

View fomu-gcc.nix
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"; };
};
};
View gist:d73f3d9ef22d64132f1bfe0711899e65
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
View override-happy.nix
import (fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/b5f5c97f7d67a99b67731a8cfd3926f163c11857.tar.gz";
sha256 = "1m9xb3z3jxh0xirdnik11z4hw95bzdz7a4p3ab7y392345jk1wgm";
}) { config = {}; overlays = [
(self: super: {
haskell = super.haskell // {
packages = super.haskell.packages // {
ghc864 = super.haskell.packages.ghc864.extend (hself: hsuper: {
happy = super.haskell.lib.dontCheck (hsuper.callHackage "happy" "1.19.9" {});
});
View rehackt.js
(function() {
'use strict';
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = {
checkDCE: function() {},
supportsFiber: true,
roots: new Set(),
inject() {},
onCommitFiberRoot(rendererID, root) {
const current = root.current;
if (current.memoizedState != null && current.memoizedState.element != null) {
View all-cabal-hashes.nix
let
all-cabal-hashes-component = name: version: type:
builtins.fetchurl
"https://raw.githubusercontent.com/commercialhaskell/all-cabal-hashes/hackage/${name}/${version}/${name}.${type}";
in self: super: {
haskellPackages = super.haskellPackages.override {
overrides = self: super: {
hackage2nix = name: version:
self.haskellSrc2nix {
name = "${name}-${version}";
View gist:5392121a9079f4504c0637ae8e7a0a87
<<< Welcome to NixOS 19.09pre-git (x86_64) - ttyS1 >>>
jupiter-stage login: [ OK ] Stopped target Timers.
Stopping Hardware RNG Entropy Gatherer Daemon...
[ Stopping Serial Getty on ttyS1...
Stopping Getty on tty1...
[ OK ] Stopped target Containers.
[ OK ] Stopped S.M.A.R.T. Daemon.
[ OK ] Stopped Hardware RNG Entropy Gatherer Daemon.
View route53-to-aws.js
var https = require('https');
var util = require('util');
function postToSlack(postData) {
var options = {
method: 'POST',
hostname: 'hooks.slack.com',
port: 443,
path: process.env.SLACK_WEBHOOK
};
You can’t perform that action at this time.