Skip to content

Instantly share code, notes, and snippets.

View NeQuissimus's full-sized avatar
:octocat:
This is my status

Tim Steinbach NeQuissimus

:octocat:
This is my status
View GitHub Profile

Keybase proof

I hereby claim:

  • I am nequissimus on github.
  • I am nequissimus (https://keybase.io/nequissimus) on keybase.
  • I have a public key ASDqaMkXDVb_rTV0hxln75zh7FYuEyQS-8qM1DPyPk1mCAo

To claim this, I am signing this object:

stdenv.mkDerivation rec {
name = "gnutar-${version}";
version = "1.30-unstable";
src = fetchgit {
url = "http://git.savannah.gnu.org/r/tar.git";
rev = "7340f67b9860ea0531c1450e5aa261c50f67165d";
sha256 = "03q5vglkx891asl8jmn850vkks6bkv5np6n9abqfwjgd9i32h10h";
};
@NeQuissimus
NeQuissimus / checkstyle.xml
Last active April 20, 2018 09:31
Checkstyle
<?xml version="1.0"?>
<!DOCTYPE module
PUBLIC '-//Puppy Crawl//DTD Check Configuration 1.3//EN'
'http://www.puppycrawl.com/dtds/configuration_1_3.dtd'>
<!--
Checkstyle configuration that checks the Google coding conventions from Google Java Style
that can be found at https://google.github.io/styleguide/javaguide.html.
Checkstyle is very configurable. Be sure to read the documentation at
http://checkstyle.sf.net (or in your downloaded distribution).
@NeQuissimus
NeQuissimus / EggsToast.java
Created August 30, 2016 13:03 — forked from tonymorris/EggsToast.java
What is the output of this program?
// What is the output of this program?
// a) x = 2
// b) x = 3
// c) compile-error
// d) runtime exception
// e) something else _____
abstract class Eggs {
abstract void m();
Eggs() {
@NeQuissimus
NeQuissimus / Stnts.java
Created August 30, 2016 13:03 — forked from tonymorris/Stnts.java
What does this program output?
// What does this program output?
class S {
static final int I = 7;
static {
System.out.println("S");
}
}
@NeQuissimus
NeQuissimus / btrfs-nixos-install.sh
Created June 17, 2016 11:59 — forked from alcol80/btrfs-nixos-install.sh
nixos install (boot + btrfs root + btrfs docker)
gdisk /dev/sda # make 1 partition
mkfs.vfat -n BOOT /dev/sda1
mkfs.btrfs -L root /dev/sdb
mkfs.btrfs -L docker /dev/sdc
mount -t btrfs -o noatime,discard,ssd,autodefrag,compress=lzo,space_cache /dev/sdb /mnt/
btrfs subvolume create /mnt/nixos
umount /mnt/
mount -t btrfs -o noatime,discard,ssd,autodefrag,compress=lzo,space_cache,subvol=nixos /dev/sdb /mnt/
@NeQuissimus
NeQuissimus / configuration.nix
Last active December 7, 2015 22:01
Minimal Nix @ master
{ config, pkgs, ... }:
{
imports = [ ./hardware-configuration.nix ./xterm.nix ./ohmyzsh.nix ];
boot = {
cleanTmpDir = true;
initrd.checkJournalingFS = false;
@NeQuissimus
NeQuissimus / configuration.nix
Created January 13, 2015 01:59
First NixOS config
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
@NeQuissimus
NeQuissimus / Main.scala
Last active June 15, 2016 13:04
Playing with parboiled2 to parse router logs
import org.parboiled2._
import scala.util.{ Success, Failure }
import java.net.{ InetAddress, Inet4Address }
import java.time.{ LocalDateTime => LDT }
import java.time.format.{ DateTimeFormatter => DTF }
object Main extends App {
import Logs._
List(l1, l2, l3, l4, l5) foreach { l =>
@NeQuissimus
NeQuissimus / .zshrc
Last active August 29, 2015 14:08
Switch JDK versions on OSX
# Original from http://www.jayway.com/2014/01/15/how-to-switch-jdk-version-on-mac-os-x-maverick/
function setjdk() {
if [ $# -ne 0 ]; then
removeFromPath '/System/Library/Frameworks/JavaVM.framework/Home/bin'
if [ -n "${JAVA_HOME+x}" ]; then
removeFromPath $JAVA_HOME
fi
export JAVA_HOME=`/usr/libexec/java_home -v $@`
export PATH=$JAVA_HOME/bin:$PATH