start new:
tmux
start new with session name:
tmux new -s myname
global | |
description prod | |
maxconn 7777 # About 54k per connection; 400MB free on this machine. | |
stats socket /var/run/haproxy.stat mode 600 level admin | |
user haproxy | |
group haproxy | |
defaults | |
mode http | |
maxconn 7700 # Should be slightly smaller than global.maxconn. |
<?php | |
if (isset($_GET['ajax'])) { | |
session_start(); | |
$handle = fopen('/private/var/log/system.log', 'r'); | |
if (isset($_SESSION['offset'])) { | |
$data = stream_get_contents($handle, -1, $_SESSION['offset']); | |
echo nl2br($data); | |
} else { | |
fseek($handle, 0, SEEK_END); | |
$_SESSION['offset'] = ftell($handle); |
Those are my personal notes on AWS Solution Architect certification preparation. Hope you find them usefull.
To pass AWS certification, you should have:
Digging into a Facebook Worm | |
http://i.imgur.com/zc2A8vJ.png | |
Facebook worms are interesting | |
The following was a link that was shared to me (You probably shouldn't click it) | |
https://www.facebook.com/l.php?u=https%3A%2F%2Fcdn.fbsbx.com%2Fhphotos-xpa1%2Fv%2Ft59.2708-21%2F12447002_1746605272238633_1642381431_n.html%2FV1DE0-9682.html%3Foh%3D8a665fb34c8793a92fd02cceb31d4b01%26oe%3D5718116B%26dl%3D1&h=cAQHPcYE7 |
<!-- | |
In Vue, we use v-model for all form bindings, while | |
Knockout maintains separate binding types, such as | |
textInput, checked, and options. In some cases, | |
such as for an input of type "range", Knockout | |
simply doesn't have an equivalent two-way binding | |
helper and the more verbose value and valueUpdate | |
must be used. | |
--> | |
<div id="app"> |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
#!/bin/bash | |
# Copyright © 2017 Google Inc. | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |