Sometimes some websites require https to work. This can be useful in those cases.
This has been tested with XAMPP (PHP 7.0.8) on Windows 7. Please see the Reference links at the end if in confusion about some step.
Open:
C:\xampp\php\php.ini
| There's a problem that you run into right away: you can't put a command line command, with arguments, | |
| into the path to git executable box. | |
| So putting something like bash.exe -c "git %*" isn't going to work. I wrote a small shell script that | |
| fixes this, for both 32-bit and 64-bit systems. | |
| @echo off | |
| If %PROCESSOR_ARCHITECTURE% == x86 ( | |
| "C:\Windows\sysnative\bash.exe" -c "git %*" | |
| ) Else ( |
| <?php | |
| if (!function_exists('interface_exists')) { | |
| die('PHP version too old'); | |
| } | |
| $throwables = listThrowableClasses(); | |
| $throwablesPerParent = splitInParents($throwables); | |
| printTree($throwablesPerParent); | |
| if (count($throwablesPerParent) !== 0) { | |
| die('ERROR!!!'); |
Instructions to obtain ZSH on a windows environment, without the input funny business presented by some other attempted solutions.
The final result is ZSH running on a mintty terminal, emulated by cygwin, and being handled by the popular cmder.
For the benefit of myself and others. I've already followed these instructions twice. It took me hours to figure all this out, maybe someone else can save a few.
This gist assumes you are migrating an existing site for www.example.com — ideally WordPress — to a new server — ideally Ubuntu Server 16.04 LTS — and wish to enable HTTP/2 (backwards compatibile with HTTP/1.1) with always-on HTTPS, caching, compression, and more. Although these instructions are geared towards WordPress, they should be trivially extensible to other PHP frameworks, other FastCGI backends, and even non-FastCGI backends (using proxy in lieu of fastcgi in the terminal Caddyfile stanza).
Quickstart: Use your own naked and canonical domain names instead of example.com and www.example.com and customize the Caddyfile and VCL provided in this gist to your preferences!
These instructions target Varnish Cache 4.1, PHP-FPM 7.0, and Caddy 0.10. (I'm using MariaDB 10.1 as well, but that's not relevant to this guide.)
This is a guide for Scala and Java development on Windows, using Windows Subsystem for Linux, although a bunch of it is applicable to a VirtualBox / Vagrant / Docker subsystem environment. This is not complete, but is intended to be as step by step as possible.
Read the entire Decent Security guide, and follow the instructions, especially:
| Run, %USERPROFILE%\AppData\Local\slack\Update.exe --processStart "slack.exe", , Normal | |
| WinWait, ahk_exe slack.exe | |
| Loop, 50 | |
| { | |
| WinHide, ahk_exe slack.exe | |
| Sleep, 200 | |
| } |
| <?php | |
| if (!function_exists('timezone_list')) { | |
| function timezone_list() | |
| { | |
| static $regions = [ | |
| DateTimeZone::AFRICA, | |
| DateTimeZone::AMERICA, | |
| DateTimeZone::ANTARCTICA, | |
| DateTimeZone::ASIA, |
| <?php | |
| function wind_cardinals($deg) { | |
| $cardinalDirections = array( | |
| 'N' => array(348.75, 360), | |
| 'N' => array(0, 11.25), | |
| 'NNE' => array(11.25, 33.75), | |
| 'NE' => array(33.75, 56.25), | |
| 'ENE' => array(56.25, 78.75), | |
| 'E' => array(78.75, 101.25), | |
| 'ESE' => array(101.25, 123.75), |