Skip to content

Instantly share code, notes, and snippets.

View mallocator's full-sized avatar

Ravi mallocator

  • San Francisco, CA, USA
View GitHub Profile
@mallocator
mallocator / PvE.wishlist
Last active July 4, 2022 17:26
Personal DIM Wishlist
title:PvE Wishlist
description:A collection of items suited for PvE

Keybase proof

I hereby claim:

  • I am mallocator on github.
  • I am mallox (https://keybase.io/mallox) on keybase.
  • I have a public key whose fingerprint is 7752 7413 569E 8350 44F5 FF48 59BC 8AB4 3FBC 60BB

To claim this, I am signing this object:

@mallocator
mallocator / wikipedia.custom.css
Last active March 23, 2024 08:45
Custom CSS to make wikipedia look a little more readable based on css styles of medium.com. Sizes work for me on a macbook and windows with 1080p display. Used with MonoBook preset in appearance preferences.
body {
padding: 0 10%;
}
p {
text-align: left;
font-size: 18px;
letter-spacing: 0.08px;
line-height: 26px;
word-wrap: break-word;
@mallocator
mallocator / git.hook.check_task
Created March 6, 2015 22:47
A commit-msg hook for git that will that will reject any commits where the commit message is not prefixed with an task label.
#!/bin/bash
# save the file as <git_directory>/.git/hooks/commit-msg.d/task and chmod +x
#Replace issue and word length(4) with your label to check for
if [ "${1:0:4}" = "TASK-" ]; then
#Allow maven release plugin to make commits even without a task id
if [ "${1:0:22}" != "[maven-release-plugin]" ]; then
echo >&2 Commit Message is missing a Task ID
exit 1
@mallocator
mallocator / git.hook.mvn_clean
Last active December 4, 2020 13:46
A pre-commit hook for git that will run maven clean test and output any failed tests as well as a summary if there was an error.
#!/bin/bash
# save the file as <git_directory>/.git/hooks/pre-commit.d/mvn_test and chmod +x
echo "Running mvn clean test for errors"
# retrieving current working directory
CWD=`pwd`
MAIN_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# go to main project dir