putty.exe root@192.168.0.1 -P 2222 -pw mypasswd -D 1234
-P port_number
-pw ssh_password
-D dynamic_port_forward
| for /f "delims=" %%d in ('dir /s /b /ad ^| sort /r') do rd "%%d" |
| OWNER GROUP WORLD | |
| r w x r w x r w x | |
| 1 1 1 1 0 1 1 0 1 | |
| 7 5 5 | |
| |______|_______| | |
| | | |
| 755 | |
| r = read | |
| w = write |
Per RFC 1191 leavingcisco.com, a router that returns an ICMP message which indicates "fragmentation needed and DF set" should include the MTU of that next-hop network in the low-order 16 bits of the ICMP additional header field that is labeled "unused" in the ICMP specification RFC 792 leavingcisco.com.
ping www.google.com -f -l 1472
| docker run --rm -d --name mariadb -p 8081:3306 -e MYSQL_ROOT_PASSWORD=wp;MYSQL_DATABASE=wp mariadb:10.3 | |
| docker run -d --rm --link mariadb:mysql --name wp -p 8080:80 wordpress:4.8-apache |
| /* | |
| * Get base URL | |
| * Credit to SpYk3HH | |
| * Ref https://stackoverflow.com/questions/2820723/how-to-get-base-url-with-php | |
| */ | |
| if (!function_exists('base_url')) { | |
| function base_url($atRoot=FALSE, $atCore=FALSE, $parse=FALSE){ | |
| if (isset($_SERVER['HTTP_HOST'])) { | |
| $http = isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off' ? 'https' : 'http'; | |
| $hostname = $_SERVER['HTTP_HOST']; |
sudo apt-get install xz-utils
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz -P ~/
tar -xvf ~/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz -C ~/
cd ~/wkhtmltox/bin/
sudo mv wkhtmltopdf /usr/bin/wkhtmltopdf
sudo mv wkhtmltoimage /usr/bin/wkhtmltoimage