Skip to content

Instantly share code, notes, and snippets.

View jaxxibae's full-sized avatar
💼
Working!

David jaxxibae

💼
Working!
View GitHub Profile
@jaxxibae
jaxxibae / TUTORIAL.md
Created January 23, 2018 00:48
Building your first Discord bot in discord.js

Building your first Discord bot

So, you want to write a bot. Sure, it may seem something from another world like beating the final boss on God of War 3 while playing on the hardcore difficulty, but it's actually pretty basic. Today, we're going to use node.js and discord.js to build your first ever Discord bot!

Step 1: Create an Application & a Bot account

No, you're not going to create an account with an e-mail and password. Discord API which makes the bots work uses tokens. No, not casino tokens. Tokens are often described as a long string of jibberish, and it's almost impossible to remember that code every single time.

Creating the Application

@jaxxibae
jaxxibae / keybase.md
Created April 2, 2018 21:15
keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@jaxxibae
jaxxibae / exec.cfg
Last active April 8, 2018 20:13
CS:GO Config
//Rates
rate "128000"
cl_cmdrate "128"
cl_updaterate "128"
cl_interp "0"
cl_interp_ratio "1"
cl_lagcompensation "1"
//Audio
@jaxxibae
jaxxibae / config.md
Last active April 15, 2018 11:49
PC Config - Summer 2k18

Summer 2018 PC Build

  • Case: Cooler Master MasterBox Lite 3.1TG -> 54.90€ PCDiga
  • Motherboard: MSI B350M PRO-VDH -> 70.90€ PCDiga
  • CPU: AMD Ryzen 5 1500X -> 142.90€ PCDiga
  • GPU: MSI GeForce GTX 1050 TI Gaming X 4GB -> 204.90€ PCDiga
  • PSU: Corsair VS550W -> 45.90€ PCDiga
  • RAM: Gskill AEGIS DDR4-2400MHz 8GB (1x8GB) CL15 -> 86.20€ PCDiga
  • HDD: Seagate Barracuda 2TB 7200RPM 6GB/s 64MB Cache -> 71.50€ PCDiga
  • SSD: Kingston A40
@jaxxibae
jaxxibae / config.md
Last active April 30, 2018 20:09
PC Config - Summer 2k18 (Alternative)
@jaxxibae
jaxxibae / gource.sh
Last active March 28, 2020 18:58
Gource + FFmpeg configuration
#!/bin/bash
TITLE="Switchblade development (13/05/2018 - 13/07/2019)"
OUTPUT="1920x1080"
FRAMES_PER_SECOND="60"
ICON_LOCATION="./icon.png"
BACKGROUND_COLOR="000000"
SECONDS_PER_DAY="7"
FONT_SIZE="22"
printf "Opening Gource and recording visualization...\n\n"
@jaxxibae
jaxxibae / extras.md
Created July 16, 2018 15:44
Extras Torneio CS ESLC 2018/19

Extras necessários para o bom funcionamento do torneio:

  • Projeção dos jogos em direto -> Projetores para live watching, twitch.tv para a Internet
  • Comentador(es)
  • Acesso a um servidor c/ conexão interna e externa à Internet
  • SteamCMD (ver gist)
  • 10 (ou mais) cabos Ethernet (RJ45)
  • 1 network switch de pelo menos 10 output ports de Ethernet

Keybase proof

I hereby claim:

  • I am dpaiv0 on github.
  • I am dpaiv0 (https://keybase.io/dpaiv0) on keybase.
  • I have a public key whose fingerprint is 0DC0 1039 E8ED 1459 A71B 66A8 4130 64DD 8BF7 C771

To claim this, I am signing this object:

#!/bin/bash
# Let's first check if all dependencies we need exist...
if ! type "git" > /dev/null; then
echo >&2 "This shell script requires the package 'git', but it's not installed. Aborting...";
exit 1;
fi
if ! type "node" > /dev/null; then