Skip to content

Instantly share code, notes, and snippets.

View dioniciodiaz's full-sized avatar
It’s not a bug – it’s an undocumented feature.

Dionicio Diaz dioniciodiaz

It’s not a bug – it’s an undocumented feature.
View GitHub Profile
@dioniciodiaz
dioniciodiaz / 1.md
Created January 2, 2020 17:26 — forked from swyxio/1.md
Learn In Public - 7 opinions for your tech career

1. Learn in public

this essay has been updated on my personal site, together with a followup on how to get started

If there's a golden rule, it's this one, so I put it first. All the other rules are more or less elaborations of this rule #1.

You already know that you will never be done learning. But most people "learn in private", and lurk. They consume content without creating any themselves. Again, that's fine, but we're here to talk about being in the top quintile. What you do here is to have a habit of creating learning exhaust. Write blogs and tutorials and cheatsheets. Speak at meetups and conferences. Ask and answer things on Stackoverflow or Reddit. (Avoid the walled gardens like Slack and Discourse, they're not public). Make Youtube videos or Twitch streams. Start a newsletter. Draw cartoons (people loooove cartoons!). Whatever your thing is, make the thing you wish you had found when you were learni

@dioniciodiaz
dioniciodiaz / node_nginx_ssl.md
Created November 15, 2019 21:13 — 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/5424d440c63a

2. Create a droplet and log in via ssh

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

@dioniciodiaz
dioniciodiaz / vscode_shortcuts.md
Created November 15, 2019 21:12 — forked from bradtraversy/vscode_shortcuts.md
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

Official List of all commands

@dioniciodiaz
dioniciodiaz / cloudSettings
Last active September 12, 2019 19:38
mobile and web settings sync
{"lastUpload":"2019-09-12T19:38:19.349Z","extensionVersion":"v3.4.2"}
@dioniciodiaz
dioniciodiaz / vue-uppy-input-example
Last active May 3, 2019 15:35
Very basic vuejs usage of uppy input file
<template>
<div :id="uppyId">
<div class="uppyFileInput" />
</div>
</template>
<script>
import uppy from "@uppy/core";
import XHRUpload from "@uppy/xhr-upload";
import FileInput from "@uppy/file-input";
@dioniciodiaz
dioniciodiaz / vue-uppy-dashboard-example
Last active May 23, 2019 15:43 — forked from pooot/uppy-vue-example
Very basic vuejs usage of uppy dashboard
<template>
<div :id="uppyId" >
<button
:id="buttonInstanceId"
:class="['uppy-container', dashboardInstanceId, {'btn btn-primary': modalButton}]"
type="button"
class="" >Select File{{ multipleFiles ? 's' : '' }}</button>
</div>
</template>
@dioniciodiaz
dioniciodiaz / job_grades_table.sql
Created January 20, 2019 23:13 — forked from DannyFeliz/job_grades_table.sql
JOB_GRADES TABLE - ORACLE
CREATE TABLE job_grades (
grade CHAR(1),
lowest_sal NUMBER(8,2) NOT NULL,
highest_sal NUMBER(8,2) NOT NULL
);
ALTER TABLE job_grades
ADD CONSTRAINT jobgrades_grade_pk PRIMARY KEY (grade);
INSERT INTO job_grades VALUES ('A', 1000, 2999);
@dioniciodiaz
dioniciodiaz / docker-help.md
Created December 25, 2018 02:28 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info