wrk is the binary used as injector, always used with these options:
./wrk -t12 -c1000 -d15s http://127.0.0.1:8080/
-- | |
-- Move this file to your neovim lua runtime path ie. ~/.config/nvim/lua/au.lua | |
-- | |
local cmd = vim.api.nvim_command | |
local function autocmd(this, event, spec) | |
local is_table = type(spec) == 'table' | |
local pattern = is_table and spec[1] or '*' | |
local action = is_table and spec[2] or spec | |
if type(action) == 'function' then |
wrk is the binary used as injector, always used with these options:
./wrk -t12 -c1000 -d15s http://127.0.0.1:8080/
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
// 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() { |
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; |
# 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) | |
# Some useful services | |
pacman -S acpid ntp dbus cups cronie |
# 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 |
# 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 |