Skip to content

Instantly share code, notes, and snippets.

ssh-keygen -s ./ca_key -I OurDevServer -h -Z *.mydomain.com -V +180d -z 1 ssh_host_rsa_key.pub
// Sharing Files
shareFile = function (file) {
var filesArray = [file];
if (!navigator.canShare || !navigator.canShare({ files: filesArray })) return;
navigator.share({
files: filesArray,
title: 'My File',
text: 'Here, Sharing my files. Keep it safe',
}).then(() => console.log('Share was successful.'))
.catch((error) => console.log('Sharing failed', error));
// Share Url
shareUrl = function() {
if (!navigator.share) return;
navigator.share({
url: "https://mywebsite.com",
title: "Sharing Cool things",
text: "Checkout my really cool website."
})
.then(() => { console.log("Shared YEEEE!!!!!"); })
@import 'node_modules/antd/dist/antd.less';
@primary-color: #CA6027; // primary color for all components
@link-color: #5C987A; // link color
@success-color: #52c41a; // success state color
@warning-color: #faad14; // warning state color
@error-color: #f5222d; // error state color
@font-size-base: 14px; // major text font size
@heading-color: rgba(0, 0, 0, 0.85); // heading text color
@text-color: rgba(0, 0, 0, 0.65); // major text color
@text-color-secondary: rgba(0, 0, 0, 0.45); // secondary text color
ssh -R 5000:localhost:3000 ubuntu@forward.mydomain.com
sudo a2enmod proxy
sudo a2enmod proxy_http
<VirtualHost *:80>
ServerName forward.mydomain.com
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:5000/
ProxyPassReverse / http://127.0.0.1:5000/
</VirtualHost>