Skip to content

Instantly share code, notes, and snippets.

View juliosmelo's full-sized avatar
Working from home

Julio Silveira Melo juliosmelo

Working from home
  • Blue earth
View GitHub Profile
bradtraversy / vsc_js_snippets.json
Last active December 8, 2022 03:34
VSCode JavaScript Snippets
"Console Log": {
"prefix": "cl",
"body": "console.log($1);",
"description": "Console Log"
"Named Function": {
"prefix": "nfn",
"body": ["function ${1:functionName}($2) {", " $3", "}"],
"description": "Named Function"
steven2358 /
Last active July 13, 2024 20:20
FFmpeg cheat sheet
murarisumit /
Created May 19, 2015 04:38
AWS boto delete AMI after specific Days.
import boto
import boto.ec2
import sys
import time
import os
import datetime
from datetime import date
#Filter used to filter my instances
vEnvironment = "Prod"
bradmontgomery / install-comodo-ssl-cert-for-nginx.rst
Last active June 10, 2024 15:37
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

rgreenjr / postgres_queries_and_commands.sql
Last active July 18, 2024 22:25
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(clock_timestamp(), query_start), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'