Skip to content

Instantly share code, notes, and snippets.

View Gateswong's full-sized avatar

Gates_ice Gateswong

View GitHub Profile
@Gateswong
Gateswong / InGameInfo.xml
Created April 23, 2020 19:44
GTNH - Added HP, Food and Exp
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<config>
<lines at="topleft">
<line>
<str>{pingicon}$6{username}$f </str>
<str>FPS: </str>
<op>
<str>gt</str>
<var>fps</var>
<num>60</num>
# ##############################
# Configs for EH Forwarder Bot
# ##############################
#
# Basic settings
# ----------------
#
# Master/Slave Channels
#
# Master channel:
@Gateswong
Gateswong / Fishing.vbs
Last active October 25, 2017 09:03
钓鱼脚本 2015年末版
LogStart "D:\keyLog\WOW_Fishing.log"
// Cursors (光标值,需要自己用按键精灵找,设置中需要打开“硬件指针”)
Dim csLure, csDefault
csLure = 1053591638
csDefault = 965986689
// Key Mapping (钓鱼放到热键上)
Dim kFish
kFish = "1"
10 20 40 30 50
@Gateswong
Gateswong / Reflection_Print_Member_Values.cs
Last active April 21, 2016 19:22
This is a code segment can be used in LinqPad 5
public class Student
{
public int ID { get; set; }
public string Name { get; set; }
public DateTime CreateDate { get; set; }
public XDocument XML { get; set;}
}
void Main()
@Gateswong
Gateswong / To-UTF8.ps1
Created September 1, 2015 04:56
Convert a file to utf8 encoding. Usage: To-UTF8.ps1 'encoding' 'infile' 'outfile'
[System.Text.Encoding]::GetEncoding($args[0]).GetString(
(type $args[1] -Encoding Byte)
) | Out-File $args[2] -Encoding utf8
---- Minecraft Crash Report ----
// Ouch. That hurt :(
Time: 6/13/15 5:50 AM
Description: Initializing game
java.lang.IllegalStateException: Splash thread
at cpw.mods.fml.client.SplashProgress.checkThreadState(SplashProgress.java:341)
at cpw.mods.fml.client.SplashProgress.finish(SplashProgress.java:394)
at cpw.mods.fml.client.FMLClientHandler.onInitializationComplete(FMLClientHandler.java:398)
@Gateswong
Gateswong / ec2-01-init_swift.sh
Last active August 29, 2015 14:07
CS553 Support Files
#!/bin/sh
# This script will init the swift on given machine.
# prepare directories we need
cd ~
mkdir -p ~/app
mkdir -p ~/build
mkdir -p ~/work
sudo mkdir /mnt/cs553-data
# README:
# Copy this file to /usr/lib/systemd/system/
# sudo systemctl daemon-reload
# systemctl enable ipython-notebook
# systemctl start ipython-notebook
# The WorkingDirectory and ipython-dir must exist
# If you don't want anything fancy, go to http://127.0.0.1:8888 to see your notebook
# wheneber you want it
[Unit]
// =========================================================
// FSM
// =========================================================
FSM_NULL = 0
FSM_LOGIN_SCREEN = 1
FSM_CHAR_SELECT = 2
FSM_CHAR_CREATE = 3
FSM_LOADING = 4
FSM_NEW_CHAR = 5