Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Julio Silveira Melo juliosmelo

🏠
Working from home
  • SOLVD
  • Blue earth
View GitHub Profile
@bradtraversy
bradtraversy / vsc_js_snippets.json
Last active Aug 15, 2022
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 Aug 16, 2022
FFmpeg cheat sheet
View ffmpeg.md
@murarisumit
murarisumit / deleteAMIAfterSpecificDate.py
Created May 19, 2015
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 May 18, 2022
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 Aug 18, 2022
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%'