Skip to content

Instantly share code, notes, and snippets.

View ProofOfPizza's full-sized avatar

ProofOfPizza ProofOfPizza

View GitHub Profile
#{ config, pkgs ? import (fetchTarball https://github.com/NixOS/nixpkgs/archive/7ed3d2df76cd1f637c6163858ac0e1db9cdf7b00.tar.gz) {}, ... }:
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
# ./systemPackages.nix
];
@ProofOfPizza
ProofOfPizza / autobind.ts
Created January 26, 2021 10:14
autobind typescript
function Autobind(_: any, __: any, descriptor: PropertyDescriptor): PropertyDescriptor {
const oldMethod = descriptor.value;
const newMethod: PropertyDescriptor = {
configurable: true,
enumerable: false,
get() {
const boundFn = oldMethod.bind(this);
return boundFn;
},
};
@ProofOfPizza
ProofOfPizza / index.html
Last active January 22, 2021 14:47
HTML5 skeleton
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie-edge" />
<title>Document</title>
<link rel="stylesheet" href="css/main.css" />
@ProofOfPizza
ProofOfPizza / 1.install.md
Last active January 13, 2021 08:34
config and install nixos

Installing Nixos on MBR (Legacy Boot) with luks encrypted disk and i3 WM

This is my guide that I synthesized from different sources. Mainly:

Installed it on /dev/sda. First, create an empty MBR partition table.