Skip to content

Instantly share code, notes, and snippets.

View dennisoelkers's full-sized avatar
🤷‍♂️
Being a monoid in the category of endofunctors.

Dennis Oelkers dennisoelkers

🤷‍♂️
Being a monoid in the category of endofunctors.
View GitHub Profile

Expectations from a PR review

  • both gatekeeping and editing

    • preventing incorrect, insecure, maintainable code from entering the codebase
    • providing advice and suggestions for potential improvements concerning readability, best practices/conventions, abstraction and/or performance
  • PR review is based on the assumption that any written code benefits from being looked at through the perspective of another person with a different expertise & focus

  • PR reviews are feedback on the code, never feedback on the person who wrote it

Expectations for PRs

#!/bin/sh
GITHUB_USER=dennisoelkers
if [ "$1" != "" ]; then
GITHUB_USER=$1
fi
echo "PRs asking me for review:\n"
for i in `hub pr list -s open -o update -f '%i;%sH;%H;%U;%ut;%rs%n'|sed 's/ //g'|grep ${GITHUB_USER}`; do
#!/bin/sh
# Returning the status of all open PRs of $1, execute it in the directory of the git repository
# Perfect in combination with `watch -n 30 -c pr-check`
GITHUB_USER=dennisoelkers
if [ "$1" != "" ]; then
GITHUB_USER=$1
fi
#!/bin/sh
# Polling the status checks for a PR and merges it when they are green.
# Needs to be executed in the directory of the PR's repo.
#
# Args: merge-on-green <PR>
# where PR is the number of the PR without "#"
#
PR_NO=$1
@dennisoelkers
dennisoelkers / value-class.js
Created December 4, 2019 15:19
IntelliJ File Template for JS Value Classes with Builder
// @flow strict
import * as Immutable from 'immutable';
type InternalState = {
id: string,
};
export type ${NAME}JSON = {
id: string,
};

Keybase proof

I hereby claim:

  • I am dennisoelkers on github.
  • I am dns42 (https://keybase.io/dns42) on keybase.
  • I have a public key whose fingerprint is BB44 454B DCD2 B9B3 2922 A73D 26B2 C114 209D C497

To claim this, I am signing this object:

Your soul and your firstborn now belong to us.
@dennisoelkers
dennisoelkers / sjk.sh
Created July 9, 2015 11:27
Swiss Java Knife Startup Script
#!/bin/sh
PREFIX=`dirname $0`/../lib
JARFILE=$PREFIX/sjk-plus-0.3.6.jar
java -jar $JARFILE $@
public class DBAdapterBindings extends PluginModule {
@Override
protected void configure() {
addPeriodical(DBAdapter.class);
}
}
@dennisoelkers
dennisoelkers / gist:1385537
Created November 22, 2011 12:17
Mysterious stack trace of an exiting node.js daemon - seems like the application code itself does not show up in the trace
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: EADDRINUSE, Address already in use
at doConnect (net.js:549:5)
at net.js:725:9
at dns.js:192:7
at Object.lookup (dns.js:190:11)
at Socket.connect (net.js:712:20)
at Object.createConnection (net.js:265:5)