- wordpress 18.04 marketplace droplet
- submit an ssh key
ssh-keygen -t rsa
- once droplet is created, create A record to point at the droplet's IP
- ssh into
ssh root@YOURIP
to set root password/finish install- includes LetsEncrypt, for later SSL, run
certbot --apache -d YOURDOMAIN.com -d www.YOURDOMAIN.com
- includes LetsEncrypt, for later SSL, run
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
var square = document.getElementById("square"); | |
var red = 255; | |
var green = 0; | |
var blue = 0; | |
var towardsBlue = true; | |
setInterval(function(){ | |
// template literal: |
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
<img | |
class="header_image img_preload" | |
title="<?= $image->toFile()->title() ?>" | |
alt="<?= $image->toFile()->title() ?>" | |
srcset="<?= $image->toFile()->resize(700)->url() ?> 700w, | |
<?= $image->toFile()->resize(1400)->url() ?> 1400w" | |
sizes="(min-width: 768px) 80vw, 100vw" | |
src="<?= $image->toFile()->url()?>" | |
> |
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
var Site = {}; | |
Site.loaded = function(){ | |
console.log("DOMContentLoaded") | |
} | |
document.addEventListener('DOMContentLoaded', function(event) { | |
Site.loaded(); | |
}) |
- extracted from Digital Ocean
sftp root@your_server_ip
help
or?
- exit
bye
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
Show hidden characters
{ | |
"presets": ["@babel/preset-env"], | |
"plugins":[ | |
["@babel/transform-react-jsx", {"pragma" : "h"}] | |
] | |
} |
sudo killall VDCAssistant
change the files to chmod 644 and folders to 755:
- .htaccess to 644:
chmod 644 .htaccess
- index.php to 644:
chmod 644 index.php
- panel/ to 755:
chmod 755 panel/
- panel/index.php to 644
chmod 644 panel/index.php
chmod can be edited through ssh:
chmod XXX filepath
NewerOlder