Skip to content

Instantly share code, notes, and snippets.

View Nevexo's full-sized avatar

Cameron Fleming Nevexo

View GitHub Profile
@Nevexo
Nevexo / CO2402_Style.xml
Created December 2, 2021 20:22
CO2402 IntelliJ Code Style
<code_scheme name="Nick Style" version="173">
<Objective-C>
<option name="NAMESPACE_BRACE_PLACEMENT" value="2" />
<option name="FUNCTION_BRACE_PLACEMENT" value="2" />
</Objective-C>
<Objective-C-extensions>
<rules>
<rule entity="NAMESPACE" visibility="ANY" specifier="ANY" prefix="" style="CAMEL_CASE" suffix="" />
<rule entity="MACRO" visibility="ANY" specifier="ANY" prefix="" style="SCREAMING_SNAKE_CASE" suffix="" />
<rule entity="CLASS" visibility="ANY" specifier="ANY" prefix="C" style="PASCAL_CASE" suffix="" />
@Nevexo
Nevexo / scoreboard.py
Created October 28, 2021 22:28
4wc-stats
import requests
BASE_URL = ""
# god this code is so bad
print("Requesting...")
r = requests.get(f"{BASE_URL}/getScoreBoard")
if r.status_code != 200:
print(r.status_code)
@Nevexo
Nevexo / gist:e5c77f76093affc81284d4bd4129ee34
Last active January 30, 2020 22:45
R.A.M Example JSON
{
"ram_online": true,
"ram_location": "calais",
"ram_parameters": {
"vehicle": {"data": "Car", "last_changed": "2020-01-30T21:52:16+0000"},
"task": {"data": "Pilot", "last_changed": "2020-01-30T21:52:16+0000"},
"mode": {"data": "Piloting", "last_changed": "2020-01-30T21:52:16+0000"},
"control_mode": {"data": "user_control", "last_changed": "2020-01-30T21:52:16+0000"},
"path": {"data": {"city": "Brussels", "company": "Garage"}, "last_changed": "2020-01-30T21:52:16+0000"}
},
@Nevexo
Nevexo / keybase.md
Created January 24, 2019 16:39
keybase.md

Keybase proof

I hereby claim:

  • I am nevexo on github.
  • I am nevexo (https://keybase.io/nevexo) on keybase.
  • I have a public key ASBhABtkEJauzTB7O0QKcG6SAMKHTpfUd1F9Aytf2CsUjgo

To claim this, I am signing this object:

@Nevexo
Nevexo / ack.py
Last active November 12, 2019 00:28
This tool will mark all of your Discord Servers as read, getting rid of that pesky NEW thing. Requires Python 3.7+ and a Discord Token.
import requests
import time
import sys, argparse
app_name = "DiscordAckkyBoi"; version = "2.0"; username = "heckboi"
base = "https://discordapp.com/api/v6"
print(f"[{app_name}/{version}] Hello World!")
class Discord:
@Nevexo
Nevexo / urgonnaget429d.js
Last active August 2, 2018 23:54
Honestly the worst code - but fun as HECK inspired by https://twitter.com/leinweber/status/989267343002951680 it does that but in discord
const Discord = require('discord.js');
const client = new Discord.Client();
client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
});
let dict = {}
const channels = ["309127154220924929", "441778887064813568", "309894498119319564"] // Place channel IDs in here to monitor - all Dms are monitored by default
@Nevexo
Nevexo / README.md
Created July 30, 2018 13:53
Discord mark as read script

Mark as read for Discord

This script will cycle all servers you're in and mark them all as read! Just run

npm install request

node markasread.js

@Nevexo
Nevexo / ubuntu-bullet-proof-as-frig-discord.sh
Created July 23, 2018 22:48
Skookum As Frig Discord Install script for Deb/Ubu
# The "bullet-proof" skookum-as-frig Discord installer
# Mostly uses DVM but installs that other bullshit too
# Inspired by https://xkcd.com/1654/
cd /tmp
mkdir dvm
cd dvm
git clone https://github.com/aurieh/dvm.sh
cd dvm.sh
chmod +x dvm.sh
@Nevexo
Nevexo / deprecreate.js
Last active April 24, 2018 20:28
Node_modules dependency Generator
//Please note, the code in here is a bit "scratty" but it gets the work done so shush ok? It requires the file to have a package.json.
console.log("[hi doe] Hi mate dis is a script")
var dependencies = {}
var fs = require("fs")
var mnt;
function getDirectories(path) { //Credit to: Titlacauan on Stackoverflow (2014)
return fs.readdirSync(path).filter(function (file) {
return fs.statSync(path+'/'+file).isDirectory();
});
}
@Nevexo
Nevexo / multi.scss
Created August 21, 2017 22:33
singleLineMulti.scss - With crap DMs
.guilds-wrapper {
-webkit-transition: 200ms;
-moz-transition: 200ms;
-o-transition: 200ms;
-ms-transition: 200ms;
transition: 200ms;
width: 122px !important;
}
.guilds-wrapper .scroller-wrap {
width: 200px !important;