Skip to content

Instantly share code, notes, and snippets.

@snejku
snejku / spectre.c
Created January 4, 2018 16:52 — forked from ErikAugust/spectre.c
Spectre example code
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif
@snejku
snejku / nodejs_deeplog
Created November 4, 2016 00:50
node deep console log
const util = require('util')
console.log(util.inspect(myObject, {showHidden: false, depth: null}))
# host
# /etc/ssh/sshd_config
# GatewayPorts yes
# service ssh restart
# local
$ ssh -R 5000:localhost:5000 host
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')