This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
wget --no-cache -q -O - https://github.com/runelite/runelite/tags | \ | |
grep --max-count 1 -o 'tag runelite-parent-.*$' | \ | |
sed 's/tag runelite-parent-//' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Homebrew build logs for ffmpeg on Raspbian GNU/Linux 9.4 (stretch) | |
Build date: 2018-04-12 03:28:10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Homebrew build logs for util-linux on Raspbian GNU/Linux 9.4 (stretch) | |
Build date: 2018-04-14 16:39:50 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.reflect.Method; | |
import java.util.stream.LongStream; | |
public class Main { | |
/** | |
* Run each test this many times to get a minimum, average, maximum value | |
*/ | |
private static final int TEST_ATTEMPTS = 5000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# (re)generates a .xml file pointing to a list of wallpapers found withing ~/.wallpapers, these pictures | |
# should then be visible within the 'Wallpapers' tab of the gnome wallpaper switcher. | |
# | |
# This needs to be ran as root. | |
# Optionally you can change the permissions of the directory '/usr/share/gnome-background-properties/' | |
# and it's contents to allow user r/w | |
# | |
WALLPAPERS="$HOME/.wallpapers" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Syntax: 'ufw-replace <comment> <ufw parameter>...' | |
# Example: 'ufw-replace open-torrent-port allow 40340/tcp' | |
comment="$1" | |
if [ "$comment" = '' ]; then echo 'No comment provided!' && exit -1 ; fi | |
shift | |
args="$@" | |
if [ "$args" = '' ]; then echo 'Too few arguments' && exit -1 ; fi | |
##################################################################### | |
echo "Looking for rules with comment: '$comment'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public java.lang.String toString() { | |
return String.format(## | |
"$classname [ ## | |
#set ($i = 0) | |
#foreach ($member in $members) | |
#if ($i != 0) | |
, ## | |
#end | |
#if ($member.numeric) | |
$member.name=%d## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.unicus.api.wrapper; | |
import com.unicus.reflect.FieldReference; | |
import com.unicus.reflect.MethodReference; | |
import com.unicus.reflect.ReflectContext; | |
/** | |
* @author Caleb Whiting | |
*/ | |
public abstract class Wrapper { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.unicus.api.wrapper.collection; | |
import com.unicus.api.wrapper.*; | |
/** | |
* @author Caleb Whiting | |
*/ | |
public class Node extends Wrapper { | |
public Node(Object reference) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.unicus.api.wrapper; | |
import com.unicus.reflect.FieldReference; | |
import com.unicus.reflect.MethodReference; | |
import com.unicus.reflect.ReflectContext; | |
/** | |
* @author Caleb Whiting | |
*/ | |
public abstract class Wrapper { |
NewerOlder