Skip to content

Instantly share code, notes, and snippets.

View rilla's full-sized avatar
🏠
Working from home

Jose Rilla Álvarez rilla

🏠
Working from home
View GitHub Profile
@rilla
rilla / test_google_sheets_apiV4.rb
Created April 17, 2020 16:32 — forked from markhorrocks/test_google_sheets_apiV4.rb
Editing Google Sheets with the Google::Apis::SheetsV4 Ruby Client
#! /usr/bin/ruby
require 'google/apis/sheets_v4'
require 'googleauth'
require 'googleauth/stores/file_token_store'
require 'fileutils'
OOB_URI = 'urn:ietf:wg:oauth:2.0:oob'
APPLICATION_NAME = 'Google Sheets API Test'
@rilla
rilla / gist:d687ad20e327504681fc1839668a5fe6
Last active July 31, 2019 14:28 — forked from bencevans/Makefile
GitHub Style Markdown -> PDF with Pandoc + Weasyprint
pandoc input.md -c https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/3.0.1/github-markdown.css \
-t html \
| sed '/<body>/c\<body class="markdown-body">' \
| weasyprint - output.pdf
bash -c '
<%= "export http_proxy=\"#{knife_config[:bootstrap_proxy]}\"" if knife_config[:bootstrap_proxy] -%>
exists() {
if command -v $1 &>/dev/null
then
return 0
else
return 1
fi