Skip to content

Instantly share code, notes, and snippets.

View rflaperuta's full-sized avatar

Rodrigo Falcetta Laperuta rflaperuta

View GitHub Profile

Keybase proof

I hereby claim:

  • I am rflaperuta on github.
  • I am rflaperuta (https://keybase.io/rflaperuta) on keybase.
  • I have a public key ASAra-jeHfKpCei4QcR1KC3t9zwZIWu0kwL6eANYS1UZMAo

To claim this, I am signing this object:

@rflaperuta
rflaperuta / fn.js
Created December 15, 2016 06:32 — forked from jescalan/fn.js
lazy-loading require in node
/**
* Requires a library, but only loads it when it's actually used.
*
* lazy_require('fs');
* fs.readFileSync('example.js');
*
* var wow = lazy_require('fs');
* wow.readFileSync('example.js');
*
* @param {String} lib - name of the lib you want to load
@rflaperuta
rflaperuta / Docker CMDs.md
Last active January 20, 2017 04:05
Helpful Docker commands

DOCKER CMDs

  • Runs Docker sharing the host socket. Helps running sibling images from inside a container. Could be used in a CI env to spawn other images and do needed work.
docker run -v /var/run/docker.sock:/var/run/docker.sock -it docker
@rflaperuta
rflaperuta / XGBoost_MACOS.md
Last active January 26, 2017 02:09
How to Install XGBoost on MAC OS X Sierra

XGBoost install on MAC OS X (Worked on Sierra)

  • Pre-reqs:

    • Make sure /opt/local/bin and /opt/local/sbin IS NOT on Path.
    • Update brew.
  • Install Latest GCC

brew install gcc --without-multilib
@rflaperuta
rflaperuta / useragentswitcher.xml
Created February 12, 2017 22:09
Massive list of user agents for User Agent Switcher by Chris Pederik http://forums.chrispederick.com/categories/user-agent-switcher
<useragentswitcher>
<folder description="Browsers - Windows">
<folder description="Legacy Browsers">
<useragent description="Arora 0.6.0 - (Vista)" useragent="Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/527 (KHTML, like Gecko, Safari/419.3) Arora/0.6 (Change: )" appcodename="" appname="" appversion="" platform="" vendor="" vendorsub=""/>
<useragent description="Avant Browser 1.2" useragent="Avant Browser/1.2.789rel1 (http://www.avantbrowser.com)" appcodename="" appname="" appversion="" platform="" vendor="" vendorsub=""/>
<useragent description="Chrome 4.0.249.0 (Win 7)" useragent="Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.0 Safari/532.5" appcodename="" appname="" appversion="" platform="" vendor="" vendorsub=""/>
<useragent description="Chrome 5.0.310.0 (Server 2003)" useragent="Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.310.0 Safari/532.9" appcodename="" appname=""
@rflaperuta
rflaperuta / user_agent_listing.txt
Created February 12, 2017 22:20
List of user Agents - 2017
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/602.3.12 (KHTML, like Gecko) Version/10.0.2 Safari/602.3.12
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
Mozilla/5.0 (Windows NT 6.1; WOW64;
@rflaperuta
rflaperuta / 01_setupssh.config
Created February 22, 2017 17:37 — forked from rohang07/01_setupssh.config
eb extension for pulling ssh config from s3
---
Resources:
AWSEBAutoScalingGroup:
Metadata:
? "AWS::CloudFormation::Authentication"
:
S3Auth:
buckets:
- bucket-name
roleName:
@rflaperuta
rflaperuta / better-nodejs-require-paths.md
Created March 22, 2017 13:58 — forked from branneman/better-nodejs-require-paths.md
Better local require() paths for Node.js

Better local require() paths for Node.js

Problem

When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

var Article = require('../../../models/article');

Those suck for maintenance and they're ugly.

Possible solutions

@rflaperuta
rflaperuta / Dockerfile
Created May 5, 2017 11:34 — forked from yefim/Dockerrun.aws.json
Build a Docker image, push it to AWS EC2 Container Registry, then deploy it to AWS Elastic Beanstalk
# Example Dockerfile
FROM hello-world
@rflaperuta
rflaperuta / password.ovr
Created May 15, 2017 21:30
Centrify Shell Override
# EDIT /etc/centrifydc/password.ovr
# ADD TO THE END
+<username>:::::::/usr/bin/zsh
+:::::::