Skip to content

Instantly share code, notes, and snippets.

@InvisibleRasta
InvisibleRasta / anonupload.py
Created April 10, 2020 21:14
Upload a file to anonfile.com
#!/usr/bin/env python3
import requests
import json
import sys
file = {'file': open(sys.argv[1], 'rb')}
r = requests.post("https://anonfile.com/api/upload", files=file)
content = r.content.decode("utf-8")
json_file = json.loads(content)
@InvisibleRasta
InvisibleRasta / mkalias.fish
Created April 11, 2020 14:06
thif function will create aliases for the fish shell
#make a function in ~/.config/fish/functions called mkalias.fish and put this in
function mkalias --argument key value
echo alias $key=$value
alias $key=$value
funcsave $key
end
@InvisibleRasta
InvisibleRasta / configuration.nix
Last active May 11, 2020 17:00
/etc/nixos/configuration.nix
{ config, pkgs, ... }:
{
imports =
[
# Include the results of the hardware scan.
./hardware-configuration.nix
];
boot.loader.grub.enable = true;