Skip to content

Instantly share code, notes, and snippets.

Avatar
🚲
riding

Fernando Meyer fmeyer

🚲
riding
View GitHub Profile
View tsan.go
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
// This program produced false race reports when run under the C/C++
// ThreadSanitizer, as it did not understand the synchronization in
// the Go code.
View gist:7c5f05eb90d1a367d18018fecb2b5275
##### ../misc/cgo/testsanitizers
--- FAIL: TestShared (0.03s)
--- FAIL: TestShared/tsan_shared (2.19s)
cshared_test.go:71: `/tmp/TestShared464897178/tsan_shared` exited with exit status 66
==================
WARNING: ThreadSanitizer: data race (pid=146300)
Write of size 8 at 0x7fc3bfc95c10 by thread T1:
#0 pthread_attr_getstacksize <null> (tsan_shared+0x00000041d5c2)
#1 x_cgo_init <null> (libtsan_shared.so+0x000000098a15)
View ddg-shortcode.html
<center>
{{ if .IsNamedParams }}
{{- $site := .Get "site" -}}
{{- $name := .Get "name" -}}
{{- $domains := split $site "," -}}
{{- $domains := apply $domains "printf" "site:%s" "." -}}
{{- $domains := delimit $domains " || " -}}
{{- $domains := printf " ( %s )" $domains -}}
@fmeyer
fmeyer / content.md
Created May 7, 2020
Gist from Drafts
View content.md

Werfqwerqwe

View keybase.md

Keybase proof

I hereby claim:

  • I am fmeyer on github.
  • I am fmeyer (https://keybase.io/fmeyer) on keybase.
  • I have a public key ASACZeH6C6IwHYvOSvYXk71kOPmjafmtEmGpzf7NvrvatQo

To claim this, I am signing this object:

@fmeyer
fmeyer / logbook
Last active May 28, 2020
Renders a Github Wiki with the content and entries from a log book
View logbook
#!/bin/bash
cd ~/code/logdata.wiki/ || exit
TS=$(date +'%H:%M:%S')
DS=$(date +'%Y-%m-%d')
YEAR=$(date +'%Y')
CURRENT_LOG_DIR="logs/$YEAR/"
# check if current log year exists, creates if no
if [ ! -d "$CURRENT_LOG_DIR" ]; then
mkdir -p "$CURRENT_LOG_DIR"
fi
@fmeyer
fmeyer / thing.js
Last active Jun 3, 2021
Unfollow everyone on linkedin
View thing.js
// Go to here https://www.linkedin.com/feed/following/?filterType=connection
// open the chrome dev tools console
// paste the following
// go grab a cup of tea
// get rid of all life coach from linkedin
var buttons = $('button'), interval = setInterval(function() {
var btn = $('.is-following');
console.log('Clicking:', btn);
btn.click();
View cryto01.py
# from cryptography
# key = None
# iv = None
#
# cipher = None
# encryptor = None
# ciphertext = None
# decryptor = None
# plaintext = None
View macros.h
/**
MACROS
macros.h
Purpose: A collection of commonly used Useful C macros.
@author Shubham Ramdeo
@version 0.2
Released under MIT LICENSE (see LICENSE.txt)
*/
View gist-backup.sh
#!/usr/bin/env bash
#
# gist-backup
#
# Backs up all your public and private gists
# to the given directory.
#
# Example:
#
# gist-backup ~/gist-backups