Skip to content

Instantly share code, notes, and snippets.

Object lvl iblk dblk dsize lsize %full type
-1 1 16K 1K 8K 1K 100.00 ZFS user/group used
dnode flags: USED_BYTES
dnode maxblkid: 0
microzap: 1024 bytes, 10 entries
ea61 = 8704
3e9 = 8704
3e3 = 708592128
65 = 4077498368
Object lvl iblk dblk dsize lsize %full type
-1 1 16K 1.50K 8K 1.50K 100.00 ZFS user/group used
dnode flags: USED_BYTES
dnode maxblkid: 0
microzap: 1536 bytes, 14 entries
0 = 16826733568
3e2 = 209920
3e8 = 3048452096
3e6 = 31744
Object lvl iblk dblk dsize lsize %full type
-1 1 16K 1K 8K 1K 100.00 ZFS user/group used
dnode flags: USED_BYTES
dnode maxblkid: 0
microzap: 1024 bytes, 11 entries
3e3 = 60928
66 = 17408
0 = 33536470016
78 = 457216
#!/usr/bin/env python2.7
# From HurlSly@reddit: http://www.reddit.com/r/Bitcoin/comments/1vxszh/selfish_mine_simulation_in_python/
import random
def Simulate(alpha,gamma,N):
#This function simulate the selfish miners strategy.
#It returns the proportion of blocks in the longest chain
#which belongs to the selfish miners.
state=0
<html><body>MIAU</body></html>
@clefru
clefru / etc-nixos-configuration.nix
Created January 10, 2018 12:07
my ZFS kernel overrides for nixos
boot.kernelPackages =
let origKernel = pkgs.linux_4_14;
k10temp = {
name = "k10temp restructure";
patch = ./k10temp.diff;
};
ryzenPatch = {
name = "Ryzen temperature support";
patch = ./ryzen-temp.diff;
};
texlive = pkgs.lib.overrideDerivation (pkgs.texlive.combine {
inherit (pkgs.texlive)
scheme-basic dinbrief german mnsymbol crimson xkeyval mweights ucs totpages booktabs lm ms setspace tabu xcolor soul varwidth enumitem collection-fontsrecommended ulem titlesec hyperref memoir hyphen-german hyphen-english multirow csquotes etoolbox subfigure subfig caption spreadtab fp xstring siunitx l3kernel l3packages xint xifthen isodate substr dvisvgm fontspec fontaxes xetex;
minionpro.pkgs = [pkgs.minionpro];
}) (oldAttrs: {
postBuild = ''
# Save the udpmap.cfg because texlive.combine removes it.
cat $out/share/texmf/web2c/updmap.cfg > $out/share/texmf/web2c/updmap.cfg.1
'' + oldAttrs.postBuild + ''
# Move updmap.cfg into its original place and rerun mktexlsr, so that kpsewhich finds it
{
nixpkgs-18.09 = builtins.fetchGit {
url = "https://github.com/nixos/nixpkgs-channels";
ref = "nixos-18.09";
rev = "....";
};
nixpkgs-19.03 = builtins.fetchGit {
url = "https://github.com/nixos/nixpkgs-channels";
ref = "nixos-19.03";
rev = "....";

Keybase proof

I hereby claim:

  • I am clefru on github.
  • I am clefru (https://keybase.io/clefru) on keybase.
  • I have a public key ASDL5b5DKhjmgMx5mNp7YrqoLrWp5O2cOaMMCndUE8ENUAo

To claim this, I am signing this object:

let pkgs = import <nixpkgs> {};
config = (import <nixpkgs/nixos/lib/eval-config.nix> {
system=pkgs.system;
modules = [ {
fileSystems."/".device = "/dev/disk/by-label/nixos";
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/sda";
boot.loader.timeout = 0;