Skip to content

Instantly share code, notes, and snippets.

View mmarchini's full-sized avatar
🛑
taking a break

mary marchini mmarchini

🛑
taking a break
View GitHub Profile
@mmarchini
mmarchini / bash_completion.sh
Created February 6, 2015 19:52
User-defined bash_completion
# ~/.bash_completion
USER_BASH_COMPLETION_COMPAT_DIR="$HOME/.bash_completion.d/"
readonly USER_BASH_COMPLETION_COMPAT_DIR
# source compat completion directory definitions
if [[ -d $USER_BASH_COMPLETION_COMPAT_DIR && -r $USER_BASH_COMPLETION_COMPAT_DIR && \
-x $USER_BASH_COMPLETION_COMPAT_DIR ]]; then
for i in $(LC_ALL=C command ls "$USER_BASH_COMPLETION_COMPAT_DIR"); do
i=$USER_BASH_COMPLETION_COMPAT_DIR/$i
This file has been truncated, but you can view the full file.
execve("/usr/bin/tmux", ["tmux"], [/* 21 vars */]) = 0
brk(NULL) = 0x7fffbd700000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8917ad0000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=24795, ...}) = 0
mmap(NULL, 24795, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8917ac9000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
@mmarchini
mmarchini / untitled
Created May 19, 2017 23:50
vagrant up WSL error
[23:41:37]  project / (master *)
> vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'ubuntu/xenial64' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 8000 (guest) => 8001 (host) (adapter 1)
@mmarchini
mmarchini / Makefile
Last active September 25, 2017 20:34
Minimal ELF Shared Library for Linux x64_64, written entirely in assembly
all:
nasm -f bin -o small-raw.so small-raw.asm
chmod +x small-raw.so
@mmarchini
mmarchini / debug.log
Created May 23, 2017 00:52
Vagrant up WSL Problem debug log
INFO global: Vagrant version: 1.9.5
INFO global: Ruby version: 2.2.5
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_WSL_ENABLE_WINDOWS_ACCESS="1"
INFO global: VAGRANT_OLD_ENV_PWD="/home/matheus/workspace/sthima/netell"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_OLD_ENV_TERM="xterm-256color"
INFO global: VAGRANT_OLD_ENV_NAME="DESKTOP-SR404CD"
INFO global: VAGRANT_OLD_ENV_LESSOPEN="| /usr/bin/lesspipe %s"
INFO global: VAGRANT_INSTALLER_ENV="1"
@mmarchini
mmarchini / demo.py
Last active October 23, 2017 16:53
Python StapSDT example
from time import sleep
import stapsdt
# Create a Provider, which we'll use to register probes
provider = stapsdt.Provider("pythonapp")
# Register your first probe with two arguments by passing its types
probe = provider.add_probe(
"firstProbe", stapsdt.ArgTypes.uint64, stapsdt.ArgTypes.int32)
@mmarchini
mmarchini / index.js
Last active October 24, 2017 15:09
Node USDT example
// Import usdt module
const USDT = require("usdt");
// Create a Provider, which we'll use to register probes
const provider = new USDT.USDTProvider("nodeProvider");
// Register your first probe with two arguments by passing its types
const probe1 = provider.addProbe("firstProbe", "int", "char *");
// Enable provider (needed to fire probes later)
@mmarchini
mmarchini / node_debug_support.cc
Created December 13, 2017 12:44
Node Debug Support
//
// This file is generated by ./tools/gen-postmortem-metadata.py. Do not edit directly.
//
// Need to import standard headers before redefining private, otherwise it
// won't compile
#include <algorithm>
#include <array>
#include <atomic>
@mmarchini
mmarchini / chrome-devtools-heapsnapshot-Loading-benchmark.md
Last active January 4, 2018 19:11
Chrome DevTools Heap Snapshot Loading Benchmark

Chrome DevTools Heap Snapshot Loading Benchmark

Benchmark of the Chrome DevTools to determine if it can load large Heap Snapshots. Specs of the environment used are available at Environment Specs.

Results

Time to Load is an approximate value, as there's no way (that I'm aware of) to measure the loading time of a heap snapshot in Chrome DevTools.

@mmarchini
mmarchini / debug.log
Created May 23, 2017 00:58
Vagrantfile error problem on WSL
INFO global: Vagrant version: 1.9.5
INFO global: Ruby version: 2.2.5
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_WSL_ENABLE_WINDOWS_ACCESS="1"
INFO global: VAGRANT_OLD_ENV_PWD="/home/matheus/workspace/sthima/netell"
INFO global: VAGRANT_OLD_ENV_LESSOPEN="| /usr/bin/lesspipe %s"
INFO global: VAGRANT_OLD_ENV_VAGRANT_WSL_ENABLE_WINDOWS_ACCESS="1"
INFO global: VAGRANT_OLD_ENV_LANG="en_US.UTF8"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_OLD_ENV_SSH_AUTH_SOCK="/tmp/ssh-wlHqbEDYEREC/agent.756"