These are just rough notes, maybe I'll clean them up later.
You may only need the environment or the command-line parameter to force Discord to use a proxy. It doesn't hurt to use both
So if you're behind a firewall and need to go through, e.g. an SSH dynamic port forward (a SOCKS5 channel inside an SSH session) you can use the following:
$ nohup ssh -D1080 proxy_server &
$ http_proxy=socks5://127.0.0.1:1080 https_proxy=socks5://127.0.0.1:1080 /opt/Discord/Discord --proxy-server="socks5://127.0.0.1:1080"
Access to Ameritrade API
notes that may be helpful for node.js devs
What I've gathered is authorization tokens must be earned first. Authorization tokens are good for three months, once you are setup, you will get two tokens which come as long strings, An access_token and a refresh_token. Access tokens are only valid for 30 minutes so you will need to code to refresh the session using the refresh token frequently. When you refresh, you are given a new access token and that is what you use to "login" or pull from the api for the next period. But in order to get the tokens, you will be required to go through some processes to get a valid token that applies to your app. The following text kind of steers you in that direction...
Making an app
On the api site you will need to make an app, where you pick some random name by using some random numbers. It should be automatically generated but it isnt. For this field item, I simply went to https://www.uuidgenerator.net/ and just grabbed the firs
apt-get install python-pip
pip install shadowsocks
sudo ssserver -p 443 -k password -m aes-256-cfb --user nobody -d start
Standard: | |
-Xmx -- Increase heap size to 50% total machine ram, or 24gb -- whichever is smaller | |
-XX:+UseG1GC -- More efficient server GC in Java 8 | |
-XX:+UseAES -XX:+UseAESIntrinsics -- Use Hardware crypto features for AES if available | |
-XX:+AggressiveOpts -- Experimental faster JVM tunings | |
-Djava.awt.headless=true -- Required for headless unix boxes for Java2D support to work properly | |
-Djava.io.tmpdir=/tmp -- Recommended to set somewhere with fast i/o | |
Debugging: | |
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp -- Used for triaging heap full errors |
function decode-authorization-failure-message { | |
if [ $# -ne 1 ] || [ "$1" = -h ] || [ "$1" = --help ]; then | |
cat <<'EOT' | |
Usage: decode-authorization-failure-message <message> | |
Use this when Amazon gives you an "Encoded authorization failure message" and | |
you need to turn it into something readable. | |
EOT | |
return 1 | |
fi |
#!/bin/bash | |
now="$(date +'%d-%m-%Y')" | |
logfile="compact-$now.log" | |
installfolder="/data/aem" | |
aemfolder="$installfolder/crx-quickstart" | |
oakrun="$installfolder/help/oak-run-1.0.18.jar" | |
## Shutdown AEM | |
printf "Shutting down AEM.\n" | |
$aemfolder/bin/stop |
- How to Rebuild a Pre-Existing AEM+Mongo Cluster
- or migrate from Tar to MongoDB or MongoDB to Tar"
- or migrate from 5.6.1 or 6.x to 6.x via data migration instead of jar upgrade
- (Mongo to Mongo only) Remove one replica from the replica set and delete/recreate the db
- Remove the replica node from the set: http://docs.mongodb.org/master/tutorial/remove-replica-set-member/
- Validate that no other nodes in the set consider that node to be part of the set anymore. Log into each node in the cluster via mongo shell and run rs.status() to validate that the node that was taken out is not in the cluster any longer.
- Drop the aem database on that node http://docs.mongodb.org/manual/reference/command/dropDatabase/
- Re-add the database with the correct user permissions (do not add the mongo instance back to the replica set)
# Adding include/exclude rules to CQ/AEM package filters through cURL. | |
# Through a simple search, you will find numerous lists of CQ/AEM cURL commands. | |
# However, I haven't seen an example of adding rules to package filters. The | |
# JSON "rules" key takes an array value. You can leave the array empty if you | |
# don't need to include any rules. The array is of JSON objects with a | |
# "modifier" key and value of "include" or "exclude", and a "pattern" key with | |
# your path or regular expression as the value. | |
# create package |
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
Please comment & let me know if you have a fork / fixes you'd like to include.