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
  • laboratoriohacker.com
  • Blue earth
View GitHub Profile
@bradtraversy
bradtraversy / vsc_js_snippets.json
Last active December 8, 2022 03:34
VSCode JavaScript Snippets
View vsc_js_snippets.json
{
"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
steven2358 / ffmpeg.md
Last active February 14, 2024 19:06
FFmpeg cheat sheet
View ffmpeg.md
@murarisumit
murarisumit / deleteAMIAfterSpecificDate.py
Created May 19, 2015 04:38
AWS boto delete AMI after specific Days.
View deleteAMIAfterSpecificDate.py
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
bradmontgomery / install-comodo-ssl-cert-for-nginx.rst
Last active December 31, 2023 18:49
Steps to install a Comodo PositiveSSL certificate with Nginx.
View install-comodo-ssl-cert-for-nginx.rst

Setting up a SSL Cert from Comodo

I use Namecheap.com 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
rgreenjr / postgres_queries_and_commands.sql
Last active February 22, 2024 07:27
Useful PostgreSQL Queries and Commands
View postgres_queries_and_commands.sql
-- 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%'