This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
| PLDT myDSL, Fiber Home, ULTERA Username and Admin | |
| Router: Fiberhome AN5506-04-FA PLDDTHOMEFibr modem | |
| (debug switch) | |
| (step1) | |
| IP Address: 192.168.1.1/fh | |
| Username: fiberhomesuperadmin | |
| Password: sfuhgu |
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
| <?php | |
| ini_set('display_errors', 1); | |
| error_reporting(E_ALL); | |
| function dump(...$var) { | |
| echo "<pre style='background-color:000000; color:lime;'>"; | |
| foreach ($var as $key => $value) { | |
| var_dump($value); | |
| } | |
| echo "</pre>"; |
| #for Apache 2.4 | |
| SetEnvIf Request_URI ^/tracking/logs auth=1 | |
| SetEnvIf Request_URI ^/anotherdir/logs auth=1 | |
| AuthName "Please login" | |
| AuthType Basic | |
| AuthUserFile "/srv/http/.htpwd" | |
| # first, allow everybody | |
| Order Allow,Deny |
| # Start the old vagrant | |
| $ vagrant init centos-6.3 | |
| $ vagrant up | |
| # You should see a message like: | |
| # [default] The guest additions on this VM do not match the install version of | |
| # VirtualBox! This may cause things such as forwarded ports, shared | |
| # folders, and more to not work properly. If any of those things fail on | |
| # this machine, please update the guest additions and repackage the | |
| # box. |
| ARCHLINUX | |
| # start dhcpd service | |
| systemctl enable dhcpcd | |
| # update mirrors | |
| pacman-mirrors -g | |
| # base base-devel | |
| pacman -S --needed base-devel |
| #!/bin/bash | |
| # uncomment for bumblebee | |
| # vblank_mode=0 LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1' optirun -b primus steam | |
| # uncomment for optimus | |
| vblank_mode=0 LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1' steam |
| Section "Device" | |
| Identifier "intel" | |
| Driver "modesetting" | |
| BusID "00:02:0" | |
| Option "DRI" "3" | |
| EndSection |
| <?php | |
| const SECONDS_PER_YEAR = 31536000; | |
| const SECONDS_PER_MONTH = 2592000; | |
| const SECONDS_PER_WEEK = 604800; | |
| const SECONDS_PER_DAY = 86400; | |
| const SECONDS_PER_HOUR = 3600; | |
| const SECONDS_PER_MINUTE = 60; | |
| if (!function_exists('secondsToDay')) { |
| <?php | |
| class MultiThreading { | |
| protected $function; | |
| protected $data; | |
| protected $process_ids; |