This file contains 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
#!/bin/bash | |
# !!WARNING!! | |
# This will DELETE all efforts you have put into configuring nix | |
# Have a look through everything that gets deleted / copied over | |
nix-env -e '.*' | |
rm -rf $HOME/.nix-* | |
rm -rf $HOME/.config/nixpkgs |
This file contains 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
{ | |
"nodes": { | |
"flake-utils": { | |
"locked": { | |
"lastModified": 1634851050, | |
"narHash": "sha256-N83GlSGPJJdcqhUxSCS/WwW5pksYf3VP1M13cDRTSVA=", | |
"owner": "numtide", | |
"repo": "flake-utils", | |
"rev": "c91f3de5adaf1de973b797ef7485e441a65b8935", | |
"type": "github" |
This file contains 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
_ _ | |
/ X \ | |
\/_\/ | |
' ' |
This file contains 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
// Go to https://ankiuser.net/edit/ | |
(async ({ cardType, nameOfDeck, data }) => { | |
const body = [ | |
["nid", ""], | |
["data", encodeURIComponent(JSON.stringify(data))], | |
["csrf_token", editor.token], | |
["mid", editor.mode.notetypes.find(({ name }) => name === cardType).id], | |
["deck", editor.mode.decks.find(({ name }) => name === nameOfDeck).id], | |
] |
This file contains 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
#! env bash | |
# Checking which full production discs are available in Champion Glow plastic | |
curl -sL 'https://proshop.innovadiscs.com/full-production/?_bc_fsnf=1&Plastic+Type=Glow+Champion&list_all=Disc%20Model' | grep -ie 'Disc+Model=.*"' | sed 's/.*Disc+Model=\(.*\)"/\1/' | sed 's/+/ /' | perl -pe 's/\%(\w\w)/chr hex $1/ge' | |
# Checking which full production discs are available in Champion plastic | |
curl -sL 'https://proshop.innovadiscs.com/full-production/?_bc_fsnf=1&Plastic+Type=Champion&list_all=Disc%20Model' | grep -ie 'Disc+Model=.*"' | sed 's/.*Disc+Model=\(.*\)"/\1/' | sed 's/+/ /' | perl -pe 's/\%(\w\w)/chr hex $1/ge' | |
# Checking which limited discs are available in Champion Glow plastic | |
curl -sL 'https://proshop.innovadiscs.com/limited/?_bc_fsnf=1&Plastic+Type=Glow+Champion&list_all=Disc%20Model' | grep -ie 'Disc+Model=.*"' | sed 's/.*Disc+Model=\(.*\)"/\1/' | sed 's/+/ /' | perl -pe 's/\%(\w\w)/chr hex $1/ge' |
This file contains 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
{ | |
"nodes": { | |
"flake-utils": { | |
"locked": { | |
"lastModified": 1629481132, | |
"narHash": "sha256-JHgasjPR0/J1J3DRm4KxM4zTyAj4IOJY8vIl75v/kPI=", | |
"owner": "numtide", | |
"repo": "flake-utils", | |
"rev": "997f7efcb746a9c140ce1f13c72263189225f482", | |
"type": "github" |
This file contains 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-shell -E 'with import <nixpkgs> { }; runCommand "dummy" { buildInputs = [ cypress ]; shellHook = "export CYPRESS_INSTALL_BINARY=0 CYPRESS_RUN_BINARY=${cypress}/bin/Cypress;"; } ""' |
This file contains 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
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix |
This file contains 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
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in | |
all copies or substantial portions of the Software. |
This file contains 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
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix |