Skip to content

Instantly share code, notes, and snippets.

View forlornhedgehog's full-sized avatar

Forlorn Hedgehog forlornhedgehog

  • A meadow somewhere
View GitHub Profile
@forlornhedgehog
forlornhedgehog / autoexec.cfg
Last active December 21, 2015 01:59
For the new Dota 2 Reborn client
// 12 July 2015
// General
dota_force_right_click_attack 1 // Enable right-click denies
dota_disable_range_finder 0 // Show spell range
dota_minimap_hero_size 900 // Slightly bigger hero icons on minimap (default 600)
dota_camera_disable_zoom 1 // Disables mousewheel zoom (Default 0)
dota_reset_camera_on_spawn 1 // Center hero on screen after respawn
// Rune check
@forlornhedgehog
forlornhedgehog / spiralMine.lua
Last active December 12, 2015 09:18
A lua script for the ComputerCraft Minecraft mod, that will mine in a spiral pattern, exposing the most blocks, with the least fuel consumed.
-- This work is licensed under a CC BY-NC-SA 3.0 license.
-- http://creativecommons.org/licenses/by-nc-sa/3.0/
--
-- by the Forlorn Hedgehog
--
-- Fuel goes in slot 1. Torches go in slot 2. Floor blocks (usually cobblestone) go in slot 3.
-- If fuel level is less than 10, refuel
function fuel()
if turtle.getFuelLevel() < 10 then
@forlornhedgehog
forlornhedgehog / branchMine.lua
Last active December 12, 2015 01:59
A lua script for the ComputerCraft Minecraft mod. Makes a branch mine. Usage: branchMine <length>
-- This work is licensed under a CC BY-NC-SA 3.0 license.
-- http://creativecommons.org/licenses/by-nc-sa/3.0/
--
-- by the Forlorn Hedgehog
--
-- Usage: branchMine <length>
-- Fuel goes in slot 1. Torches go in slot 2. Floor blocks (usually cobblestone) go in slot 3.
-- Mines a trunk <length> blocks long, with an 8 block long branch, on each side, every 3 blocks, starting 2 blocks in (n=3n-1)
-- If fuel level is less than 10, refuel