Skip to content

Instantly share code, notes, and snippets.

👋
Come and say Hi!

Orlando Del Aguila orlando

👋
Come and say Hi!
Block or report user

Report or block orlando

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@orlando
orlando / Dockerfile
Created Apr 19, 2018
WordPress Docker SMTP email configuration with environment variables
View Dockerfile
FROM wordpress:latest
# Setup SMTP by running apache2-config.sh
COPY ["apache2-config.sh", "/usr/local/bin/"]
CMD ["apache2-config.sh"]
@orlando
orlando / event.js
Last active Oct 24, 2016
Poors man EventSupport example
View event.js
class EventSupport {
constructor(props) {
this.parent = props.parent;
this.name = props.name;
this.eventQueue = {};
}
trigger(eventName, props) {
if (typeof props === 'undefined') {
@orlando
orlando / slackNotify.js
Last active Nov 3, 2016
lambda sns slack notify function
View slackNotify.js
var slackWebhookPath = '/services/T02N0QWAS/B2N58DH4N/lczo4THnmZvr2sNVMutCGH4P';
var https = require('https');
var util = require('util');
var colorMap = {
'ALARM': 'danger',
'OK': 'good',
'INSUFFICIENT_DATA': 'warning'
};
exports.handler = function(event, context) {
@orlando
orlando / VierPagerAndroid.android.with-plugin.js
Last active Aug 30, 2016
ViewPagerAndroid.android.js babel issue
View VierPagerAndroid.android.with-plugin.js
var ViewPagerAndroid = function (_React$Component) {
babelHelpers.inherits(ViewPagerAndroid, _React$Component);
function ViewPagerAndroid() {
var _ref;
var _temp, _this, _ret;
babelHelpers.classCallCheck(this, ViewPagerAndroid);
@orlando
orlando / .drone.yml
Created Jul 11, 2016
Drone.yml Node.js
View .drone.yml
build:
image: node:5-wheezy
commands:
- npm install --silent
- npm test
cache:
mount:
- .git
- node_modules
@orlando
orlando / swap.md
Created Jul 11, 2016
Habilitar memoria swap en Ubuntu.
View swap.md

Memoria Swap en Ubuntu

Estos son los pasos a seguir para habilitar memoria swap en tu VPS corriendo Ubuntu, probablemente esto sirva para otros VPS

echo "Reemplazar 4G por el doble de memoria ram del sistema, ejemplo si tengo 1gb de ram, entonces colocar 2G)"
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
@orlando
orlando / helpers.scss
Created Apr 3, 2016
padding margins helpers
View helpers.scss
// padding/margins helpers
$sizes: (xs: 0.5rem, sm: 1rem, md: 1.5rem, lg: 2rem, xl: 2.5rem);
$properties: ('top', 'right', 'left', 'bottom');
@each $name, $value in $sizes {
@each $prop in $properties {
.margin-#{$prop}-#{$name} {
margin-#{$prop}: $value;
}
@orlando
orlando / mac-setup.md
Last active Jun 8, 2019 — forked from todc/mac-setup.md
Fresh Mac OS Setup
View mac-setup.md

1. Run Software Update

Make sure everything is up to date in the App Store

2. Install Homebrew and Homebrew-Cask

  1. Open a terminal window and execute the Homebrew install script:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@orlando
orlando / jquery_ujs_safari_workaround.js
Last active Jul 25, 2016
Rails jquery-ujs Safari UI locking workaround
View jquery_ujs_safari_workaround.js
// Safari blocks the UI as soon as a form is submitted
// This behaviour prevents us from doing animations inside buttons
// This is a workaround to give the render engine some time before blocking
// This depends on jQuery browser to know if the current browser is Safari
// We happened to have that dependency when I implemeneted this workaround
$(function () {
if (!$.browser.safari) {
return;
View keybase.md

Keybase proof

I hereby claim:

  • I am orlando on github.
  • I am orlando (https://keybase.io/orlando) on keybase.
  • I have a public key whose fingerprint is D83C 56F0 986E 294C A631 0473 A692 3BDA F7BF BD00

To claim this, I am signing this object:

You can’t perform that action at this time.