This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
int sum = 0; | |
for(int i = 6; i <= 66; i += 2) | |
{ | |
i += sum; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nix-repl> a = builtins.readFile "${runCommandNoCC "a" {} "echo a > $out"}" | |
nix-repl> a | |
[1 built (1 failed), 0.0 MiB DL] querying info about missing paths"a\n" | |
nix-repl> a | |
"a\n" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rec { | |
foo = xs: p: let | |
sorted = builtins.sort (x: y: x.startMin < y.startMin) xs; | |
in map ({fst, snd}: p fst snd) (super.lib.zipLists sorted (builtins.tail sorted)); | |
verifyTime = times: foo times (x: y: x.startMin + x.lenMin <= y.startMin); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wpaHook.enable = true; | |
wpaHook.disconnectHook = '' | |
${pkgs.iproute}/bin/ip addr flush dev wlp2s0 | |
${pkgs.iproute}/bin/ip route flush dev wlp2s0 | |
''; | |
wpaHook.connectHook = '' | |
case "$(${pkgs.wpa_supplicant}/bin/wpa_cli status | grep bssid | cut -d'=' -f2)" in | |
"ae:0d:1b:e7:e9:f9") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wpaHook.connectHook = '' | |
case "$(${pkgs.wpa_supplicant}/bin/wpa_cli status | grep bssid | cut -d'=' -f2)" in | |
"ae:0d:1b:e7:e9:f9") | |
${pkgs.iproute}/bin/ip addr add 192.168.43.2/24 dev wlp2s0 | |
${pkgs.iproute}/bin/ip route add default via 192.168.43.1 | |
;; | |
*) | |
${pkgs.dhcpcd}/bin/dhcpcd -1 wlp2s0 | |
;; | |
esac |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interfaces = { | |
enp3s0 = { | |
ipv4.addresses = [{ | |
address = "192.168.2.101"; | |
prefixLength = 24; | |
}]; | |
}; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nixpkgs.config.wine = { | |
release = "staging"; | |
build = "wineWow"; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dmenu = (pkgs.dmenu.override { | |
patches = [ | |
(pkgs.fetchurl { | |
url = https://tools.suckless.org/dmenu/patches/dmenu-center-4.8.diff; | |
sha256 = "0z21l82y11rx0kd74abpyh925rq29dl34y7p4868dl3ffknc7ifz"; | |
}) | |
(pkgs.fetchurl { | |
url = https://tools.suckless.org/dmenu/patches/dmenu-password-4.7.diff; | |
sha256 = "1y6r57iqp31q32zwzyavkiy9hv81ffbpb5hm03xxmpv60wvy3nib"; | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
resources.sshKeyPairs.foo = {}; | |
resources.sshKeyPairs.bar = {}; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3a2734bbad1 * python: rlp: 0.6.0 -> 1.0.1 | |
367a7ae138b * pythonPackages.rlp: revert to working 0.6.0 | |
e00ddc62b27 * python.pkgs.rlp: mark as broken | |
4c3a19b9c96 * python: rlp: 0.6.0 -> 1.0.1 | |
67dbfd3fc17 * pythonPackages.rlp: init at 0.6.0 |