Skip to content

Instantly share code, notes, and snippets.

View hmarcelodn's full-sized avatar

Hugo Marcelo Del Negro hmarcelodn

  • Melon Technologies
  • Argentina
View GitHub Profile
@hmarcelodn
hmarcelodn / gist:7417187
Created November 11, 2013 17:43
Gist for bash to remove Ruby installation when it is generated by compiling the binaries. First check you source folder and you will find the .installed.list (doing ls -la for instance).
#!/bin/bash
for line in $(cat /home/developer/ruby-2.0.0-p247/.installed.list); do
if [[ -f $line ]]; then
eval "rm $line"
elif [[ -d $line ]]; then
eval "rm -rf $line"
fi;
done
@hmarcelodn
hmarcelodn / Gruntfile.js
Created September 2, 2015 11:59
Gruntfile.js Template for having LiveReload
module.exports = function(grunt){
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
connect: {
all:{
options:{
port: 9000,
hostname:"0.0.0.0",
{
"name": "skeleton-typescript-webpack",
"version": "1.0.0",
"description": "A starter kit for building a standard navigation-style app with Aurelia and Webpack.",
"main": "dist/app.bundle.js",
"repository": {
"url": "git+ssh://git@github.com/aurelia/skeleton-navigation.git",
"type": "git"
},
"author": "Bazyli Brzóska <bazyli.brzoska@gmail.com> (https://invent.life/)",
import { Aurelia } from 'aurelia-framework';
import { PLATFORM } from 'aurelia-pal';
import { AuthService } from 'aurelia-auth';
import * as Bluebird from 'bluebird';
import * as AureliaAuth from 'aurelia-auth'
import * as authConfig from './authConfig';
Bluebird.config({ warnings: { wForgottenReturn: false } });
export async function configure(aurelia: Aurelia) {
import { PLATFORM } from 'aurelia-pal';
export { NavBar } from './bar/nav-bar';
export function configure(config) {
config.globalResources([
/*PLATFORM.moduleName('./bar/nav-bar'),
PLATFORM.moduleName('./text-editor'),
PLATFORM.moduleName('./search-bar'),
PLATFORM.moduleName('./controls/check-box'),
PLATFORM.moduleName('./controls/tabs'),
const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const { AureliaPlugin, ModuleDependenciesPlugin } = require('aurelia-webpack-plugin');
const { optimize: { CommonsChunkPlugin }, ProvidePlugin } = require('webpack')
const { TsConfigPathsPlugin, CheckerPlugin } = require('awesome-typescript-loader');
// config helpers:
const ensureArray = (config) => config && (Array.isArray(config) ? config : [config]) || []
#!/bin/bash
echo "============================================="
echo "== HELM BUILD TOOL =="
echo "============================================="
echo ""
# Globals
DD_SERIES_URL="https://api.datadoghq.com/api/v1/series?api_key=${DD_API_KEY}"
DD_STREAM_URL="https://api.datadoghq.com/api/v1/events?api_key=${DD_API_KEY}"
#!/bin/bash
echo "============================================="
echo "== HELM RELEASE TOOL =="
echo "============================================="
echo ""
# Globals
DD_SERIES_URL="https://api.datadoghq.com/api/v1/series?api_key=${DD_API_KEY}"
DD_STREAM_URL="https://api.datadoghq.com/api/v1/events?api_key=${DD_API_KEY}"
@hmarcelodn
hmarcelodn / yml
Last active January 8, 2019 03:57
CircleCI Sample Workflow
---
version: 2
jobs:
build:
docker:
- image: circleci/python:3.6.1
working_directory: ~/repo
steps:
- checkout
- restore_cache:
@hmarcelodn
hmarcelodn / Dockerfile
Created January 8, 2019 04:00
Docker CircleCI Custom
FROM debian
# Environment Variables
ENV VER=17.03.0-ce
# Installing Utilities
RUN apt-get clean
RUN apt-get update
RUN apt-get install curl -y
RUN apt-get install gnupg2 -y