Untuk menentukan role dari user, misalnya apakah di administrator, staff, member, dll
class Rbac {Optional - Set format on save and any global prettier options
npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-config-airbnb-base eslint-plugin-node eslint-config-node
| from mininet.topo import Topo | |
| from mininet.net import Mininet | |
| from mininet.node import Node | |
| from mininet.log import setLogLevel, info | |
| from mininet.cli import CLI | |
| class LinuxRouter( Node ): | |
| """A Node with IP forwarding enabled. | |
| Means that every packet that is in this node, comunicate freely with its interfaces.""" |
| #!/usr/bin/python | |
| """ | |
| hl hr | |
| 7.100 8.100 | |
| | | | |
| 7.1 8.1 | |
| r1--9--r2--10-r3--11-r4--12-r5--13-r6 | |
| 1.1 2.1 3.1 4.1 5.1 6.1 | |
| | | | | | | |
| # creating a virtual Ubuntu (14.04) on AWS EC2 (t2.micro) | |
| # install MPTCP | |
| sudo apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 379CE192D401AB61 | |
| sudo echo -e "\n\n# for MPTCP\ndeb https://dl.bintray.com/cpaasch/deb jessie main\n" >> /etc/apt/sources.list | |
| sudo apt-get update | |
| sudo apt-get install linux-mptcp | |
| # reboot | |
| sudo reboot | |
| # verify |
Magic numbers are the first bits of a file which uniquely identify the type of file. This makes programming easier because complicated file structures need not be searched in order to identify the file type.
For example, a jpeg file starts with ffd8 ffe0 0010 4a46 4946 0001 0101 0047 ......JFIF.....G ffd8 shows that it's a JPEG file, and ffe0 identify a JFIF type structure. There is an ascii encoding of "JFIF" which comes after a length code, but that is not necessary in order to identify the file. The first 4 bytes do that uniquely.
This gives an ongoing list of file-type magic numbers.