- Updated on May 29 to accommodate etcd container not having
/bin/sh
available anymore.
curl -sL https://get.rke2.io | sh
systemctl daemon-reload
systemctl start rke2-server
<?php | |
namespace App\Providers; | |
use App\Encrypter; | |
use Illuminate\Support\Str; | |
use Illuminate\Support\ServiceProvider; | |
class AppServiceProvider extends ServiceProvider | |
{ |
<?php | |
// Simple HTTP static file server using Swoole | |
$host = $argv[1] ?? '127.0.0.1'; | |
$port = $argv[2] ?? 9501; | |
$http = new swoole_http_server($host, $port); | |
// The usage of enable_static_handler seems to produce errors | |
// $http->set([ |
I recently had several days of extremely frustrating experiences with service workers. Here are a few things I've since learned which would have made my life much easier but which isn't particularly obvious from most of the blog posts and videos I've seen.
I'll add to this list over time – suggested additions welcome in the comments or via twitter.com/rich_harris.
Chrome 51 has some pretty wild behaviour related to console.log
in service workers. Canary doesn't, and it has a load of really good service worker related stuff in devtools.
<?php | |
/** | |
* Created by PhpStorm. | |
* User: Muhammad | |
* Date: 05/07/2016 | |
* Time: 01:20 PM | |
*/ | |
add_filter('get_user_metadata', 'decrypt_user_meta',10,4); |
It "types" the contents of the clipboard.
Why can't you just paste the contents you ask? Sometimes pasting just doesn't work.
The Windows version is written in AutoHotKey and easily compiles to an executable. It's a single line script that maps Ctrl-Shift-V to type the clipboard.