Skip to content

Instantly share code, notes, and snippets.

View Ralph-Fonz's full-sized avatar
🎮
I need a (outdoor)hobby

Raphael Ralph-Fonz

🎮
I need a (outdoor)hobby
  • WTE Solutions
  • North Carolina
View GitHub Profile
@Ralph-Fonz
Ralph-Fonz / openvpn_pia
Created March 10, 2022 17:50
How to setup headless (No GUI/CLI Only) ubuntu openvpn pia
## Install OpenVPN
# Now we install and configure OpenVPN, do the following commands:
sudo apt-get install openvpn
cd /etc/openvpn
sudo wget https://www.privateinternetaccess.com/openvpn/openvpn.zip
@Ralph-Fonz
Ralph-Fonz / delete-all-messages.js
Created April 15, 2019 23:22 — forked from IMcPwn/delete-all-messages.js
Delete all messages in a Discord channel
// 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.
// Click "Copy ID" and paste that instead of LAST_MESSAGE_ID.
// Copy / paste the below script into the JavaScript console.
// If you're in a DM you will receive a 403 error for every message the other user sent (you don't have permission to delete their messages).
var before = 'LAST_MESSAGE_ID';
clearMessages = function(){
const authToken = document.body.appendChild(document.createElement`iframe`).contentWindow.localStorage.token.replace(/"/g, "");
const channel = window.location.href.split('/').pop();