Skip to content

Instantly share code, notes, and snippets.

View edneyego's full-sized avatar

Edney Oliveira edneyego

  • Brasil - MG / Belo Horizonte
View GitHub Profile
@edneyego
edneyego / NgbDateFrParserFormatter
Created August 16, 2018 13:36 — forked from bechelani/NgbDateFrParserFormatter
Example of ngb-date-parser-formatter implementation (ng-bootstrap)
.
@edneyego
edneyego / default.j2
Created August 23, 2018 14:12 — forked from perfecto25/default.j2
Python function to send email using a Jinja HTML template
<style type="text/css">
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
src: local('Open Sans Light'), local('OpenSans-Light'), url(http://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTa-j2U0lmluP9RWlSytm3ho.woff2) format('woff2');
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
}
.body {
width: 90%;
@edneyego
edneyego / git.migrate
Created September 24, 2018 13:36 — forked from niksumeiko/git.migrate
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.
@edneyego
edneyego / README.md
Created February 22, 2019 14:09 — forked from kui/README.md
Eclipse Shortcut for Ubuntu

Eclipse Shortcut for Ubuntu Unity

a shortcut to run Eclipse on Ubuntu Unity and to register Eclipse with the left Launcher

Installation

@edneyego
edneyego / start-stop-ec2-instances.js
Created May 8, 2019 21:52 — forked from eddmann/start-stop-ec2-instances.js
Scheduled Start/Stop of EC2 Instances using Lambda and CloudWatch Events
// Demonstration video can be found at: https://youtu.be/roAerKVfq-Y
// StopEC2Instance
const AWS = require('aws-sdk');
exports.handler = (event, context, callback) => {
const ec2 = new AWS.EC2({ region: event.instanceRegion });
ec2.stopInstances({ InstanceIds: [event.instanceId] }).promise()