Skip to content

Instantly share code, notes, and snippets.

View marcellodesales's full-sized avatar

Marcello DeSales marcellodesales

View GitHub Profile
This file has been truncated, but you can view the full file.
54027 silly gunzTarPerm extractEntry test/string/#/repeat/index.js
54028 silly gunzTarPerm modified mode [ 'test/string/#/repeat/index.js', 438, 384 ]
54029 silly gunzTarPerm extractEntry test/string/#/repeat/is-implemented.js
54030 silly gunzTarPerm modified mode [ 'test/string/#/repeat/is-implemented.js', 438, 384 ]
54031 silly gunzTarPerm extractEntry test/string/from-code-point/shim.js
54032 silly gunzTarPerm modified mode [ 'test/string/from-code-point/shim.js', 438, 384 ]
54033 silly gunzTarPerm extractEntry test/string/raw/implement.js
54034 silly gunzTarPerm modified mode [ 'test/string/raw/implement.js', 438, 384 ]
54035 silly gunzTarPerm extractEntry test/string/#/repeat/shim.js
54036 silly gunzTarPerm modified mode [ 'test/string/#/repeat/shim.js', 438, 384 ]
@marcellodesales
marcellodesales / asciidoctor-revealjs
Created November 1, 2015 18:05 — forked from cmoulliard/asciidoctor-revealjs
Asciidoctor example for SlideShow HTML5 presentation using RevealJS
:description: RevealJS Template to create a beautiful HTML Slideshow
:backend: revealjs
:author: Charles Moulliard
:twitter: cmoulliard
:blog: http://cmoulliard.github.io
// Themes : default, beige, moon, blood, night, serif, simple, sky, solarized
:revealjs_theme: default
:linkattrs:
:idprefix:
@marcellodesales
marcellodesales / ec2-host-from-tag-to-env-vars.sh
Last active November 8, 2022 11:49
Create Environment Variables in EC2 Hosts from EC2 Host Tags, just like Beanstalk or Heroku does!
######
# Author: Marcello de Sales ([email protected])
# Description: Create Create Environment Variables in EC2 Hosts from EC2 Host Tags
#
### Requirements:
# * Install jq library (sudo apt-get install -y jq)
# * Install the EC2 Instance Metadata Query Tool (http://aws.amazon.com/code/1825)
#
### Installation:
# * Add the Policy EC2:DescribeTags to a User
@marcellodesales
marcellodesales / wercker.yml
Created October 24, 2015 22:14
Building Android Cordova CCA applications with Wercker, publising build to Amazon S3 with Slack Notification
box: marcellodesales/[email protected]
build:
steps:
- script:
name: Install Node dependencies
code: sudo npm install
- script:
name: Update the path with the binaries from Node
code: export PATH="$WERCKER_SOURCE_DIR/node_modules/.bin:$PATH"
- script:
@marcellodesales
marcellodesales / renew-amazon-ec2-ips-by-tag.sh
Last active January 8, 2016 13:42
Renew all of your Amazon aws EC2 Fleet IP addresses by rebooting all of them by Tag:key=value using
#!/bin/bash
ACCESS_KEY=ADD_YOUR_KEY
SECRET_KEY=ADD_YOUR_SECRET
echo "########################################################";
echo "IP Renewal Scheduler at $(date)";
echo "########################################################";
echo "";
@marcellodesales
marcellodesales / 1.INSTALLING EPEL
Created June 21, 2015 18:41
NPM Enterprise Installation on RHEL 7
[root@pppdc9prd8tl tmphttps://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/chap-Managing_Services_with_systemd.html
$ sudo ln -s /usr/lib/systemd/system /etc/init
[root@pppdc9prd8tl npme]# mkdir /etc/systemd/system/npme.d
[root@pppdc9prd8tl npme]# ln -s /etc/systemd/system/npme.d /etc/init
[root@pppdc9prd8tl npme]# ls -la /etc/init
lrwxrwxrwx. 1 root root 26 Jun 20 13:36 /etc/init -> /etc/systemd/system/npme.d]# cd /tmp
[root@pppdc9prd8tl tmp]# wget https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
[root@pppdc9prd8tl tmp]# ls *.rpm
// Confirm the new user by retrieving the password submitted.
User.confirmNewUser = function(id, code, submittedUser, next) {
console.log("Submitted User ID: " + id + "; Data to confirm: " + JSON.stringify(submittedUser));
// Find the user by ID submitted
// http://docs.strongloop.com/display/public/LB/Exposing+models+over+REST
User.findById(id, function (err, savedUser) {
if (err) {
throw err;
@marcellodesales
marcellodesales / build.gradle
Created January 23, 2015 08:31
Java POJO Code Generation from XSD using Gradle 2.1 (See gradle xjc screen below)
buildscript {
repositories {
maven { url "https://repo.spring.io/libs-release" }
mavenLocal()
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.1.10.RELEASE")
//####################### XJC - JDK 1.7/1.8 ####################
### Keybase proof
I hereby claim:
* I am marcellodesales on github.
* I am marcellodesales (https://keybase.io/marcellodesales) on keybase.
* I have a public key whose fingerprint is E1A5 0439 EE01 0DF4 D70A 377F 2B6A FBE5 7EB7 4C28
To claim this, I am signing this object:
/** @module lib/Todos Docs */
"use strict";
var builder = require("xmlbuilder");
/**
* @param {object} todosJson is instance of the json report.
* @return {object} An XML representation of the todos based on sourceforge's todo.
*/