Skip to content

Instantly share code, notes, and snippets.

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>test</groupId>
<artifactId>clojure-test</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>clojure-test</name>
<url>http://maven.apache.org</url>
<dependencies>
@talios
talios / gist:26e5e698e8e9e740bac1bed0d7b00f52
Created September 26, 2016 08:10
Oracle JDK crashes A LOT under the new macOS Siera release :( Or at least, IntelliJ IDEA does.
Process: idea [16532]
Path: /Users/USER/*/IntelliJ IDEA 2016.3 CE EAP.app/Contents/MacOS/idea
Identifier: com.jetbrains.intellij.ce-EAP
Version: EAP IC-163.SNAPSHOT (IC-163.SNAPSHOT)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: idea [16532]
User ID: 501
Date/Time: 2016-09-26 21:09:21.992 +1300
whois microsoft.com Fri 22 Nov 2013 11:39:32 NZDT
Whois Server Version 2.0
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.
MICROSOFT.COM.ZZZZZZZZZZZZZZZZZZZZZZ.IS.A.GREAT.COMPANY.ITREBAL.COM
MICROSOFT.COM.ZZZZZZZZZZZZZZZZZZZ.GET.ONE.MILLION.DOLLARS.AT.WWW.UNIMUNDI.COM
@talios
talios / git-mvnstage
Last active December 20, 2015 20:29
Stage an Apache Maven artifact release into a separate repository based on the git commits SHA1, so to allow for interim, unmerged dependencies to resolve for other users.
#!/bin/sh
if ! git diff-index --quiet HEAD --; then
echo "Git is dirty, clean up your mess!"
exit 1
fi
VERSION=`xml sel -N x="http://maven.apache.org/POM/4.0.0" -t -v "/x:project/x:version" pom.xml`
ARTIFACTID=`xml sel -N x="http://maven.apache.org/POM/4.0.0" -t -v "/x:project/x:artifactId" pom.xml`
SHA1=`git rev-parse HEAD`
int 1
int 2
int 3
int 4
int 5
A low maintenance chili recipe. Requires a big pot. Makes enough for loads of meals!
1 kilo of dry red kidney beans.
200 grams of dry black beans.
3 satchels of El Paso mixes (1 of taco, fajita, and burrito).
5 red peppers seeds removed.
3 red peppers with the seeds.
2 kilo diced beef.
3 cans of diced tomato.
3 or 4 cloves of garlic.
@talios
talios / gist:2893027
Created June 8, 2012 02:07
Javac Compiler Bug...
Potential bug in JavaC. Surely the line should be:
annotationProcessingOccurred = c.annotationProcessingOccurred == true;
and do a comparison instead of multi-assignment ( and only assign it if annotationProcessingOccurred is current false, as I don't think we want to reassign a true setting to false here).
Open JDK 6:
http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/com/sun/tools/javac/main/JavaCompiler.java#JavaCompiler
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x000000010d97aff8, pid=20796, tid=4591443968
#
# JRE version: 7.0_04-b21
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.0-b21 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# V [libjvm.dylib+0x17aff8]
#
@talios
talios / gist:1892209
Created February 23, 2012 10:44
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
@talios
talios / KotlinRootRoute.java
Created February 19, 2012 01:41
Decompilation of Kotlin Class
package com.talios.routes;
import com.google.inject.Inject;
import com.theoryinpractise.halbuilder.ResourceFactory;
import com.theoryinpractise.halbuilder.spi.Resource;
import jet.JetObject;
import jet.TypeInfo;
import jet.runtime.typeinfo.JetClass;
import jet.runtime.typeinfo.JetConstructor;
import jet.runtime.typeinfo.JetMethod;