Skip to content

Instantly share code, notes, and snippets.

View FilBot3's full-sized avatar
😀
Working hard

FilBot3 FilBot3

😀
Working hard
View GitHub Profile
@FilBot3
FilBot3 / Start-OpenRPG.cmd
Last active August 29, 2015 13:56
Traipse OpenRPG cmdlet
@echo off
C:\python\python26\python.exe D:\path\to\Traipse.pyw
pause
@FilBot3
FilBot3 / boost_System_Vars.bat
Last active August 29, 2015 13:56
MinGW - Boost 1.55 Errors on Windows 8 64bit
@echo off
if not exist "%~dp0bin\gcc.exe" goto epicfail
if "%X_DISTRO%" == "nuwen" goto :eof
set X_DISTRO=nuwen
if exist "%~dp0git\cmd\git.exe" set PATH=%~dp0git\cmd;%PATH%
set PATH=%~dp0bin;%PATH%
set X_MEOW=%~dp0include;%~dp0include\freetype2
if defined C_INCLUDE_PATH (set C_INCLUDE_PATH=%X_MEOW%;%C_INCLUDE_PATH%) else (set C_INCLUDE_PATH=%X_MEOW%)
if defined CPLUS_INCLUDE_PATH (set CPLUS_INCLUDE_PATH=%X_MEOW%;%CPLUS_INCLUDE_PATH%) else (set CPLUS_INCLUDE_PATH=%X_MEOW%)
set X_MEOW=
@FilBot3
FilBot3 / MONO_mRemoteNG.vb
Created May 18, 2014 16:37
MONO mRemoteNG Failed Build on Debian
Build FAILED.
Warnings:
/home/predatorian/Programming/mRemoteNG/mRemoteV1/mRemoteV1.vbproj (default targets) ->
/usr/lib/mono/4.0/Microsoft.Common.targets (ResolveAssemblyReferences target) ->
/usr/lib/mono/4.0/Microsoft.Common.targets: warning : Reference 'Microsoft.VisualBasic.PowerPacks.Vs, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL' not resolved
/usr/lib/mono/4.0/Microsoft.Common.targets: warning : Found a conflict between : 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' reference.
/usr/lib/mono/4.0/Microsoft.Common.targets: warning : Found a conflict between : 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'mscorlib, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using 'mscorlib, Version=2
@FilBot3
FilBot3 / errors.sh
Created September 13, 2014 15:25
MegaMek init script issue - Related to: https://github.com/predatorian3/megamek-install
[root@fenix-centos ~]# service megamek start
+ DAEMON=/opt/megamek-0.38.0/MegaMek.jar
+ DAEMONPATH=/usr/bin/java
+ DAEMONPATHARGS='-jar -Xmx768'
+ DAEMONARGS='-dedicated -port 2346'
+ NAME=megamek
+ PIDFILE=/var/run/megamek.pid
+ SCRIPTNAME=/etc/init.d/megamek
+ USER=megamek
+ case "$1" in
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Canvas Hexagonal Map</title>
<style type="text/css">
canvas {
border:0;
display:block;
margin:0 auto;
@FilBot3
FilBot3 / get_zabbix_login_api.rb
Last active August 29, 2015 14:13
Get Login Information for Zabbix (2.4?)
# https://www.zabbix.com/documentation/1.8/api/getting_started
require 'net/http'
@params = {
"jsonrpc" => '2.0',
'method' => 'user.login',
'params' => {
'user' => 'Admin',
'password' => 'zabbix'
@FilBot3
FilBot3 / chefdk-berks-install-error.rb
Last active August 29, 2015 14:15
ChefDK - Berks Install Error
C:\U\haylon\Documents\GH\dist-r-corp> chef -v
Chef Development Kit Version: 0.4.0
C:\U\haylon\Documents\GH\dist-r-corp> gem which openssl # https://github.com/chef/chef-dk/issues/199
C:/opscode/chefdk/embedded/lib/ruby/2.0.0/openssl.rb
C:\U\haylon\Documents\GH\dist-r-corp> git --version
git version 1.9.4.msysgit.2
C:\U\haylon\Documents\GH\dist-r-corp> openssl version
@FilBot3
FilBot3 / knife-hello_world.rb
Last active August 29, 2015 14:15
An example knife-plugin that displays Hello World and a user name.
#
#
#
#
# Loads the knife classes and code to be used.
require 'chef/knife'
module ExamplePlugin
# This module is arbritary and mainly for keeping your plugin code
@FilBot3
FilBot3 / mwoApi.rb
Created February 24, 2015 04:47
A work-in-progress MWO CW API script.
#
#
#
#
require 'net/https'
require 'uri'
require 'json'
require 'optparse'
@FilBot3
FilBot3 / json_example_get.go
Last active August 29, 2015 14:26
GO JSON Example GET
/**
*
* http://stackoverflow.com/q/20293977/2009612
*/
package main
import (
"fmt"
"net/http"