Skip to content

Instantly share code, notes, and snippets.

View jtomaszon's full-sized avatar

Javier Tomas Zon jtomaszon

View GitHub Profile
@jtomaszon
jtomaszon / id_rsa.pub
Created July 7, 2021 00:13
jtomaszon Public Key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCqzI+HYYmBFfRGg0evUqXe78v8Uzn2RCwuiVXz1T36XRg7enOxl7ukv4bbYw7Kh9uWbq3K/gfth/0dCp823BTgTVL37w4MPYjiPfww241W9cIDikYL1jOmBKBaT7WMVtvz4qenpJeB5qycgmiqfnGGBKSB92TcAEVcbNmaGhke+kCJCaxU5Y6PGHBabP0EWQc3zPgUAlzuLsQ0yThKEOb0TTw0nSfhkx6OH3CwJz+AhNYq2jnXzJfAlp9qXToJ1LIKmtsGjpUSRczUMO+IYsxYIWSM22oiZ7fcb07CeWrd6kOGTI1oiMIhLMbEbdI64oaLzxu4FkJEtQc0Yuc8uK8h jtomaszon@gmail.com
(function () {
'use strict';
angular.module('app.chart')
.controller('flotChartCtrl', ['$scope', '$http', flotChartCtrl]);
function flotChartCtrl($scope, $http) {
var areaChart, lineChart1;
lineChart1 = {};
@jtomaszon
jtomaszon / HowTo-AWS_Free-tier.MD
Created April 10, 2016 20:26
Create your own Free-tier Infrastructure from your terminal

Install awscli

sudo -H pip install awscli --ignore-installed six

Collecting awscli [..]

Installing collected packages: pyasn1, rsa, futures, jmespath, six, python-dateutil, docutils, botocore, s3transfer, colorama, awscli Successfully installed awscli-1.10.19 botocore-1.4.10 colorama-0.3.3 docutils-0.12 futures-3.0.5 jmespath-0.9.0 pyasn1-0.1.9 python-dateutil-1.5 rsa-3.3 s3transfer-0.0.1 six-1.4.1

### Keybase proof
I hereby claim:
* I am jtomaszon on github.
* I am javierzon (https://keybase.io/javierzon) on keybase.
* I have a public key whose fingerprint is 3561 72D9 D29B A1F9 A0CD 58D0 BD72 F2FB 08B7 9E61
To claim this, I am signing this object:
@jtomaszon
jtomaszon / cleanupReleases.sh
Created February 19, 2015 20:00
A nice script to cleanup some 'cap' releases
#!/bin/bash
# If not set APP_DIR variable, fail
[ -z ${APP_DIR} ] && echo "Usage: Define APP_DIR before the script" && exit 1
LOG=/home/user/cleanupReleases.log
logger -p info -t cleanupReleases "Starting cleanup on ${APP_DIR}... "
CLEANUP=$(ls -dt ${APP_DIR}/releases/* | awk 'NR>1')
[ -z "$CLEANUP" ] && echo "Nothing to cleanup" && exit 2
@jtomaszon
jtomaszon / sysctl.conf
Last active July 12, 2017 01:29
sysctl compile variables
### IMPROVE SYSTEM MEMORY MANAGEMENT ###
# Increase size of file handles and inode cache
fs.file-max = 2097152
# Do less swapping
vm.swappiness = 1
vm.dirty_ratio = 60
vm.dirty_background_ratio = 2
vm.zone_reclaim_mode = 0
/*
* Inspired by: http://stackoverflow.com/questions/4360060/video-streaming-with-html-5-via-node-js
*/
var http = require('http'),
fs = require('fs'),
util = require('util');
http.createServer(function (req, res) {
var path = 'video.mp4';