Skip to content

Instantly share code, notes, and snippets.

View alexander-alegre's full-sized avatar
:shipit:

Alexander Alegre alexander-alegre

:shipit:
View GitHub Profile
@alexander-alegre
alexander-alegre / cloudSettings
Last active July 11, 2019 20:48
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-07-11T20:48:35.521Z","extensionVersion":"v3.3.1"}
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@alexander-alegre
alexander-alegre / .do.cfg
Last active May 9, 2019 23:24
Sublime Settings
[
{
"repository": "",
"project": "",
"login": "",
"host": "",
"engine": "http",
"password": "",
"disabled": "remove to enable"
},
@alexander-alegre
alexander-alegre / .editorconfig
Created February 20, 2018 18:17 — forked from JamesMGreene/.editorconfig
Example EditorConfig file
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
root = true
[*]
end_of_line = lf
charset = utf-8
# The prompt
PROMPT='$(_user_host)$(_python_venv)%{$fg[cyan]%}%c $(git_prompt_info)%{$reset_color%}$(_git_time_since_commit)$(git_prompt_status)${_return_status}➜ '
# Prompt with SHA
# PROMPT='$(_user_host)$(_python_venv)%{$fg[cyan]%}%c $(git_prompt_info)%{$reset_color%}$(git_prompt_short_sha)%{$fg[magenta]%}$(_git_time_since_commit)$(git_prompt_status)${_return_status}➜ '
local _return_status="%{$fg[red]%}%(?..⍉ )%{$reset_color%}"
function _user_host() {
if [[ -n $SSH_CONNECTION ]]; then
# README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
#
# In addition, I recommend the
# [Tomorrow Night theme](https://github.com/chriskempson/tomorrow-theme) and, if
# you're using it on Mac OS X, [iTerm 2](http://www.iterm2.com/) over
# Terminal.app - it has significantly better color fidelity.
@alexander-alegre
alexander-alegre / tslint.json
Created August 10, 2018 06:28 — forked from piotrwitek/tslint.json
TSLint rules with ESLint/React extension based on airbnb style guide
{
"rules": {
"align": [
true,
"parameters",
"arguments",
"statements"
],
"ban": false,
"class-name": true,
@alexander-alegre
alexander-alegre / prettier.config.js
Last active May 13, 2020 17:35
My default prettier settings for JavaScript
module.exports = {
trailingComma: 'all',
semi: true,
singleQuote: true,
printWidth: 100
};
@alexander-alegre
alexander-alegre / node_nginx_ssl.md
Last active May 8, 2020 19:07 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5ac12c45bf84

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@alexander-alegre
alexander-alegre / deployment_guide.md
Last active July 10, 2021 19:08 — forked from vicgonvt/deployment_guide.md
Deployment Guide for Ubuntu Server from Scratch with Laravel

Getting Started

  • Create droplet with Ubuntu 18.10
  • ssh root@[DROPLET IP ADDRESS]
  • Get password from your email
  • Change password on first login
  • adduser laravel
  • Enter password and other information
  • usermod -aG sudo laravel