Skip to content

Instantly share code, notes, and snippets.

Avatar

Felix Dietze fdietze

View GitHub Profile
View Sbt Sonatype Publishing.md

Jitpack

https://jitpack.io

For testing purposes, the easiest way to go is jitpack:

resolvers += "jitpack" at "https://jitpack.io"
libraryDependencies += "com.github.User" % "Repo" % "Tag"
@martijnvermaat
martijnvermaat / nixos.md
Last active Oct 17, 2021
Installation of NixOS with encrypted root
View nixos.md
@xim
xim / bashrc.append
Last active Dec 20, 2015
Vim function for your .bashrc. Turns "vim file1:42 file2:1337" into "/usr/bin/vim file1 file2 -S (script that moves the cursor to the correct line)"
View bashrc.append
# vim file:34 otherfile:1337 -> Open files at respective lines. And in tabs!
vim() {
declare -a args
let fcount=0
hit_dashdash=
for arg in "$@" ;do
if [[ "$arg" =~ ^- && ! "$hit_dashdash" ]] ;then
args+=("$arg")
[[ "$arg" = "--" ]] && hit_dashdash=1
continue