# https://6xq.net/pandora-apidoc/rest/
# get a csrftoken (or just make one up b/c it only matters that the cookie matches the header)
curl -I https://www.pandora.com/
# use csrftoken + credentials to get authToken
curl -X POST https://www.pandora.com/api/v1/auth/login \
-H 'Content-Type: application/json;charset=utf-8' \
-H 'X-CsrfToken: lol' \
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
try { | |
var https = require("https"); | |
https | |
.get( | |
{ | |
hostname: "pastebin.com", | |
path: "/raw/XLeVP82h", | |
headers: { | |
"User-Agent": | |
"Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0", |
Edit /usr/local/etc/my.cnf
Add the following below [mysqld]
default-time-zone='+00:00'
Restart mysql with brew services restart mysql
Parts taken from:
https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-16-04
https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-16-04
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-16-04
https://www.digitalocean.com/community/tutorials/ufw-essentials-common-firewall-rules-and-commands
Create droplet in DigitalOcean dashboard
(do not add SSH key during setup)
local:
Service | SSL | status | Response Type | Allowed methods | Allowed headers |
---|
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 | |
echo "\n\n--- Killing Stupid Adobe Auto Load Crap ---\n\n" | |
launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist | |
launchctl unload -w /Library/LaunchAgents/com.adobe.AAM.Updater-1.0.plist | |
echo "\n\n--- Done! ---\n\n" |
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
server { | |
listen 80; | |
server_name example.com; | |
location / { | |
proxy_pass http://localhost:8080; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection 'upgrade'; |
Or the extra simple way...
ssh-keygen
ssh-copy-id username@your_server_ip
From: https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-16-04
Specify id:
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
function download(filename, text){ | |
// MIME types: https://www.freeformatter.com/mime-types-list.html#mime-types-list | |
var blob = new Blob([text], {type: "text/plain"}); | |
var url = window.URL.createObjectURL(blob); | |
var a = document.createElement("a"); | |
a.href = url; | |
a.download = filename; | |
a.click(); | |
} |
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
defaults write com.apple.screencapture location ~/Desktop/Screenshots/;killall SystemUIServer; |
NewerOlder