Skip to content

Instantly share code, notes, and snippets.

View cod3monk's full-sized avatar

Julian cod3monk

  • University of Erlangen-Nuremberg
  • Germany
View GitHub Profile
# asmbench -p 32 -t 1 -vvv 'add {src:i64:r}, {dstsrc:i64:r}'
# Throughput Benchmark
.section __TEXT,__text,regular,pure_instructions
.macosx_version_min 10, 14
.globl _test
.p2align 4, 0x90
_test:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
@cod3monk
cod3monk / build gpgmai.md
Created July 17, 2019 21:27
How to build GPGMail without Trial/License Foo

Instructions for Mojave:

  1. Go to https://gpgtools.org/ and download the source code or checkout the mojave branch from [email protected]:GPGTools/GPGMail.git
  2. Open GPGMail/GPGMail.xcodeproj with XCode and do not convert
  3. File -> Project Preferences -> Shared Project Settings -> Build System, set to Legacy Build System
  4. Navigate to GPGMail/Classes/Logic/GPGMailBundle.m, hasActiveContractOrActiveTrial and add make it to always return true
  5. Build
  6. Restart Mail.app
  7. in Mail go to Mail -> Preferences -> General -> Manage Plug-Ins... and enable GPGMail.mailbundle
  8. Apply and restart...
# General remarks shown on all pages refering to that stencil
machine_files:
SkylakeSP_Gold-6148:
commit: c530665 # commit of SkylakeSP_Gold-6148.yml machine file
remark: The correct way to measure L2-Memory and L3-Memory traffic is unknown, predictions by kerncraft are not accurate.
author: JH
state: so-so # good/so-so/bad/unknown
# General comments shown on all pages refering to that stencil
stencils:
#!/usr/bin/env python3
import sys, re, webbrowser, time, random as r
from urllib.request import urlopen
url = "http://icpc.cs.fau.de/anmeldung.php"
def joined_icpc(team):
p = urlopen(url).read().decode('u8')
return (team in re.findall('D>\n([^<>]+)</T', p))
if __name__ == '__main__':
/* By Paul Hsieh (C) 2004, 2005. Covered under the Paul Hsieh derivative
license. See:
http://www.azillionmonkeys.com/qed/weblicense.html for license details.
http://www.azillionmonkeys.com/qed/hash.html */
#include <stdint.h>
#define NULL (void*)0
#undef get16bits
#if (defined(__GNUC__) && defined(__i386__)) || defined(__WATCOMC__) \
|| defined(_MSC_VER) || defined (__BORLANDC__) || defined (__TURBOC__)