This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Create container | |
hosts: localhost | |
gather_facts: yes | |
tasks: | |
- name: Create Drupal container | |
register: new_container | |
docker_container: | |
privileged: yes | |
state: started |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log('hello-console') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
thisYear="2016" | |
nextYear="$thisYear" | |
for month in {1..12}; | |
do | |
nextMonth=$(expr 1 + $month) | |
if [ "$month" -eq 12 ]; | |
then | |
nextYear=$(expr 1 + $thisYear) | |
nextMonth="1" | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scriptencoding utf-8 | |
if has('vim_starting') | |
if &compatible | |
set nocompatible | |
endif | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
endif | |
function! StripTrailingWhitespace() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
black="\033[30m" | |
gray="\033[37m" | |
light_gray="\033[97m" | |
dark_gray="\033[30m" | |
light_dark_gray="\033[90m" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(\w*)=([^#&]+) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html xml:lang="pt-BR" xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title></title> | |
<script src="js/swfobject.js" type="text/javascript" charset="utf-8"></script> | |
<style type="text/css" media="screen"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
user=$1; | |
if [ "$user" = "" ] | |
then | |
echo -n "user name:" | |
read user | |
fi | |
pwd | awk '{root = $1}; END {print "AuthName \"Secure Area\"\nAuthType Basic\nAuthUserFile " root "/.htpasswd\nrequire valid-user" }' > .htaccess |
NewerOlder