wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb
sudo apt update -y
sudo apt install gdebi -y
sudo gdebi teamviewer_amd64.deb
sudo teamviewer passwd PASSWORD_TO_BE_CHANGED
sudo teamviewer daemon enable
teamviewer info
""" | |
Python code for fractional differencing of pandas time series | |
illustrating the concepts of the article "Preserving Memory in Stationary Time Series" | |
by Simon Kuttruf | |
While this code is dedicated to the public domain for use without permission, the author disclaims any liability in connection with the use of this code. | |
""" | |
import numpy as np | |
import pandas as pd |
#!/bin/bash | |
function enableTouchBar() { | |
local presentationModeProperties="<dict><key>app</key><string>fullControlStrip</string><key>appWithControlStrip</key><string>fullControlStrip</string><key>fullControlStrip</key><string>app</string></dict>" | |
defaults delete com.apple.touchbar.agent PresentationModeGlobal | |
defaults write com.apple.touchbar.agent PresentationModeFnModes $presentationModeProperties | |
launchctl load /System/Library/LaunchAgents/com.apple.controlstrip.plist |
This guide shows how to set up a PHP and MySQL development environment using OSX's built-in Apache, using Homebrew to install necessary components. With this strategy, you can use different versions of PHP for certain virtual hosts.
VirtualHostX is a convenient way to manage development sites, but not required.
brew update
brew install php56
brew install php56-mcrypt
brew install mysql
Moved to git repository: https://github.com/denji/nginx-tuning
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon
with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |