Skip to content

Instantly share code, notes, and snippets.

View hanslovsky's full-sized avatar

Philipp Hanslovsky hanslovsky

View GitHub Profile
@bogovicj
bogovicj / bogo
Created April 7, 2020 16:43
bogo - bogosort for everything
#!/bin/bash
# bogo - like bogosort, but for everything
VERBOSE=""
while getopts "v" OPT
do
case $OPT in
v) # verbose
VERBOSE="1"
shift
@jcraane
jcraane / logback.xml
Created July 3, 2013 18:26
Sample logback.xml file with console and rolling file appender. The rollover is time based (daily) and size based, 5MB.
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true">
<appender name="consoleAppender" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<charset>UTF-8</charset>
<Pattern>%d %-4relative [%thread] %-5level %logger{35} - %msg%n</Pattern>
</encoder>
</appender>
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
@clintel
clintel / gist:1155906
Created August 19, 2011 02:40
Fenced code in bullet lists with GitHub-flavoured MarkDown??

Fenced code blocks inside ordered and unordered lists

  1. This is a numbered list.

  2. I'm going to include a fenced code block as part of this bullet:

    Code
    More Code