Skip to content

Instantly share code, notes, and snippets.

View albertoammar's full-sized avatar
❤️
Because I was born in this world

Alberto Ammar albertoammar

❤️
Because I was born in this world
  • Banco dos Imóveis
  • São Paulo, Brasil
View GitHub Profile
@kevinmarrec
kevinmarrec / elk.md
Last active December 20, 2021 15:26
ELK Stack using Amazon Services : Amazon ES for Elasticsearch & Kibana, and Amazon EC2 for Logstash

This tutorial allows to setup an ELK Stack using Amazon ES (Elasticsearch Service) for Elasticsearch & Kibana, and an EC2 instance running Amazon Linux 2 AMI for Logstash.

For the following Steps, we'll work with the EU (Ireland) (a.k.a eu-west-1) region. Replace eu-west-1 by your region when needed.

We're also assuming you already own an Amazon Web Services Account and you are already logged in.

Configure Amazon ES

Go to https://eu-west-1.console.aws.amazon.com/es
Then click "Create a new domain"

@tonY1883
tonY1883 / ValidateYoutubeVideoId.js
Created September 14, 2017 02:18
A small trick to check if youtube video exist with its id.
function validVideoId(id) {
var img = new Image();
img.src = "http://img.youtube.com/vi/" + id + "/mqdefault.jpg";
img.onload = function () {
checkThumbnail(this.width);
}
}
function checkThumbnail(width) {
//HACK a mq thumbnail has width of 320.
@PurpleBooth
PurpleBooth / README-Template.md
Last active October 14, 2025 10:13
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@mandiwise
mandiwise / Update remote repo
Last active August 20, 2025 13:39
Transfer repo from Bitbucket to Github
// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/
// See also: http://www.paulund.co.uk/change-url-of-git-repository
$ cd $HOME/Code/repo-directory
$ git remote rename origin bitbucket
$ git remote add origin https://github.com/mandiwise/awesome-new-repo.git
$ git push origin master
$ git remote rm bitbucket