Skip to content

Instantly share code, notes, and snippets.

View alexander-morris's full-sized avatar
🎈

Al Morris alexander-morris

🎈
View GitHub Profile
@SathyaBhat
SathyaBhat / gist:894012
Created March 30, 2011 07:36
Chrome extensions keyboard shortcut handler
/*
Right here's the thing - for keyPress events to be run, you'll have to make use of
content scripts. Content scripts handle things at webpage & DOM level. You'll have
to do changes to your manifest:
*/
------------------------
manifest.json:
------------------------
/*
Note: don't replace manifest.json, add the relevant changes else
@obolton
obolton / elb-nodejs-ws.md
Last active November 12, 2023 11:49
Configuring an AWS Elastic Load Balancer for a Node.js application using WebSockets on EC2

AWS ELB with Node.js and WebSockets

This assumes that:

  • You are using Nginx.
  • You want to accept incoming connections on port 80.
  • Your Node.js app is listening on port 3000.
  • You want to be able to connect to your Node.js instance directly as well as via the load balancer.

####1. Create load balancer

alpine-persistent-usb

Guide for making an Alpine Linux USB with persistence

Note: Replace all instances of {?X} (including the braces) with the proper value

Preparation

  1. Download the latest version of Alpline Standard x86_64
  2. Write it to a USB using dd or rufus and leave a shared or unallocated partition to use later for your /home directory
  3. Reboot to your boot menu and boot to Alpine on the USB