Skip to content

Instantly share code, notes, and snippets.

@ErikAugust
ErikAugust / spectre.c
Last active April 15, 2024 13:55
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
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active May 3, 2024 11:35
Hyperlinks in Terminal Emulators
@qnub
qnub / fabfile.py
Created March 25, 2016 09:10
Yandex.Disk shared file download by link
import os
import httplib
import json
import urllib
import urlparse
from fabric.api import execute, local, run, lcd, cd, task
@task
@Jarred-Sumner
Jarred-Sumner / comcast.js
Last active September 7, 2022 01:30
Comcast injects this into webpages to show copyright notices
// Comcast Cable Communications, LLC Proprietary. Copyright 2014.
// Intended use is to display browser notifications for critical and time sensitive events.
var _ComcastAlert = (function(){
return {
SYS_URL: '/e8f6b078-0f35-11de-85c5-efc5ef23aa1f/aupm/notify.do'
, dragObj: {zIndex: 999999}
, browser: null
, comcastCheck: 1
, comcastTimer: null
, xmlhttp: null
@extensionsapp
extensionsapp / habrahabr.user.js
Last active November 17, 2017 18:07
Объединение постов Хабрахабр + Geektimes, в одну ленту на Habrahabr.ru
// ==UserScript==
// @name habrahabr-userscript
// @description Объединение постов Хабрахабр + Geektimes, в одну ленту на Habrahabr.ru
// @author ExtensionsApp
// @license MIT
// @version 2.0.18
// @include https://habrahabr.ru/feed/all/*
// @include https://habrahabr.ru/feed/interesting/*
// @include https://habrahabr.ru/all/*
// @grant GM_setValue
@eelsivart
eelsivart / heartbleed.py
Last active April 28, 2024 13:18 — forked from sh1n0b1/ssltest.py
Heartbleed (CVE-2014-0160) Test & Exploit Python Script
#!/usr/bin/python
# Modified by Travis Lee
# Last Updated: 4/21/14
# Version 1.16
#
# -changed output to display text only instead of hexdump and made it easier to read
# -added option to specify number of times to connect to server (to get more data)
# -added option to send STARTTLS command for use with SMTP/POP/IMAP/FTP/etc...
# -added option to specify an input file of multiple hosts, line delimited, with or without a port specified (host:port)
@joachimjacob
joachimjacob / aspera_DL2
Created January 23, 2013 15:50
Aspera download script
#! /bin/bash
# Batch Download files from NCBI SRA using Aspera ascp on Mac / Linux
# to 'current_folder'/aspera_download
# remove space in 'Aspera\ connect'
# Stéphane Plaisance - VIB-BITS - Jan-2010 v1.0
# updated path to the user copy of the package (2011-02-28) v1.1
# –Q (for adaptive flow control) – needed for disk throttling!
# –T to disable encryption
@PhirePhly
PhirePhly / ISA.txt
Created March 26, 2012 20:42
Intro to the ISA bus by Mark Sokos
THE ISA AND PC/104 BUS
IBM, IBM/XT, IBM PC, and IBM PC AT are registered trademarks of
International Business Machines Corporation.
This file is designed to give a basic overview of the bus found in
most IBM clone computers, often referred to as the XT or AT bus. The
AT version of the bus is upwardly compatible, which means that cards
@dabrahams
dabrahams / private_access.cpp
Created December 28, 2011 17:50
Accessing Private Data
#include <iostream>
// This is a rewrite and analysis of the technique in this article:
// http://bloglitb.blogspot.com/2010/07/access-to-private-members-thats-easy.html
// ------- Framework -------
// The little library required to work this magic
// Generate a static data member of type Tag::type in which to store
// the address of a private member. It is crucial that Tag does not
@Twisol
Twisol / <output>
Created May 5, 2011 03:09
ANSI parser written in C++
FG: 7 BG: 0
Italic: 0
Underline: 0
Strike: 0
Text: this is
FG: 9 BG: 0
Italic: 0
Underline: 0
Strike: 0