wget https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64
mv MailHog_linux_amd64 mailhog
chmod +x mailhog
sudo vi /etc/systemd/system/mailhog.service
ALL INSTALLATIONS ASSUME YES WHEN PROMPTED, that's what -y does
This script can be copy paste to ssh as is. No hands installation. :-)
yum install zsh -y
extension Date { | |
func add(_ component: Calendar.Component, value: Int) -> Date { | |
return Calendar.current.date(byAdding: component, value: value, to: self)! | |
} | |
} | |
@propertyWrapper | |
struct BeginEndDate { |
/* | |
1) Open https://popcat.click | |
2) Open console (F12) | |
3) Insert code & run | |
*/ | |
var event = new KeyboardEvent('keydown', { | |
key: 'g', | |
ctrlKey: true |
#!/usr/bin/env php | |
<?php | |
function getContents($params) | |
{ | |
[$self, $file, $startLine, $startColumn, $endLine, $endColumn] = $params; | |
--$startLine; | |
--$startColumn; | |
--$endLine; | |
--$endColumn; |
# Serve nextJS app from a port through NGINX reverse proxy (HTTP) | |
# Path: /etc/nginx/sites-available/default | |
# Default server configuration for HTTP | |
server { | |
server_name www.DOMAINNAME.com DOMAINNAME.com; | |
# Serve any static assets with NGINX | |
location /_next/static { | |
alias /home/ubuntu/PROJECT_FOLDER/.next/static; |