/console cameraIndirectiveVisibility 1
-To find out current zone map id type
/dump C_Map.GetBestMapForUnit("player")
-To get spell IDs from Dungeon Journal, Mouseover the spell and use this macro:
/dump GetMouseFocus():GetParent().spellID
podman machine stop | |
podman machine rm | |
sudo sfltool dumpbtm | grep pod | |
sudo /usr/local/podman/helper/hamid/podman-mac-helper uninstall | |
sudo rm -rf /usr/local/podman | |
sudo rm -frv /opt/podman | |
sudo rm /var/run/podman-helper-hamid.socket | |
sudo rm /etc/paths.d/podman-pkg | |
rm -fr ~/.local/share/containers |
/console cameraIndirectiveVisibility 1
-To find out current zone map id type
/dump C_Map.GetBestMapForUnit("player")
-To get spell IDs from Dungeon Journal, Mouseover the spell and use this macro:
/dump GetMouseFocus():GetParent().spellID
Override the service, something like sudo systemctl edit docker.service
[Service]
ExecStart=
ExecStart=/usr/sbin/dockerd
Then add "hosts": ["unix:///var/run/docker.sock", "tcp://127.0.0.1:2375"]
to /etc/docker/daemon.json
To create a bidirectional unix IPC:
bind
s it to an address (typically a file). Do NOT use connect
as all send
/recv
operation will be done using connect
's address!bind
s it to its own address. However the socket connect
s to the address of server.recv_from
to get data from socket along side with the address of the client that sent the data. This way it can use the address to send a response back to client.#![allow(unused_variables)] | |
fn main() { | |
let mut v1 = vec![1, -5, 10, 3, 1, 0]; | |
let mut v2 = vec![31, 5, 10, 3, 1, -83, -83, -83, 9, 10, 8]; | |
let mut v3 = vec![5, 31, 5, 180, 3, 1, -83, 9, 10, 8]; | |
println!("mean of v1: {}", mean(&v1)); | |
println!("median of none: {:?}", median(&mut Vec::new())); | |
println!("median of v1: {:?}", median(&mut v1)); | |
println!("median of v2: {:?}", median(&mut v2)); |
pip list -o --format=legacy | cut -f 1 -d " " | parallel pip install --upgrade |
#!/bin/sh | |
# Build Zsh from sources on Ubuntu. | |
# From http://zsh.sourceforge.net/Arc/git.html and sources INSTALL file. | |
# Some packages may be missing | |
# sudo apt-get install -y git-core gcc make autoconf yodl libncursesw5-dev texinfo | |
sudo apt-get build-dep zsh | |
git clone git://git.code.sf.net/p/zsh/code zsh |
#!/bin/sh | |
# | |
# zfs snapshot auto-rotation | |
# | |
# usage: zfs_snapshot.sh <mountpoint> <snapshot name> <number of keeping snapshots> [recursive] | |
# | |
# recursive option: Recursively create snapshot (zfs snapshot -r) | |
# | |
# for crontab | |
# |