start new:
tmux
start new with session name:
tmux new -s myname
| import json | |
| import requests | |
| data = open('message.json', 'r').read() | |
| def post_to_slack(message): | |
| webhook_url = 'https://hooks.slack.com/webhook' | |
| slack_data = json.dumps({'blocks': message}) | |
| response = requests.post( | |
| webhook_url, data=slack_data, |
This guide results from the official NixOS manual installation guide. I tried to follow exactly the official manual and had to face some issues. I installed NixOs 19.03 from an bootable USB to Lenovo t420s (previous OS Win10) with UEFI.
sudo dd if=/dev/zero of=/dev/sdX bs=1k count=2048 )
Due to this format to vfat/fat32:
sudo umount /dev/sdX
sudo mkfs.vfat /dev/sdb1
thenThis is a result from python.section.md and it has a lack of full explanation. For me its kinda reminder how to start.
configuration.nix in environment.systemPackages with e.g. (python36.withPackages(ps: with ps; [ numpy ])) here i chose python 3.6 any ohter version should work that way.python.nix with all dependencies for Python:with import <nixpkgs> {};
(python35.withPackages (ps: [ps.numpy ps.toolz])).env