This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Copyright 2011, Jason Graham | |
# | |
# Uses python-markdown to convert a markdown document to the body | |
# of an HTML document to display with cgit (http://hjemli.net/git/cgit/). | |
# | |
# Install: | |
# | |
# 1- Install python-markdown ( sudo apt-get install python-markdown ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// UPDATED THANK YOU @al3mart | |
util_crypto.xxhashAsHex("System", 128) | |
> "0x26aa394eea5630e07c48ae0c9558cef7" | |
util_crypto.xxhashAsHex("Account", 128) | |
> "0xb99d880ec681799c0cf30e8886371da9" | |
// https://westend.subscan.io/account/5ENpP27BrVdJTdUfY6djmcw3d3xEJ6NzSUU52CCPmGpMrdEY | |
util_crypto.blake2AsHex(keyring.decodeAddress("5ENpP27BrVdJTdUfY6djmcw3d3xEJ6NzSUU52CCPmGpMrdEY"), 128) | |
> "0xbb08f275d00049b315666c2c44130a10" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type BarberId= usize; | |
type ShopId = usize; | |
struct Shop { | |
barber: Option<BarberId>, | |
} | |
struct Barber { | |
shop: Option<ShopId>, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# values from https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/Welcome%20to%20High%20Performance%20Computing%20%28HPC%29%20Central/page/Linux%20System%20Tuning%20Recommendations | |
# install (root): curl -s https://gist.githubusercontent.com/polonskiy/00a71bab32360ffcb79f/raw/10-custom.conf > /etc/sysctl.d/10-custom.conf | |
# apply (root): sysctl -p /etc/sysctl.d/10-custom.conf | |
net.ipv4.neigh.default.gc_thresh1 = 30000 | |
net.ipv4.neigh.default.gc_thresh2 = 32000 | |
net.ipv4.neigh.default.gc_thresh3 = 32768 | |
net.ipv6.neigh.default.gc_thresh1 = 30000 | |
net.ipv6.neigh.default.gc_thresh2 = 32000 |
NewerOlder