Skip to content

Instantly share code, notes, and snippets.

View kevinkjt2000's full-sized avatar

Kevin Tindall kevinkjt2000

View GitHub Profile
@kevinkjt2000
kevinkjt2000 / Thaumcraft 4 Aspects.graphml
Created June 4, 2019 23:51
This can be opened in yEd Graph Editor; it shows Thaumcraft v4 aspect relationships
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:y="http://www.yworks.com/xml/graphml" xmlns:yed="http://www.yworks.com/xml/yed/3" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://www.yworks.com/xml/schema/graphml/1.1/ygraphml.xsd">
<!--Created by yEd 3.13-->
<key attr.name="Description" attr.type="string" for="graph" id="d0"/>
<key for="port" id="d1" yfiles.type="portgraphics"/>
<key for="port" id="d2" yfiles.type="portgeometry"/>
<key for="port" id="d3" yfiles.type="portuserdata"/>
<key attr.name="url" attr.type="string" for="node" id="d4"/>
<key attr.name="description" attr.type="string" for="node" id="d5"/>
<key for="node" id="d6" yfiles.type="nodegraphics"/>
@kevinkjt2000
kevinkjt2000 / QuadForm.cs
Last active September 18, 2019 15:11
My first "real" program that was not on a TI-83. Written in C# on my first laptop during the summer of 2009.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class QuadForm
{
static void Main(string[] args)
{
Console.WriteLine("Welcome to the Quadratic Formula Program!");
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets" />
<PropertyGroup Label="UserMacros" />
<PropertyGroup />
<ItemDefinitionGroup>
<ClCompile>
<AdditionalIncludeDirectories>C:\boost_1_54_0;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
#!/bin/bash
NUM_THREADS=8 #number of threads to use while making gcc
wget ftp://gcc.gnu.org/pub/gcc/releases/gcc-4.9.2/gcc-4.9.2.tar.bz2
wget ftp://gcc.gnu.org/pub/gcc/infrastructure/gmp-4.3.2.tar.bz2
wget ftp://gcc.gnu.org/pub/gcc/infrastructure/mpc-0.8.1.tar.gz
wget ftp://gcc.gnu.org/pub/gcc/infrastructure/mpfr-2.4.2.tar.bz2
echo 'Extracting downloaded files... (This might take a while)'
#!/bin/bash
#find all of the hosts listed in ~/.ssh/config
#apparently finding all the hosts ip/dns values is not trivial
grep -oPz 'Host .*\n HostName .*' ~/.ssh/config |
sed -n 'N;s/Host \(.*\)\n HostName \(.*\)/\1\n\2/p' |
while read hosts && read hostname; do
echo "$hostname"
#!/bin/bash
journalctl -xe | awk '/sshd.*invalid user/{print $9}' | sort -u

Keybase proof

I hereby claim:

  • I am kevinkjt2000 on github.
  • I am kevin_tindall (https://keybase.io/kevin_tindall) on keybase.
  • I have a public key whose fingerprint is BA9F B92C 99AC 4F70 961E 571C 3110 6339 5E17 044C

To claim this, I am signing this object:

@kevinkjt2000
kevinkjt2000 / sudoku.pro
Created November 10, 2018 05:46
Generic size sudoku solver written in Prolog
:- use_module(library(clpfd)).
% Use the test_foo functions below to run this sudoku solver
% The answer to day 3 is much cleaner in the SWI-Prolog documentation
% http://www.swi-prolog.org/pldoc/doc_for?object=transpose/2
% I took the solution from the documentation and adapted it to
% allow generic block and grid sizes
sudoku((Height,Width), (BlockHeight,BlockWidth), Puzzle) :-
This file has been truncated, but you can view the full file.
[15:39:42] [main/DEBUG] [FML/]: Injecting tracing printstreams for STDOUT/STDERR.
[15:39:42] [main/INFO] [FML/]: Forge Mod Loader version 7.10.85.1277 for Minecraft 1.7.10 loading
[15:39:42] [main/INFO] [FML/]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_25, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.8.0_25
[15:39:42] [main/DEBUG] [FML/]: Java classpath at launch is C:\Apache24\multicraft\servers\MagicYouKnow\forge-1.7.10-10.13.2.1277-universal.jar
---- Minecraft Crash Report ----
// This doesn't make any sense!
Time: 1/5/15 3:17 PM
Description: Ticking block entity
java.lang.NullPointerException: Ticking block entity
at thaumcraft.common.items.wands.ItemWandCasting.consumeAllVis(ItemWandCasting.java:322)
at thaumcraft.common.items.wands.ItemWandCasting.consumeAllVisCrafting(ItemWandCasting.java:305)
at thaumic.tinkerer.common.block.tile.TileEnchanter.func_145845_h(TileEnchanter.java:159)