Skip to content

Instantly share code, notes, and snippets.

View alfonsojon's full-sized avatar

Jonathan Alfonso alfonsojon

View GitHub Profile
@alfonsojon
alfonsojon / SassMeister-input-HTML.html
Last active August 29, 2015 14:24
Generated by SassMeister.com.
<!DOCTYPE html>
<html>
<head>
<title>Livecraft</title>
<link href="css/main.css" rel="stylesheet" />
<meta charset="UTF-8" />
</head>
<body>
<nav>
<ul>
@alfonsojon
alfonsojon / smartctl_alfonsojon-pc.log
Created July 12, 2015 20:57
Smartctl output for /dev/sda on alfonsojon-pc
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.16.0-43-generic] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital RE2 Serial ATA
Device Model: WDC WD5000YS-01MPB0
Serial Number: WD-WMANU1106326
LU WWN Device Id: 0 000000 000000000
Firmware Version: 07.02E07
User Capacity: 500,107,862,016 bytes [500 GB]
@alfonsojon
alfonsojon / smartctl_server.log
Last active August 29, 2015 14:24
Smartctl output for /dev/sda on server
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.13.0-57-generic] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.12
Device Model: ST31000528AS
Serial Number: 9VPAGC6Y
LU WWN Device Id: 5 000c50 02d30b120
Firmware Version: HP35
User Capacity: 1,000,204,886,016 bytes [1.00 TB]
@alfonsojon
alfonsojon / SassMeister-input-HTML.html
Last active August 29, 2015 14:24
Generated by SassMeister.com.
<!DOCTYPE html>
<html>
<head>
<title>Livecraft</title>
<link href="css/main.css" rel="stylesheet" />
<meta charset="UTF-8" />
</head>
<body>
<nav>
<ul>
@alfonsojon
alfonsojon / SassMeister-input-HTML.html
Created July 10, 2015 14:54
Generated by SassMeister.com.
<html>
<head>
<title>Livecraft</title>
<link href="css/main.css" res="stylesheet" />
<meta charset="UTF-8" />
</head>
<body>
<div>
<nav>
<ul>
@alfonsojon
alfonsojon / rwine.sh
Created July 8, 2015 14:27
rwine function
#
# Assume that spawndialog is a working function
#
rwine () {
printf '%b\n' "> rwine: calling wine with arguments \"$(printf "%s " "$@")\""
if [[ "$1" = "--silent" ]]; then
$WINE "${@:2}" && rwineserver --wait
else
$WINE "$@" && rwineserver --wait; [[ "$?" = "0" ]] || {
@alfonsojon
alfonsojon / spaghetti-code.sh
Last active August 29, 2015 14:24
What is this, and why doesn't it work
if [[ -L "$0" ]]; then
source $(dirname $(readlink -e $0))/config
else
source $(dirname "$0")/config
fi
[[ "$SERVICE" == "" ]] && {
echo "Couldn't load config file, please edit config.example and rename it to config"
logger -t minecraft-init "Couldn't load config file, please edit config.example and rename it to conf$
exit
[21:12:50 ERROR]: Could not pass event PlayerInteractEvent to NoOp v1.0
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) ~[spigot.jar:git-Spigot-b8f6402-a646500]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-b8f6402-a646500]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-b8f6402-a646500]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-b8f6402-a646500]
at org.bukkit.craftbukkit.v1_8_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:226) [spigot.jar:git-Spigot-b8f6402-a646500]
at org.bukkit.craftbukkit.v1_8_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:193) [spigot.jar:git-Spigot-b8f6402-a646500]
at org.bukkit.craftbukkit.v1_8_R1.event.CraftEventFactory.callPlayerInteractEvent(
SRV
_minecraft._tcp
Service:_minecraft
Protocol:_tcp
Name:@
Priority:0
Weight:0
Port:25565
Target:livecraft.us
Automatic
@alfonsojon
alfonsojon / gist:9678594
Created March 21, 2014 02:57
LWJGL build failed (PowerMac G4 - Mac OS X 10.5.8 PPC)
Buildfile: /Users/alfonsojon/java-game-lib-code/LWJGL/build.xml
-initialize:
[initialiazing bin folder] Created dir: /Users/alfonsojon/java-game-lib-code/LWJGL/bin
[initialiazing native bin folder] Created dir: /Users/alfonsojon/java-game-lib-code/LWJGL/bin/lwjgl
[initialiazing native OpenGL ES bin folder] Created dir: /Users/alfonsojon/java-game-lib-code/LWJGL/bin/lwjgles
[initialiazing dist folder] Created dir: /Users/alfonsojon/java-game-lib-code/LWJGL/dist
[initialiazing docs folder] Created dir: /Users/alfonsojon/java-game-lib-code/LWJGL/doc/javadoc
[initialiazing temp folder] Created dir: /Users/alfonsojon/java-game-lib-code/LWJGL/temp
[initialiazing temp/jar folder] Created dir: /Users/alfonsojon/java-game-lib-code/LWJGL/temp/jar