Instantly share code, notes, and snippets.
This page provides a full overview of PHP'sSessionHandlerlife-cycle - this was generated by a set of test-scripts, in order to provide an exact overview of when andwhat you can expect will be called in your customSessionHandler implementation.
Each example is a separate script being run by a client with cookies enabled.
To the left, you can see the function being called in your script, and to the right, you can see theresulting calls being made to a custom session-handler registed usingsession_set_save_handler().
| <?php | |
| namespaceApp; | |
| useIlluminate\Database\Eloquent\Collection; | |
| class CategoriesOps | |
| { | |
| protectedCollection$inputData; | |
| protectedCollection$rootParents; |
This gist had a far larger impact than I imagined it would, and apparently people are still finding it, so a quick update:
- TC39 is currently moving forward with a slightly different version of TLA, referred to as 'variant B', in which a module with TLA doesn't blocksibling execution. This vastly reduces the danger of parallelizable work happening in serial and thereby delaying startup, which was the concern that motivated me to write this gist
- In the wild, we're seeing
(async main(){...}())as a substitute for TLA. This completely eliminates the blocking problem (yay!) but it's less powerful, and harder to statically analyse (boo). In other words the lack of TLA is causing real problems - Therefore, a version of TLA that solves the original issue is a valuable addition to the language, and I'm in full support of the current proposal,which you can read here.
I'll leave the rest of this document unedited, for archaeological
| $time="$(get-date-f yyyy-MM-dd__HH-mm)" | |
| New-Item-Path"E:\pingresults"-Name"$time.txt"-ItemType"file" | |
| Test-Connection-Count9999-ComputerNamegoogle.com|Format-Table@{Name='TimeStamp';Expression= {Get-Date } }, Address, Latency, Status|Tee-Object-file"E:\pingresults\$time.txt"-append |
| #!/bin/bash | |
| owner="ownerName" | |
| repo="repoName" | |
| GITHUB_API_TOKEN="PTA with repo permission" | |
| GH_API="https://api.github.com" | |
| GH_REPO="$GH_API/repos/$owner/$repo" | |
| VERSION=$1 | |
| RELEASES="$GH_REPO/releases" | |
| AUTH="Authorization: token$GITHUB_API_TOKEN" |
| ssh -i fileName.pem user@host | |
| PAUSE |
| /* | |
| * Communication Processor Module v2. | |
| * | |
| * This file contains structures and information for the communication | |
| * processor channels found in the dual port RAM or parameter RAM. | |
| * All CPM control and status is available through the CPM2 internal | |
| * memory map. See immap_cpm2.h for details. | |
| */ | |
| #ifdef __KERNEL__ | |
| #ifndef __CPM2__ |