Skip to content

Instantly share code, notes, and snippets.

@jayvdb
jayvdb / user-config.py
Created August 8, 2014 20:51
pywikibot-core travis user-config.py
import os
family = os.environ.get('FAMILY', 'wikipedia')
mylang = os.environ.get('LANGUAGE', 'en')
if os.environ.get('TRAVIS_REPO_SLUG', None) == 'wikimedia/pywikibot-core':
usernames[family][mylang] = 'Pywikibot-test'
usernames['wikipedia']['en'] = 'Pywikibot-test'
password_file = os.path.expanduser('~/.pywikibot/passwordfile')
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 / 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 / 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 / clang-format@6.rb
Last active June 6, 2021 01:26 — forked from bvigueras/clang-format@6.rb
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 / plsql_frameworks.md
Last active April 2, 2019 05:00
PLSQL frameworks

Every PL/SQL application needs logging and a test framework, and a few other features like assertion, exception and collections.

This is an analsys of the existing frameworks.

APEX logging

APEX has the following debugging packages:

APEX_APPLICATION

@jayvdb
jayvdb / NOTES.txt
Last active March 7, 2018 16:19
Project Euler translations
Current translation websites:
* http://pe-cn.github.io/ - Chinese - Github.io (Markdown + HTML problems) - https://github.com/PE-CN/PE-CN.github.io (mostly by https://github.com/sx349)
* https://marhale3.github.io/ - Persian - Github.io (Markdown + very little HTML) - https://github.com/marhale3/marhale3.github.io (mostly by https://github.com/marhale3)
* http://muratcorlu.com/euler/ - Turkish - Github.io (Markdown + very little HTML) - https://github.com/muratcorlu/euler/tree/gh-pages -- based on the Persian translation
* http://euler.jakumo.org/ - Russian - HTML - https://github.com/jakumo/euler-translates (mostly by https://github.com/stumbler)
* http://projekteuler.de/ - German - Bootstrap
* http://euler.synap.co.kr/ - Korean - PHP
* http://projecteuler.radumurzea.net/ - Romanian - PHP - https://github.com/SoboLAN/projecteuler-ro - downloads problem JSON data from http://projekteuler.de/problems/ - stores English & translation in `sql/data.sql`
* http://odz.sakura.ne.jp/projecteuler/ - Japanese - PukiWiki
@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: