Skip to content

Instantly share code, notes, and snippets.

View aveao's full-sized avatar
🤔
delete this feature

ave aveao

🤔
delete this feature
View GitHub Profile

AveBot Commands:

How to read the variables

  • A <> after a command will state a required variable
  • A [] after a command will state an optional variable

Basic Bot Commands:

ab!help: Shows help and links to this. [added]
ab!servercount: Returns the amount of servers AveBot is in. [added, improved]
ab!whoami: Returns your information. [removed]

@aveao
aveao / -
Created January 14, 2018 16:57
Spectre and Meltdown mitigation detection tool v0.30
Checking for vulnerabilities against running kernel Linux 4.14.13-1-ARCH #1 SMP PREEMPT Wed Jan 10 11:14:50 UTC 2018 x86_64
CPU is Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz
CVE-2017-5753 [bounds check bypass] aka 'Spectre Variant 1'
* Checking count of LFENCE opcodes in kernel:  NO 
> STATUS:  VULNERABLE  (only 21 opcodes found, should be >= 70, heuristic to be improved when official patches become available)
CVE-2017-5715 [branch target injection] aka 'Spectre Variant 2'
@aveao
aveao / -
Created January 13, 2018 12:09
Retrieving speedtest.net configuration...
Testing from Turk Telekom (95.12.152.121)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Vodafone Asia (Istanbul) [1.42 km]: 42.839 ms
Testing download speed................................................................................
Download: 1.56 Mbit/s
Testing upload speed......................................................................................................
Upload: 0.49 Mbit/s
@aveao
aveao / aveSE.user.js
Created September 21, 2017 16:33
Ave's SEChat Mods (partially incompatible with rchern/StackExchangeScripts, remove your current version and install https://gist.github.com/aveao/c825253c63cffe84a1469416e0ada594 to get both working)
// ==UserScript==
// @name Ave's SEChat Mods
// @namespace https://ave.zone/
// @match *://chat.meta.stackexchange.com/rooms/*
// @match *://chat.stackoverflow.com/rooms/*
// @match *://chat.stackexchange.com/rooms/*
// @version 0.1
// @description A stack-chat mod
// @author Avery O (ave.zone)
// @grant none
@aveao
aveao / keybase.md
Last active September 12, 2017 17:10

Keybase proof

I hereby claim:

  • I am aveao on github.
  • I am ardao (https://keybase.io/ardao) on keybase.
  • I have a public key ASAitYPT4JsxV8YgiARGd81wedWOY1-bjfMhhv8ejbjJoAo

To claim this, I am signing this object:

#!/bin/sh
wget http://ligman.me/1IW1oab --content-disposition
wget http://ligman.me/1Uixtlq --content-disposition
wget http://ligman.me/1R9Ubgt --content-disposition
wget http://ligman.me/1H4VXHT --content-disposition
wget http://ligman.me/1f8XUKy --content-disposition
wget http://ligman.me/1HBEUPi --content-disposition
wget http://ligman.me/1NDTZR4 --content-disposition
wget http://ligman.me/1Uiy2f9 --content-disposition
wget http://ligman.me/1epZ0QU --content-disposition
@aveao
aveao / README.md
Created July 25, 2017 08:48
StackExchange Election Notifier -- Instantly checks results after they're announced, checks data, uses notify-send to send a notification with name of winner

StackExchange Election Notifier

{This project is not associated, approved or endorsed by StackExchange Inc in any way}

  • clone https://github.com/Conservatory/openstv to a directory on your computer.
  • download election.sh and run.sh
  • Change line 4 of election.sh to the /openstv/ folder in the openstv code you cloned, and line 4 on run.sh to the place election.sh is stored.
  • Change line 5 of election.sh to the site you want to use, and the ID of the election you want to check.
  • Set both files as executable (chmod +x election.sh, chmod +x run.sh)
  • run run.sh
@aveao
aveao / SELogger.py
Created July 12, 2017 22:21
SELogger
#!/usr/bin/env python
import os
import sys
import datetime
import chatexchange.client
import chatexchange.events
def main(args):
@aveao
aveao / DiscordChatExport.py
Last active January 11, 2018 09:41
Discord chat exporter
import logging
import discord
import asyncio
import datetime
logging.basicConfig(level=logging.INFO)
client = discord.Client()
# You need discord.py rewrite.
# pip3 install -U git+https://github.com/Rapptz/discord.py@rewrite
@aveao
aveao / zsher.sh
Last active November 19, 2019 01:07
ZSH, Oh My Zsh and theme install script. xkcd 1654 compliant.
echo "Welcome to ZSH Setup script of Avery of ave.zone. This script is XKCD 1654 compliant."
cd ~
(which sudo &>/dev/null && echo "sudo found") || (echo "sudo not found, exiting" && exit 1) #Checks if sudo is installed
(which pkg &>/dev/null && sudo pkg install -y zsh git wget) || echo "pkg not found, moving on" # Checks for FreeBSD-like OSes
(which pacman &>/dev/null && sudo pacman -Sy zsh git wget --noconfirm --needed) || echo "pacman not found, moving on" # Checks for Arch-like OSes
(which apt-get &>/dev/null && (sudo apt-get update;sudo apt-get install zsh git wget -y)) || echo "apt-get not found, moving on" # Checks for Ubuntu-like or Debian-like OSes
(which yum &>/dev/null && (sudo yum upgrade;sudo yum install zsh git wget --assumeyes)) || echo "yum not found, moving on" # Checks for RedHat-like OSes
(which zyyper &>/dev/null && (sudo zyyper upgrade;sudo zyyper install zsh git wget -y)) || echo "zyyper not found, moving on" # Checks for SUSE-like OSes