by Ossi Hanhinen, @ohanhi
with the support of Futurice 💚.
Licensed under CC BY 4.0.
/* I use the Stylish extension for this, in addition to Scrum for Trello extensions, with Google Chrome browser */ | |
/* explicit labels */ | |
body .list-card-labels { | |
float: right; | |
top: -2px; | |
right: -2px; | |
max-width: 200px; | |
margin: 0; |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# Symfony2 URLs begins with app or admin/dashboard | |
RewriteRule ^app/ app.php [QSA,L] | |
RewriteRule ^admin/dashboard app.php [QSA,L] | |
# Others requests are redirected to Wordpress | |
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$ |
Replace TCP, application layer comm framework.
instantwebp2p - node fork that supports UDT. congestion control - optimal usage of bandwidth flow control - avoid overwhelming the receiver. window based - no packets in flight
... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
As William Durand was recently explaining in his SOS, he "didn't see any other interesting blog post about REST with Symfony recently unfortunately". After spending some long hours to implement an API strongly secured with oAuth, I thought it was time for me to purpose my simple explanation of how to do it.
You might have already seen some good explanation of how to easily create a REST API with Symfony2. There are famous really good bundles a.k.a. :
Mosh (mobile shell) is a gift from the Gods(tm). Anyone with spotty internet or wireless connection has suffered the pain of a lost SSH session. Sure, one can fire up screen
(or tmux
as the kids are using these days), but that's an extra step and you are still using the SSH protocol.
I'm not here to tout the benefits of Mosh, you came here to open it up in your firewall.
/etc/firewalld/services/mosh.xml
firewall-cmd --add-service=mosh --permanent
firewall-cmd --reload
If you tend to have a lot of sessions (not recommended), you can increase the ports, but the default should be fine for most applications.
<?php | |
namespace igorw\lusp; | |
// all functions return a pair of [val, env] | |
function evaluate($expr, $env = []) { | |
if (is_string($expr)) { | |
if (is_numeric($expr)) { | |
$val = (float) $expr; |
<?php | |
register_tick_function(function() { | |
$bt = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1); | |
$last = reset($bt); | |
$info = sprintf("%s +%d\n", $last['file'], $last['line']); | |
file_put_contents('/tmp/segfault.txt', $info, FILE_APPEND); | |
// or | |
// file_put_contents('php://output', $info, FILE_APPEND); | |
}); |