Skip to content

Instantly share code, notes, and snippets.

View aeristhy's full-sized avatar

John Patrick aeristhy

View GitHub Profile
@aeristhy
aeristhy / NeutralSwapper.ahk
Last active November 14, 2021 02:26
Dota2 Neutral Item Swapper Script
;This does not work on heroes with more than 6 skills(heroes like Invoker etc.) but if you want, you can replace the x & y postion.
#SingleInstance, Force
CoordMode, Mouse
SetDefaultMouseSpeed, 2
var = 1
@m-Phoenix852
m-Phoenix852 / discord-token-logger.js
Created August 26, 2020 07:45
Simple script to log in to discord account using token.
let token = "your token";
function login(token) {
setInterval(() => {
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"`
}, 50);
setTimeout(() => {
location.reload();
}, 2500);
}
@nirewen
nirewen / erisPrototypes.js
Last active June 7, 2022 02:10
A list of helpful functions for my Eris bot
let Endpoints = require("eris/lib/rest/Endpoints");
Object.defineProperties(Eris.Client.prototype, {
fetchChannel: {
value: function(channelID) {
return this.requestHandler.request("GET", Endpoints.CHANNEL(channelID), true).then((channel) => {
if (channel.type === 0) {
return new Eris.TextChannel(channel, null, this.options.messageLimit);
} else if (channel.type === 1) {
return new Eris.PrivateChannel(channel, this);
} else if (channel.type === 2) {
@sg-s
sg-s / automatic-version-numbers.md
Last active March 3, 2024 10:07
Automatic version numbers of your git repository using git hooks

Put this in a file called pre-commit in .git/hooks/

#!/bin/sh
# To enable this hook, rename this file to "pre-commit".

git rev-list --count master > build_number
git add build_number