Posts

How to Get The Full URL and Parts In PHP

<?php function getFullURL ($strip = false) { // getFullURL() : gets the full URL // PARAM $strip - strip away the query and hash portion // THE PROTOCOL $url = ( isset ($_SERVER[ 'HTTPS' ]) ? "https://" : "http://" ); // HOST $url .= $_SERVER[ 'HTTP_HOST' ]; // SET THE PORT ONLY IF IT IS NOT HTTP/HTTPS if ($_SERVER[ 'SERVER_PORT' ]!= 80 && $_SERVER[ 'SERVER_PORT' ]!= 443 ) { $url .= ":" . $_SERVER[ 'SERVER_PORT' ]; } // THE PATH, FILE NAME, AND QUERY $url .= $_SERVER[ 'REQUEST_URI' ]; // STRIP QUERY AND HASH if ($strip) { $url = strtok($url, '?' ); $url = strtok($url, '#' ); } // THE ENTIRE URL return $url; } ?> Credit: https://code-boxx.com/php-url-parts/

Remove your User Folder from Navigation Panel

Run regedit Go to HKEY_CLASSES_ROOT\CLSID\{59031a47-3f72-44a7-89c5-5595fe6b30ee}\ShellFolder Change Attributes to f094012d ( Change owenr/permission if needed) Delete PinToNameSpaceTree (if there)  Go to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes\CLSID\{59031a47-3f72-44a7-89c5-5595fe6b30ee}\ShellFolder Repeat step above

Windows 10 SSH Server

Image
Open the Settings app and go to Apps -> Apps & features. On the right, click Manage optional features. On the next page, click the button Add a feature. In the list of features, select OpenSSH Server and click on the Install button. Click the back arrow at top left and you should see OpenSSH Server is being installed. Wait for it to finished installing. Open Services and look for OpenSSH Server Click Start on the left pane to start the service. If the service can be start, double click on it. On the General tab select Startup Type as Automatic or Automatic Delayed and click OK. This will start the service automatically when you start Windows.   Don't forget to do port forwarding in your router to access the service from outside Credit: https://winaero.com/blog/enable-openssh-server-windows-10

Windows 10 built in VPN

Image
DISCLAIMER: The Point-to-Point Tunneling Protocol (PPTP) is an obsolete method for implementing virtual private networks. PPTP has many well known security issues.  Server setup: Take note that, beside using port 1723 for PPTP protocol, Windows built in VPN server apparently will use port 443 as well which is the same port as HTTPS. If you running a web server using that port, you might need to change its' port. You need to have your internal IP to be in different subnet between your VPN server and client. For example if the client IP in the range of 192.168.1.x, the server IP should be in 192.168.2.x. Of course you can use totally different IP class like 10.x.x.x for either server or client as long there are in different subnet. This can be setup in your router, or manually in your network adapter. You should get a fix domain name for your server. You can register for free dynamic DNS for your VPN server.   Open Control Panel, Network and Sharing Center. Click on Ch...

How to clone a Git branch

git clone --branch --single-branch [ ]

MYTV transmitter list

Image
  If anybody know where can get this list, put in comment below. Thanks. Credit: http://mytvdvb-t2.blogspot.com/2017/01/cara-cara-untuk-cari-dan-simpan-signal.html

Remove some context menu

Use Winaero Tweaker For iDrive and MEGASync, edit registry, go to Computer\HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers\Offline Files and remove it from there. Credit: https://www.howtogeek.com/howto/windows-vista/how-to-clean-up-your-messy-windows-context-menu