Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| # generate an SHA-256 password hash base64 encoded | |
| echo -n "password" | openssl dgst -sha256 -binary | openssl base64 | |
| # better yet, use pepper (suffix the password with the pepper) | |
| echo -n "passwordpepper" | openssl dgst -sha256 -binary | openssl base64 | |
| # better yet, use salt (prefix the password with the salt) | |
| echo -n "saltpassword" | openssl dgst -sha256 -binary | openssl base64 |
| # sudo /sbin/rcvboxdrv -h | |
| # Unloading modules: | |
| # Loading modules: modprobe: FATAL: Module vboxnetadp not found in directory /lib/modules/4.4.3-1-ARCH | |
| # modprobe: FATAL: Module vboxnetflt not found in directory /lib/modules/4.4.3-1-ARCH | |
| # modprobe: FATAL: Module vboxpci not found in directory /lib/modules/4.4.3-1-ARCH | |
| # modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/4.4.3-1-ARCH | |
| # Solution | |
| # from https://forum.antergos.com/topic/818/can-t-run-my-vitualbox/4 |
| # Install Gnome and some other useful thins | |
| # The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
| # And based on https://wiki.archlinux.de/title/Anleitung_f%C3%BCr_Einsteiger | |
| # I have just copied commands from https://wiki.archlinux.de/title/Anleitung_f%C3%BCr_Einsteiger#Weitere_notwendige_Dienste | |
| # It's just to have it with one view after doing a [fresh installation](https://gist.github.com/thacoon/05d5a39606ab554455d6713e8a714b2c) | |
| # Switch to root | |
| sudo su - |
| public static class Option | |
| { | |
| public static Option<T> None<T>() => new None<T>(); | |
| public static Option<T> Some<T>(T value) => new Some<T>(value); | |
| } | |
| public class Option<T> : IEquatable<Option<T>> | |
| { | |
| public static Option<T> None => new None<T>(); | |
| public bool IsNone => !hasValue; |
| // This code sample needs the dependencies: | |
| // tokio = "0.1" | |
| // tokio-process = "0.2" | |
| use tokio::prelude::*; | |
| use std::process::{Command, Stdio}; | |
| use tokio_process::CommandExt; | |
| use std::time::Duration; | |
| fn main() { |
➜ uname -r
# get installed kernel version
➜ pacman -S linux-headers
# select kernel version
git config --global alias.lg "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"
git config --global alias.s status --short
git config --global alias.s status -sb