Skip to content

Instantly share code, notes, and snippets.

diff --git a/CMake/Documentation.cmake b/CMake/Documentation.cmake
index 1df0960a4..11aee2f8a 100644
--- a/CMake/Documentation.cmake
+++ b/CMake/Documentation.cmake
@@ -38,6 +38,8 @@ find_path(DOCBOOK_XSL manpages/docbook.xsl
${CMAKE_INSTALL_PREFIX}/share/xml/xsl/docbook-xsl
# FreeBSD
${CMAKE_INSTALL_PREFIX}/share/xsl/docbook/
+ # Brew
+ /usr/local/var/homebrew/linked/docbook-xsl/docbook-xsl
#!/bin/bash
set -o nounset
set -o pipefail
GITHUB_ORG=..
GITHUB_API_USER=..
# GITHUB_TOKEN=..
BRANCH_NAME=..
@jayvdb
jayvdb / [email protected]
Last active June 6, 2021 01:26 — forked from bvigueras/[email protected]
clang-format version 6 (6.0.1) formula for brew
class ClangFormatAT6 < Formula
desc "Formatting tool for C/C++/Java/JavaScript/Objective-C/Protobuf"
homepage "https://releases.llvm.org/6.0.1/tools/clang/docs/ClangFormat.html"
version "6.0.1"
if MacOS.version >= :sierra
url "https://releases.llvm.org/6.0.1/llvm-6.0.1.src.tar.xz"
sha256 "b6d6c324f9c71494c0ccaf3dac1f16236d970002b42bb24a6c9e1634f7d0f4e2"
else
url "http://releases.llvm.org/6.0.1/llvm-6.0.1.src.tar.xz"
@jayvdb
jayvdb / RefreshEnv.sh
Last active February 4, 2022 07:01
chocolatey RefreshEnv for bash
function refreshenv
{
powershell -NonInteractive - <<\EOF
Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
Update-SessionEnvironment
# Round brackets in variable names cause problems with bash
Get-ChildItem env:* | %{
if (!($_.Name.Contains('('))) {
@jayvdb
jayvdb / regency_code_comparison.py
Last active February 20, 2018 04:58
Indonesian Regency code comparison
"""
Indonesia regency code comparison.
Provinces differ for two codes, 90s, covering Papua and Papua Barat.
More information provinces at:
https://gitlab.com/ciptamedia/ciptamedia-dev.gitlab.io/issues/104#note_59625585
This script is to compare the regencies to determine how much they overlapped.
"""
@jayvdb
jayvdb / keybase.md
Last active November 11, 2017 08:59
keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@jayvdb
jayvdb / foo
Created October 28, 2017 05:02
Verifying that "jayvdb.id" is my Blockstack ID. https://onename.com/jayvdb
@jayvdb
jayvdb / missing-license-task.md
Last active December 29, 2021 19:53
Missing license GitHub task

Add a missing license to a repository

Three steps:

  1. Find a repository without a LICENSE or LICENSE.md file.
  2. Determine the most appropriate license for the repository.
  3. Create a pull request adding a LICENSE or LICENSE.md file.

@jayvdb
jayvdb / generate-multiple-new-file-squashes.sh
Last active September 26, 2017 00:35
Generate git-rebase-todo-list to squash similar commits
# Warning: Due to child_hash optimisation this doesnt support merges
# Usable with GIT_EDITOR='touch'
# TODO: Create a better GIT_EDITOR command that
# strips only blank lines in commit body
# TODO: Support merges
# different levels of merging:
author_tag_format="%ae"
same_author_day_tag_format="%ae-%ad"