Skip to content

Instantly share code, notes, and snippets.

View ruslanguns's full-sized avatar
👨‍💻
copy/pasting some code from stack overflow

Ruslan Gonzalez ruslanguns

👨‍💻
copy/pasting some code from stack overflow
View GitHub Profile
@ruslanguns
ruslanguns / docker.sh
Created November 2, 2019 15:29
NestJS Docker Script for shorter commands
#!/usr/bin/env bash
# Initialise option flag with a false value
OPT_RUN='false'
OPT_BUILD='false'
OPT_TEST='false'
# Process all options supplied on the command line
while getopts ':r, :b, :t' 'OPTKEY'; do
case ${OPTKEY} in
@ruslanguns
ruslanguns / domain.tld.conf
Last active February 16, 2023 11:54
Prefered NGINX setup for proxy reverse for code-server
server {
listen 80;
server_name domain.tld; # change domain.tld with your DNS domain name
access_log /var/log/nginx/{NAME}-access.log; # change {NAME}
error_log /var/log/nginx/{NAME}-error.log;
location / {
@ruslanguns
ruslanguns / generate-ssh-key.sh
Created June 26, 2018 09:56 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa