Skip to content

Instantly share code, notes, and snippets.

View estevanjantsk's full-sized avatar
:shipit:

Estevan Jantsk estevanjantsk

:shipit:
View GitHub Profile

These are generic npm scripts that you can copy & paste into your package.json file as-is and get access to convinience scripts to manage your Docker images all in one place.

Looking for npm scripts for AWS ECS? Go here!

Watch the video: Do More With Less JavaScript

Docker Containers for Static or Angular/React/Vue/etc SPA Websites

@estevanjantsk
estevanjantsk / postgres-cheatsheet.md
Created March 10, 2019 16:43 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@estevanjantsk
estevanjantsk / StreamMixer.ts
Created December 13, 2018 23:38 — forked from grishgrigoryan/StreamMixer.ts
StreamMixer helps to play with MediaStream: Merge multiple streams into single one ( can be used with WebRtc to send multiple streams over a single WebRTC MediaConnection, or to switch streams without worrying about renegotiation)
export class StreamMixer {
streams: Array<{
id: string,
audioSource: any,
gainNode: any,
mediaStream: MediaStream
}>;
destination: any;
audioCtx: any;
@estevanjantsk
estevanjantsk / client.js
Created November 21, 2018 00:54 — forked from crtr0/client.js
A simple example of setting-up dynamic "rooms" for socket.io clients to join
// set-up a connection between the client and the server
var socket = io.connect();
// let's assume that the client page, once rendered, knows what room it wants to join
var room = "abc123";
socket.on('connect', function() {
// Connected, let's sign-up for to receive messages for this room
socket.emit('room', room);
});
@estevanjantsk
estevanjantsk / upgrade.sh
Created March 13, 2018 12:19 — forked from bocharsky-bw/upgrade.sh
Shell Script for Upgrade Ubuntu via APT in one step
#!/bin/bash
TEXT_RESET='\e[0m'
TEXT_YELLOW='\e[0;33m'
TEXT_RED_B='\e[1;31m'
sudo apt-get update
echo -e $TEXT_YELLOW
echo 'APT update finished...'
echo -e $TEXT_RESET
@estevanjantsk
estevanjantsk / Update .gitignore
Created March 5, 2018 00:21 — forked from c33k/Update .gitignore
Updating .gitignore and cleaning the cache
//First commit any outstanding code changes, and then, run this command:
git rm -r --cached .
//This removes any changed files from the index(staging area), then just run:
git add .
//Commit
git commit -m "Atualizando .gitignore para..."
# remove specific file from git cache
git rm --cached filename
# remove all files from git cache
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
@estevanjantsk
estevanjantsk / README.md
Created October 28, 2017 19:20 — forked from denji/README.md
Remove/Backup – settings & cli for macOS (OS X) – DataGrip, AppCode, CLion, Gogland, IntelliJ, PhpStorm, PyCharm, Rider, RubyMine, WebStorm
@estevanjantsk
estevanjantsk / new_rails_app_cheatsheet.txt
Last active February 1, 2017 01:25 — forked from fajrif/rvm_cheatsheet
RVM cheatsheet
1. Open terminal and check versions of Ruby on Rails agains production server params or to make sure you are using the mos recent stable version.
$ ruby -v
$ rvm list
$ rvm list know
$ rvm install ruby 2.2.1
$ rvm list
$ ruby -v
$ gem install rails
$ rails -v
@estevanjantsk
estevanjantsk / 0_reuse_code.js
Created December 19, 2016 12:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console