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
This file contains hidden or 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
/* | |
* 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']; |
This file contains hidden or 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
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 |
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.
- http://www.cisco.com/c/en/us/support/docs/ip/generic-routing-encapsulation-gre/25885-pmtud-ipfrag.html
- https://www.reddit.com/r/networking/comments/1ikhns/need_help_with_wireshark_to_identify_network/
ping www.google.com -f -l 1472
This file contains hidden or 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
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 |
putty.exe [email protected] -P 2222 -pw mypasswd -D 1234
-P
port_number
-pw
ssh_password
-D
dynamic_port_forward
This file contains hidden or 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
for /f "delims=" %%d in ('dir /s /b /ad ^| sort /r') do rd "%%d" |