Skip to content

Instantly share code, notes, and snippets.

Jonas A. Hultén DrSLDR

Block or report user

Report or block DrSLDR

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@DrSLDR
DrSLDR / tick.py
Created Jan 28, 2017
Utility for simultaneously updating version numbers throughout several files
View tick.py
"""
Ticker utility
Speaks SemVer (Semantic Versioning). Ticks the numbers as ordered.
"""
import re
import argparse
FILELIST = ['README.md']
@DrSLDR
DrSLDR / .bashrc
Last active May 28, 2016
.bashrc
View .bashrc
alias wow='git status'
alias much=git
alias such=git
alias very=git
alias many=git
alias fuck='sudo $(history -p \!\!)'
alias lsa='ls -Al'
alias gitkat='gitg --all'
alias glug='git log --oneline'
alias psgr='ps -e | grep '
@DrSLDR
DrSLDR / Makefile
Last active May 24, 2016
Handy makefile for LaTeX projects
View Makefile
#!/bin/bash
NAME="main"
USEBIBTEX=0
HASTOC=1
ifeq ($(USEBIBTEX),1)
all: compile bibtex check clean cleanbib
else
all: compile check clean
@DrSLDR
DrSLDR / blog-resizer.sh
Last active Sep 20, 2015
A script I use to (bulk) resize images to a largest dimension of 1080px, which I use for my blog.
View blog-resizer.sh
#!/bin/bash
#Fundamentals
ALLMODE=0
# Get parameter
if [ -z "$1" ]; then
echo Filename or -all flag needed
exit 1
elif [ "$1" == "-all" ]; then
View keybase.md

Keybase proof

I hereby claim:

  • I am drsldr on github.
  • I am sldr (https://keybase.io/sldr) on keybase.
  • I have a public key whose fingerprint is 8222 3895 5AF2 F792 05EF B9C7 3613 10E5 AD8C 0584

To claim this, I am signing this object:

@DrSLDR
DrSLDR / bash.bashrc
Last active Aug 29, 2015
PS1 variable
View bash.bashrc
if [[ ${EUID} == 0 ]] ; then
PS1='${debian_chroot:+($debian_chroot)}\[$(tput bold)\]\[$(tput setaf 7)\][\t]\[$(tput setaf 1)\]\h\[$(tput setaf 7)\](\[$(tput setaf 4)\]\W\[$(tput setaf 7)\])\$ \[$(tput sgr0)\]'
else
PS1='${debian_chroot:+($debian_chroot)}\[$(tput bold)\]\[$(tput setaf 7)\][\t]\[$(tput setaf 2)\]\u@\h\[$(tput setaf 7)\](\[$(tput setaf 4)\]\W\[$(tput setaf 7)\])\$ \[$(tput sgr0)\]'
fi
You can’t perform that action at this time.