Skip to content

Instantly share code, notes, and snippets.

View jonasbn's full-sized avatar
🐙
conducting sub-optimal multitasking

Jonas Brømsø jonasbn

🐙
conducting sub-optimal multitasking
View GitHub Profile
@jonasbn
jonasbn / markdown_rule_listing_ruby.txt
Last active February 25, 2019 08:18
Markdownlint rule listing for Ruby implementation
MD001 - Header levels should only increment by one level at a time
MD002 - First header should be a top level header
MD003 - Header style
MD004 - Unordered list style
MD005 - Inconsistent indentation for list items at the same level
MD006 - Consider starting bulleted lists at the beginning of the line
MD007 - Unordered list indentation
MD009 - Trailing spaces
MD010 - Hard tabs
MD011 - Reversed link syntax
@jonasbn
jonasbn / markdownlint_rule_listing_node.txt
Created February 25, 2019 08:17
Markdownlint rule listing for Node implementation
MD001 heading-increment/header-increment - Heading levels should only increment by one level at a time
MD002 first-heading-h1/first-header-h1 - First heading should be a top level heading
MD003 heading-style/header-style - Heading style
MD004 ul-style - Unordered list style
MD005 list-indent - Inconsistent indentation for list items at the same level
MD006 ul-start-left - Consider starting bulleted lists at the beginning of the line
MD007 ul-indent - Unordered list indentation
MD009 no-trailing-spaces - Trailing spaces
MD010 no-hard-tabs - Hard tabs
MD011 no-reversed-links - Reversed link syntax
@jonasbn
jonasbn / mojo-vue.pl
Created January 16, 2019 13:22 — forked from Tekki/mojo-vue.pl
Mojolicious - Vue.js Example
#!/usr/bin/env perl
use Mojolicious::Lite -signatures;
get '/' => sub ($c) {
$c->render(template => 'index');
};
get '/api/:region' => sub ($c) {
my %regions = (
#!/bin/bash
say -v Samantha "Docker build commencing...";
# Receives: messages and return value from Docker build
function emit() {
if [ $2 -eq 0 ]
then
# green output
@jonasbn
jonasbn / jshintrc
Created December 29, 2017 17:18
jshintrc from http://jshint.com/
{
// JSHint Default Configuration File (as on JSHint website)
// See http://jshint.com/docs/ for more details
"maxerr" : 50, // {int} Maximum error before stopping
// Enforcing
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
"camelcase" : false, // true: Identifiers must be in camelCase
"curly" : true, // true: Require {} for every new block or scope
@jonasbn
jonasbn / gist:d6a14ea4f3a0621bcb7ce308ca628c6e
Created November 17, 2017 21:03
Example Error from Dist::Zilla
[DZ] attempt to add cpanfile multiple times; added by: filename set by GatherDir (Dist::Zilla::Plugin::GatherDir line 225); encoded_content added by @Basic/GatherDir (Dist::Zilla::Plugin::GatherDir line 226); filename set by GatherDir (Dist::Zilla::Plugin::GatherDir line 225); encoded_content added by GatherDir (Dist::Zilla::Plugin::GatherDir line 226)
@jonasbn
jonasbn / dist.ini
Created November 17, 2017 20:34
Dist::Zilla configuration to respect static LICENSE
; Dist::Zilla configuration to respect static LICENSE required by Github community recommendations
; https://github.com/jonasbn/perl-test-timer/community
; The complete file is available at:
; https://github.com/jonasbn/perl-test-timer/blob/master/dist.ini
; REF: Dist::Zilla https://metacpan.org/pod/Dist::Zilla
name = Test-Timer
author = Jonas B. Nielsen <[email protected]>
license = Artistic_2_0
@jonasbn
jonasbn / certbot_sphinx_todo
Created July 1, 2017 22:20
certbot issue 4736 files identified as missing
cert_manager.py
cli.py
eff.py
error_handler.py
hooks.py
lock.py
log.py
main.py
notify.py
ocsp.py
@jonasbn
jonasbn / MANIFEST.SKIP
Last active June 1, 2021 20:48
MANIFEST.SKIP example
############################################################################################
# Lifted from ExtUtils::MANIFEST #
# ref: https://metacpan.org/source/ETHER/ExtUtils-Manifest-1.70/lib/ExtUtils/MANIFEST.SKIP #
############################################################################################
# Avoid version control files.
\bRCS\b
\bCVS\b
\bSCCS\b
,v$