Skip to content

Instantly share code, notes, and snippets.

View paulomcnally's full-sized avatar
:octocat:
JS

Paulo McNally paulomcnally

:octocat:
JS
View GitHub Profile
[{"id":79,"date":"2018-12-20T05:15:23","date_gmt":"2018-12-20T05:15:23","guid":{"rendered":"http:\/\/radios.masnicaragua.com\/wp-content\/uploads\/2018\/12\/4.jpg"},"modified":"2018-12-20T05:17:05","modified_gmt":"2018-12-20T05:17:05","slug":"4","status":"inherit","type":"attachment","link":"http:\/\/radios.masnicaragua.com\/levantare-el-show\/attachment\/4\/","title":{"rendered":"4"},"author":1,"comment_status":"open","ping_status":"closed","template":"","meta":[],"description":{"rendered":"<p class=\"attachment\"><a href='http:\/\/radios.masnicaragua.com\/wp-content\/uploads\/2018\/12\/4.jpg'><img width=\"225\" height=\"300\" src=\"http:\/\/radios.masnicaragua.com\/wp-content\/uploads\/2018\/12\/4-225x300.jpg\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"http:\/\/radios.masnicaragua.com\/wp-content\/uploads\/2018\/12\/4-225x300.jpg 225w, http:\/\/radios.masnicaragua.com\/wp-content\/uploads\/2018\/12\/4.jpg 768w\" sizes=\"(max-width: 225px) 100vw, 225px\" \/><\/a><\/p>\n"},"caption":{"rendered
curl -n -X DELETE https://api.heroku.com/apps/[dyno name]/dynos -H "Authorization: Bearer [auth:token]" -H "Content-Type: application/json" -H "Accept: application/vnd.heroku+json; version=3"
@paulomcnally
paulomcnally / command.sh
Created December 5, 2018 20:37
Obtener una llave de autorización de heroku
heroku auth:token
@paulomcnally
paulomcnally / command.sh
Last active December 5, 2018 20:37
Reiniciar dyno de heroku mediante API
curl -n -X DELETE https://api.heroku.com/apps/gandalf-dev/dynos -H "Authorization: Bearer [auth:token]" -H "Content-Type: application/json" -H "Accept: application/vnd.heroku+json; version=3"
image: ruby:2.2
before_script:
- apt-get install -y curl
- curl -sL https://deb.nodesource.com/setup_10.x | bash -
- apt-get install -y nodejs
- node -v
- ruby -v
- npm -v
@paulomcnally
paulomcnally / gist:eb0c0789225729e8e934d601cda5e913
Created November 16, 2018 07:39
Crear Stickers para Whatsapp
https://faq.whatsapp.com/general/26000226
Repositorio: https://github.com/WhatsApp/stickers
@paulomcnally
paulomcnally / .gitlab-ci.yml
Created November 16, 2018 05:59
Travis CI - NPM Publish module
cache:
paths:
- node_modules/
test:
image: node:10-jessie
stage: test
script:
- yarn install
- yarn run test
Rake::Task["assets:precompile"].clear
namespace :assets do
task 'precompile' do
puts "Not pre-compiling assets..."
end
end
@paulomcnally
paulomcnally / webpack.config.js
Created November 11, 2018 07:45
Subdominios con webpack-dev-server.
devServer: {
allowedHosts: [
'.lvh.me',
],
},
@paulomcnally
paulomcnally / index.js
Last active October 13, 2018 15:23 — forked from codediodeio/index.js
Firebase Cloud Functions image thumbnail generator using Sharp for 4x faster resizing
const functions = require('firebase-functions');
const gcs = require('@google-cloud/storage')();
const sharp = require('sharp')
const _ = require('lodash');
const path = require('path');
const os = require('os');
exports.generateThumbnail = functions.storage.object('uploads/{imageId}').onFinalize(event => {
const object = event.data; // The Storage object.