Skip to content

Instantly share code, notes, and snippets.

View AlexRogalskiy's full-sized avatar
🛰️
Work on stuff that matters

Alexander AlexRogalskiy

🛰️
Work on stuff that matters
View GitHub Profile
@AlexRogalskiy
AlexRogalskiy / README.md
Created June 12, 2022 18:59 — forked from DamonOehlman/README.md
Video Loopback on Ubuntu 13.04
@AlexRogalskiy
AlexRogalskiy / README.md
Created June 12, 2022 18:52 — forked from DamonOehlman/README.md
Modules in NPM that look interesting with regards to generating CSS with JS (and some other things discovered along the way).

Currently trawling NPM in search of a node module that makes working with CSS and browserified code "feel" better. My first thought was to seek out an existing project (or create one) that took a programmatic approach to CSS generation.

Here's what I've found:

Generators in Code

Shortlist

  • jcss: Some nice features, and worthy of further investigation. Looks active.
@AlexRogalskiy
AlexRogalskiy / README.md
Created June 12, 2022 18:52 — forked from DamonOehlman/README.md
General WebRTC tips and tricks collated over time
@AlexRogalskiy
AlexRogalskiy / default.conf
Created June 12, 2022 08:10 — forked from DamonOehlman/default.conf
Simple nginx configuration for proxying HTTPS traffic to a local port
server {
listen 443;
server_name localhost;
root html;
index index.html index.htm;
ssl on;
ssl_certificate server.crt;
ssl_certificate_key server.key;
@AlexRogalskiy
AlexRogalskiy / README.md
Created June 12, 2022 08:10 — forked from DamonOehlman/README.md
Research for building an Message Bus Centric Application using Node

Message Bus App Architecture

This is some research focused around looking for node modules that support the development of an application that makes heavy use of a central message bus for cross component communication. The process for identifying potential components was simply to start by looking for packages that depend node the node-redis module, as at this this stage we see redis being the mechanism for powering the bus.

Potential Components

MQTT Centric

@AlexRogalskiy
AlexRogalskiy / AWESOME-ONE-LINERS.md
Created June 12, 2022 08:07 — forked from DamonOehlman/AWESOME-ONE-LINERS.md
Awesome one liners (not to be used in bars)

A collection of useful commands for dealing with various systems.

git

List all (local) branches and report date and sort in descending order:

git for-each-ref --sort=-committerdate refs/heads/ --format='%(committerdate:short) %(refname:short)'
@AlexRogalskiy
AlexRogalskiy / docker_for_mac_disk_default_size.md
Created April 21, 2022 08:35 — forked from stephengfriend/docker_for_mac_disk_default_size.md
How to resize Docker for Mac Disk image and set the default size for new images

Set the default size for new Docker for Mac disk images

If you are getting the error: No space left on device

Configuring the qcow2 size cap is possible in the current versions:

# my disk is currently 64GiB
$ /Applications/Docker.app/Contents/MacOS/qemu-img info ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2
image: /Users/djs/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2
@AlexRogalskiy
AlexRogalskiy / README.md
Created April 21, 2022 08:33 — forked from stephengfriend/README.md
VS Code as a Service

VS Code as a Service

Getting Started

Pre-requisites

  • Docker
  • Docker Compose
  • Yarn
  • Optional: Docker Machine
@AlexRogalskiy
AlexRogalskiy / tmux.sh
Created April 21, 2022 08:30 — forked from stephengfriend/tmux.sh
Visual Studio Code + tmux session integration
# Auto Start Tmux (must be last)
if [[ -z "$TMUX" ]] then
tmux_session='default'
terminal_slug="`echo $TERM_PROGRAM | iconv -t ascii//TRANSLIT | sed -E 's/[^a-zA-Z0-9-]+/-/g' | sed -E 's/^-+|-+$//g' | tr A-Z a-z | head -c 7`"
if [[ $TERM_PROGRAM == 'vscode' ]]; then
tmux_session="$terminal_slug-`pwd | sha1sum | head -c 8`"
fi
tmux new-session -A -d -s "$tmux_session"

SSH into AWS ec2/ Digitalocean droplet/ or else other PAAS, linux machine

  1. Install Docker
$sudo apt install docker.io
$sudo usermod -aG docker $USER

I already installed docker