This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl https://deac-ams.dl.sourceforge.net/project/neodatis-odb/NeoDatis%20ODB%20for%20Java/1.9/1.9.30/neodatis-odb-1.9.30.689.zip -o neodatis.zip | |
unzip neodatis.zip | |
cd neodatis-odb-1.9.30-689 | |
sudo cp lib/looks-2.2.1.jar /usr/local/lib/looks.jar | |
sudo cp neodatis-odb-1.9.30.689.jar /usr/local/lib/neodatis-odb.jar | |
echo "java -cp /usr/local/lib/looks.jar:/usr/local/lib/neodatis-odb.jar org.neodatis.odb.gui.ODBExplorerMain" | sudo dd of=/usr/local/bin/neodbe.sh | |
sudo chmod +x /usr/local/bin/neodbe.sh | |
cd .. | |
rm neodatis.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// load libraries | |
require('dotenv').config(); | |
const express = require('express'); | |
const mongoose = require('mongoose'); | |
// start mongoose with the .env connection string | |
async function start() { | |
try { | |
await mongoose.connect(process.env.CONNECTION); | |
console.log('Mongoose started'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ program bot; | |
uses | |
Winapi.Windows, System.SysUtils, System.Variants, System.Classes, | |
System.StrUtils, System.Net.URLClient, System.Net.HttpClient, | |
System.Net.HttpClientComponent; | |
{$APPTYPE CONSOLE } | |
{ var |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//THIS IS CODED LIKE SHIT, ONLY TO BE USED TEMPORALY TIL REFACTORED | |
program bot; | |
uses | |
Winapi.Windows, System.SysUtils, System.Variants, System.Classes, | |
System.StrUtils, System.Net.URLClient, System.Net.HttpClient, | |
System.Net.HttpClientComponent; | |
{$APPTYPE CONSOLE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Credits to https://gist.github.com/niahoo/c99284a8908cd33d59b4aff802179e9b and https://gist.github.com/CarletonStuberg/0c838a6248772c6fea1339ddad503cce | |
// Turn on Developer Mode under User Settings > Appearance > Developer Mode (at the bottom) | |
// Then open the channel you wish to delete all of the messages (could be a DM) and click the three dots on the far right on your last message. | |
// Click "Copy ID" and paste that instead of LAST_MESSAGE_ID. | |
// Open the console with control+shift+i | |
// Go to network tab | |
// Move between two channels | |
// You should see a new request that says something along the lines "messages?limit=50" | |
// Open the request and find the header "authorization" and copy the RequestHeaders (you can save the authorization token for later). |