This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ -z "$XDG_CONFIG_HOME" ]; then | |
XDG_CONFIG_HOME="$HOME/.config" | |
fi | |
if [ -z "$XDG_DATA_HOME" ]; then | |
XDG_DATA_HOME="$HOME/.local/share" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python3 | |
# coding: utf-8 | |
# Author: Marc-André Lureau <[email protected]> | |
import sys | |
import os | |
import atexit | |
from importlib import invalidate_caches | |
from importlib.machinery import FileFinder, SourceFileLoader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://clang.llvm.org/docs/ClangFormat.html | |
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html | |
--- | |
Language: Cpp | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveAssignments: false # although we like it, it creates churn | |
AlignConsecutiveDeclarations: false | |
AlignEscapedNewlinesLeft: true | |
AlignOperands: true | |
AlignTrailingComments: false # churn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://clang.llvm.org/docs/ClangFormat.html | |
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html | |
--- | |
Language: Cpp | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveAssignments: false # although we like it, it creates churn | |
AlignConsecutiveDeclarations: false | |
AlignEscapedNewlinesLeft: true | |
AlignOperands: true | |
AlignTrailingComments: false # churn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://clang.llvm.org/docs/ClangFormat.html | |
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html | |
--- | |
Language: Cpp | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveAssignments: false # although we like it, it creates churn | |
AlignConsecutiveDeclarations: false | |
AlignEscapedNewlinesLeft: true | |
AlignOperands: true | |
AlignTrailingComments: false # churn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
Language: Cpp | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveAssignments: false # although we like it, it creates churn | |
AlignConsecutiveDeclarations: false | |
AlignEscapedNewlinesLeft: true | |
AlignOperands: true | |
AlignTrailingComments: false # churn | |
AllowAllParametersOfDeclarationOnNextLine: true | |
AllowShortBlocksOnASingleLine: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
Language: Cpp | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveAssignments: false # although we like it, it creates churn | |
AlignConsecutiveDeclarations: false | |
AlignEscapedNewlinesLeft: true | |
AlignOperands: true | |
AlignTrailingComments: false # churn | |
AllowAllParametersOfDeclarationOnNextLine: true | |
AllowShortBlocksOnASingleLine: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 6cba14958b198cd9b34d653cab633cdcbe471fbc | |
Author: Marc-André Lureau <[email protected]> | |
Date: Fri Sep 4 21:18:39 2015 +0200 | |
Add object_class_property_add_link | |
Signed-off-by: Marc-André Lureau <[email protected]> | |
diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c | |
index 1556c9c..c78c7fb 100644 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -x | |
trap 'kill 0' EXIT | |
qemu_start() { | |
local port=$1 | |
qemu-system-x86_64 -m 1024 -vga qxl -spice addr=0.0.0.0,tls-port=$port,disable-ticketing,x509-dir=. -monitor unix:qemu-$port,server,nowait |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static gint msi_base64_decode(gint x) | |
{ | |
if (x < 10) | |
return x + '0'; | |
if (x < (10 + 26)) | |
return x - 10 + 'A'; | |
if (x < (10 + 26 + 26)) | |
return x - 10 - 26 + 'a'; | |
if (x == (10 + 26 + 26)) | |
return '.'; |