This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim | |
:set number | |
:syn on | |
~/.vimrc: https://github.com/danielkraic/dotfiles/blob/master/vimrc | |
## files | |
vim file | |
vim +10 file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
rsyslog config: /etc/rsyslog.d/my-sample.conf: | |
$template AppLogFormat, "%TIMESTAMP:::date-pgsql%%TIMESTAMP:27:32:date-rfc3339%(%syslogseverity-text%)%msg%\n" | |
if $app-name == 'my-sample-app' then -/var/log/my-sample-app/app.log;AppLogFormat | |
& ~ | |
""" | |
from __future__ import print_function |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <sstream> | |
#include <benchmark/benchmark.h> | |
using namespace std; | |
static void BM_bench01(benchmark::State& st) { | |
while (st.KeepRunning()) { | |
std::stringstream s; | |
for (size_t i = 0; i < st.range(0); i++) { |
NewerOlder