- Open the browser console with
F12
orCtrl + Shift + I
. - Go to the network tab
- Filter by Fetch/XHR
- Choose a request that isn't an error (if there aren't any, click on a channel or server to trigger some requests.)
- You'll find your discord token under the
request headers
->authorization
section. Copy and paste it from there.
This file contains hidden or 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 | |
# This script downloads the actual list of CloudFlare's IPv4/6 ranges | |
# and allows them to connect to the 443 port (HTTPS) and drops | |
# connections from other addresses. | |
# This is to prevent DDoS attacks and attackers from using the "Host" | |
# header to identify your server backend address. | |
# download the lists and remove the trailing newline | |
ranges4=$(curl -s https://www.cloudflare.com/ips-v4 | head -c -1) | |
ranges6=$(curl -s https://www.cloudflare.com/ips-v6 | head -c -1) |
This file contains hidden or 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
// Make EditText clickable not editable | |
fun makeEditTextClickable(et:EditText){ | |
et.isFocusableInTouchMode = false | |
et.isLongClickable = false | |
} | |
// extract activity from a given context | |
fun requireActivity(context: Context): Activity { | |
if (context is Activity) { | |
return context |
See also:
Service | Type | Storage | Limitations |
---|---|---|---|
Amazon DynamoDB | 25 GB | ||
Amazon RDS | |||
Azure SQL Database | MS SQL Server | ||
👉 Clever Cloud | PostgreSQL, MySQL, MongoDB, Redis | 256 MB (PostgreSQL) | Max 5 connections (PostgreSQL) |
This file contains hidden or 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
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz |
This file contains hidden or 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
www.mysite.com, mysite.com { | |
proxy / webapp:3000 { | |
proxy_header Host {host} | |
proxy_header X-Real-IP {remote} | |
proxy_header X-Forwarded-Proto {scheme} | |
} | |
gzip | |
tls your@email.com | |
} |