Let's assume you have a macvlan interface running.
#$ docker network inspect test_loc-macvlan
[| #!/bin/bash | |
| ps -ylC apache2 --sort:rss | awk '{sum+=$8; ++n} END {print "Tot="sum"("n")";print "Avg="sum"/"n"="sum/n/1024"MB"}' |
| #!/bin/bash | |
| # | |
| # copy this into /etc/profile.d/instance-name-tag.sh | |
| # | |
| # you will need: | |
| # - curl, jq, and aws cli installed | |
| # - an IAM role that gives the EC2 instance access to describe tags | |
| # |
| # maximum capability of system | |
| user@ubuntu:~$ cat /proc/sys/fs/file-max | |
| 708444 | |
| # If this limit is too low, you can increase the available limit to say 200000 | |
| user@ubuntu:~$ sudo vim /etc/sysctl.conf | |
| # add the following line to it | |
| fs.file-max = 200000 |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| /** | |
| * Get the char code from a multi byte char | |
| * | |
| * 2/3 times faster than the old implementation | |
| * | |
| * @param $mb_char string Unicode Multibyte Char String | |
| * | |
| * @return int |
| <?php | |
| /** | |
| * @author Domenico Lupinetti [email protected] | |
| * Date: 11/04/16 | |
| * Time: 19.52 | |
| * | |
| * The try block is executed but the comparison are made on Exporter::toArray() | |
| * and if the object has no properties $expected and $actual are equals but refers to two different instances | |
| * ( tried with PDO as example ) | |
| * |