Skip to content

Instantly share code, notes, and snippets.

View tg21's full-sized avatar
:octocat:
BUSY

Tushar Gautam tg21

:octocat:
BUSY
View GitHub Profile
@tg21
tg21 / meanOnEC2withTLS.md
Last active October 31, 2020 08:13
Setting Up MEAN stack app on amazon-ec2 with free TLS support for express and websockets as background service

Do exactly like this in this specific order

First Launch an instance (ubuntu is preferred) with port 22,80 and 443 open for ssh, http and https respectively.

after successfully ssh-ing into your server using ssh -i <ssh_key.pem> ubuntu@<your_server_ip> run following commands

Install Pre-requisites for MEAN

Install Node

go to nodesource and choose method to install latest LTS node

@Ciantic
Ciantic / keyboardlistener.cs
Created July 11, 2010 17:33
C# Keyboard listener
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Windows.Input;
using System.Windows.Threading;
using System.Collections.Generic;
namespace Ownskit.Utils
{