Skip to content

Instantly share code, notes, and snippets.

View danyspin97's full-sized avatar

Danilo Spinella danyspin97

View GitHub Profile
exit # Dont run this as a script
# LLVM seems to work great on Musl, there only seems some build errors
# when trying to build the sanitizers. So sanitizers have been disabled.
# This is rougly based on this:
# https://wiki.musl-libc.org/building-llvm.html
# But updated for LLVM 8
# We are also focusing on making a GNU-less toolchain, as there is
# no libgcc and no libstdc++, instead we favor LLVM's own compiler-rt
@allenyllee
allenyllee / install_tools.sh
Last active July 7, 2024 11:34
mount vhdx in linux
#!/bin/bash
# install qemu utils
sudo apt install qemu-utils
# install nbd client
sudo apt install nbd-client
@skyzyx
skyzyx / single.html
Last active February 27, 2023 04:21
Hugo Partial for Generating the Table of Contents
...
{{- partial "toc.html" . -}}
...
@xeoncross
xeoncross / hugo.list.tests.html
Created August 14, 2017 22:08
Different ways to show hugo (gohugo) post-list, posts by tags, posts by subject, nested posts, etc...
{{ partial "head.html" . }}
<body>
{{ partial "nav.html" . }}
<main>
<article id="content">
<!-- <pre>{{ printf "%#v" . }}</pre> -->
@akatrevorjay
akatrevorjay / git-fshow
Last active May 19, 2024 01:39 — forked from junegunn/gist:f4fca918e937e6bf5bad
Browsing git commit history with fzf
#!/bin/zsh
# git-fshow - git commit browser
#
# https://gist.github.com/akatrevorjay/9fc061e8371529c4007689a696d33c62
# https://asciinema.org/a/101366
#
git-fshow() {
local g=(
git log
@dietmarkuehl
dietmarkuehl / value-type-checklist.md
Last active July 4, 2017 03:19
Value Type Checklist

Value Types

This page describes what should be considered when creating a value type. It provides a quick checklist which can be used as a reminder of the various considerations. It also contains an explanation of the why the various consideration are important and possible implementatation strategies.

There are many places where allocators are mentioned. The allocators mention on this page are generally refering to the base class

/*
* AsynchronousPictureLoader.cpp
*
* Created on: 13.08.2014
* Author: ruben.torres
*/
#include <curl/curl.h>
#include <thread>
#include "AsynchronousPictureLoader.h"
@nazgee
nazgee / main.cpp
Created April 16, 2012 07:52
linux file descriptors passing between processes
#include <errno.h>
#include <string.h>
#include <iostream>
#include <sys/types.h> /* See NOTES */
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>