Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Prgrmmr

Esmail EL BoB EsmailELBoBDev2

:octocat:
Prgrmmr
View GitHub Profile
@EsmailELBoBDev2
EsmailELBoBDev2 / bash-colors.md
Created Dec 16, 2020 — forked from JBlond/bash-colors.md
The entire table of ANSI color codes.
View bash-colors.md

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@EsmailELBoBDev2
EsmailELBoBDev2 / debugging.sh
Created Dec 14, 2020 — forked from epynic/debugging.sh
Bash Scripting Zero to Hero Examples
View debugging.sh
#debugging shellscripts -x would show the scrips line by line and output followed by
#!/bin/bash -x
TEST_VAR="test"
echo "$TEST_VAR"
#custom
#set -x / start debugginh
#set +x / stop
#-ex exit on stop
#-v prints shell before substitution are applied
#-vx
@EsmailELBoBDev2
EsmailELBoBDev2 / delete-all-messages.js
Created Mar 6, 2020 — forked from CarletonStuberg/delete-all-messages.js
Delete all messages in a Discord channel
View delete-all-messages.js
// 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();
@EsmailELBoBDev2
EsmailELBoBDev2 / .bash_aliases
Created Jan 26, 2020 — forked from vratiu/.bash_aliases
Git shell coloring
View .bash_aliases
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
@EsmailELBoBDev2
EsmailELBoBDev2 / LICENCE SUBLIME TEXT
Created Feb 21, 2019
Sublime Text 3 Serial key build is 3176
View LICENCE SUBLIME TEXT
## Sublime Text 3 Serial key build is 3176
> * Added these lines into /etc/hosts
127.0.0.1 www.sublimetext.com
127.0.0.1 license.sublimehq.com
> * Used the license key
----- BEGIN LICENSE -----