Skip to content

Instantly share code, notes, and snippets.

Avatar

Olexandr Sydorchuk osv

View GitHub Profile
@osv
osv / gist:3deb93a38601aa8c35a1b34a4a95a6af
Created August 8, 2022 10:43 — forked from tthtlc/gist:f44148a7cb4d820bf2d3da64638de68c
Forensic analysis techniques: linux
View gist:3deb93a38601aa8c35a1b34a4a95a6af
http://darksoft.org/webbzr/docs/MyDocs/annotate/head:/Analysis/list.txt?sort=size
Toolset
=======
Tracers:
Function: perf, strace/ltrace
I/O: fatrace, lsof
Profilers:
Function/Tree: perf, valgrind/kcachegrind(slow), google-perftools (low precision)
View nginx.vhost
upstream my-web-app-here {
server 127.0.0.1:8080;
}
server {
listen 80;
listen 443 ssl http2;
listen [::]:80;
listen [::]:443 ssl http2;
View String.prototype.template.js
String.prototype.template = function (object) {
// Andrea Giammarchi - WTFPL License
var
stringify = JSON.stringify,
re = /\$\{(.*?)\}/g,
evaluate = [],
i = 0,
m
;
while (m = re.exec(this)) {