Skip to content

Instantly share code, notes, and snippets.

View DelusionalLogic's full-sized avatar

Jesper Jensen DelusionalLogic

View GitHub Profile
# How many Controllers? (support up to 4 Controllers)
CONTROLLER_NUM=2
case $CONTROLLER_NUM in
1) CONTROLLER="-w 0 -l 2 --trigger-as-button --dpad-as-button"
;;
2) CONTROLLER="-w 0 -l 2 --trigger-as-button --dpad-as-button --next-controller -w 1 -l 3 --trigger-as-button --dpad-as-button"
;;
3) CONTROLLER="-w 0 -l 2 --trigger-as-button --dpad-as-button --next-controller -w 1 -l 3 --trigger-as-button --dpad-as-button --next-controller -w 2 -l 4 --trigger-as-button --dpad-as-button"
;;
@DelusionalLogic
DelusionalLogic / extract.sh
Last active August 29, 2015 14:18
SkypePatcher
#!/bin/bash
i=0
while read p; do
IFS="-" read -ra ADDR <<< "$p"
n="${ADDR[0]}"
start="${ADDR[1]}"
end="${ADDR[2]}"
echo "$start $end"
@DelusionalLogic
DelusionalLogic / target_selector.lua
Created July 3, 2012 00:52
Target Selector UPGRADE v0.2
TARGET_LOW_HP = 1
TARGET_NEAR = 2
TARGET_FAR = 3
DAMAGE_MAGIC = 1
DAMAGE_PHYSICAL = 2
targetMode=" "
mouseRange = 400 -- distance from mouse the target must be to attack if targetMouse is true.
targetMouse = false --default
TargetSelector = {}
player = GetMyHero()
--[[
Darius Ownage
v1.1
written by Weee
Modified by Delusional Logic
]]
--[[ Config ]]
HK = 32 -- Hotkey for perfect Q harass (default: spacebar)
cHK = 67 -- Hotkey for perfect E (Key C)
@DelusionalLogic
DelusionalLogic / circle.lua
Created July 3, 2012 14:50
Veigarsuperfunhouse
Circle = {
-- ===========================
-- Creates a new circle of the specified center and radius.
-- ===========================
New = function(self)
local c = {}
setmetatable(c, {__index = self})
return c
end,
--[[
AutoAttacker! + autoCrit 2.0 mod 1
v0.1
AutoAttacker! written by Weee
autoCrit 2.0 mod 1 written by PedobearIGER + mod by Weee
Smash "X" to win! Allows you to attack-move weakest champion in desireable range.
Hold "C" for autoCrit. On Twisted Fate hold space.
]]
--[[ RAPEKTON!!!!!!!!!!!!!!!!!!!!
Script Action 1 = Autoattack-Cull the Meek then Autoattack-Ruthless Predator
Script Action 2 = Autoattack-Ruthless Predator then Autoattack-Cull the Meek ]]
--[[ Config ]]
if player.charName == "Renekton" then
triggerKey1 = 88 -- hotkey: x or X
triggerKey2 = 90-- hotkey: z or Z
--[[ Code ]]
player = GetMyHero()
function altDoFile(name)
-- User: Delusional Logic
-- Date: 05-07-12
-- Time: 21:44
function altDoFile(name)
dofile(debug.getinfo(1).source:sub(debug.getinfo(1).source:find(".*\\")):sub(2)..name)
end
altDoFile("libs/Guilib/utils.lua")
altDoFile("libs/Guilib/window.lua")
@DelusionalLogic
DelusionalLogic / commandStopper.lua
Created July 13, 2012 21:46
Stop's commands from being sent
-- User: Delusional Logic
-- Date: 13-07-12
-- Time: 23:38
do
local prefixes = {'.'}
function chatHandler(msg)
local preLen = startsWith(msg, prefixes)
// ==UserScript==
// @name Grooveshark to TDC PLAY
// @namespace GroovePlay
// @match *grooveshark.*
// @require http://code.jquery.com/jquery-latest.min.js
// @author Delusional Logic
// @description This script aims to implement TDC play playlists into grooveshark.
// ==/UserScript==
var playUrl = "http://musik.tdconline.dk/servlets/2452306090224Dispatch/19/jspforward?file=.%2Findex.jsp&page=search&searchquery=";