- Reading speed cache/buffer:
hdparm
- Check cache reading speed:
hdparm
- Sequential write speed:
dd
- Check iops when random read/write (block 4K):
fio
- Command
grep -o "[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+" /var/log/nginx/access.log
- Unique IPs
grep -o "[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+" /var/log/nginx/access.log | sort | uniq
- Install Dev Tools, PHP, Nginx
sudo yum install nginx php php-fpm php-common gcc glibc glibc-common gd gd-devel make net-snmp unzip -y
sudo yum groupinstall 'Development Tools' -y
- Nginx – Nagios Configuration
cd /etc/nginx/conf.d
sudo vi nagios.conf
sudo apt-get install git libcurl4-openssl-dev build-essential libjansson-dev autotools-dev automake
git clone https://github.com/hyc/cpuminer-multi
cd cpuminer-multi
./autogen.sh
CFLAGS="-march=native" ./configure
sudo make
sudo make install
sudo ./minerd -a cryptonight -o stratum+tcp://pool.minexmr.com:4444 -u <WALLET_ADDRESS_HERE> -p x -t 3
sudo apt-get install bfgminer
-
Unfortunately the version was not up to date, and was not compiled for mining scrypt-based coins like Litecoin. Here is how I built BFGMiner with this support.
-
Install the dependencies:
sudo apt-get install build-essential autoconf libtool libjansson-dev libcurl4-gnutls-dev libncurses5-dev libudev-dev libusb-1.0-0-dev yasm uthash-dev
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
sudo cp ~/.config/monitors.xml /var/lib/gdm3/.config/ |
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
VBR="2500k" | |
FPS="30" | |
QUAL="veryfast" | |
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" | |
SOURCE="http://125.212.211.162:8080/live/super-sunday.m3u8" | |
SOURCEFB="https://video-hkg3-1.xx.fbcdn.net/hvideo-atn2/v/dash-md/267360413666075-854021.m4a" | |
KEY="agyz-6wy0-k429-8gqu" | |
#ffmpeg \ |
So, you love Slack, but you hate applications with large white backgrounds? Why not use Dark Mode! 🕶️
Unfortunately, Slack does not have a Dark Mode, although it's on their list of possibilities.
But, don't fret - there is a solution! Because the slack native desktop apps are just wrappers around a web app, we can inject our own CSS to customize the application to our liking.
(I take no credit for this exploit, graciously found via @DrewML https://gist.github.com/DrewML/0acd2e389492e7d9d6be63386d75dd99 and suggestions by @bradens, @jouni, @gkostov and others).
function encryptor($action, $string) {
$output = false;
$encrypt_method = "AES-256-CBC";
//pls set your unique hashing key
$secret_key = 'dj7oiop1mkdp251EnCrIt4QKq4988w6a';
$secret_iv = 'oeuGJW0cBI4ye998Z7435sj9EkGnDD34';
// hash
- Create your public key and private key
// Config RSA
$config = [
"digest_alg" => "sha512",
"private_key_bits" => 2048,
"private_key_type" => OPENSSL_KEYTYPE_RSA,
];
// Create the private and public key
NewerOlder