Skip to content

Instantly share code, notes, and snippets.

View hankpillow's full-sized avatar

igor hankpillow

  • mrboots
  • brazil, são paulo.
View GitHub Profile
console.log('hello-console')
(function() {
var timer = 0;
var screenViewport = window.innerHeight;
var documentHeight = document.documentElement.scrollHeight;
var scrollPositions = {
0: 0,
25: parseInt((documentHeight / 100) * 25, 10),
50: parseInt((documentHeight / 100) * 50, 10),
75: parseInt((documentHeight / 100) * 75, 10),
100: parseInt(documentHeight - (screenViewport / 2), 10)
@hankpillow
hankpillow / provision-docker.yml
Created November 13, 2018 16:19
ansible playbook with mysql
---
- name: Create container
hosts: localhost
gather_facts: yes
tasks:
- name: Create Drupal container
register: new_container
docker_container:
privileged: yes
state: started
@hankpillow
hankpillow / index.js
Last active May 19, 2020 19:57
Lambda for Bitbucket webhook with Google Chat
var https = require('https');
var parse = require("url").parse;
exports.handler = async (data) => {
const chatURL = process.env.CHAT_URL
if (!chatURL){
return {
statusCode: 400,
body: JSON.stringify('missing google chat webhook'),