This file contains 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
"""Example using the gspread python API for Google Sheets | |
This code demonstrates how data can be acquired from a PosgreSQL database | |
and put into a Google Sheet. | |
Prerequisites: | |
* A project on GCP with access to the Google Sheets API and Google Drive API | |
* A service account in the project | |
* A spreadsheet in Drive, shared with the service account |
This file contains 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
\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere | |
\PassOptionsToPackage{hyphens}{url} | |
$if(colorlinks)$ | |
\PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor} | |
$endif$$if(dir)$$if(latex-dir-rtl)$ | |
\PassOptionsToPackage{RTLdocument}{bidi} | |
$endif$$endif$% | |
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$if(beamer)$ignorenonframetext,$if(handout)$handout,$endif$$if(aspectratio)$aspectratio=$aspectratio$,$endif$$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$} | |
$if(beamer)$ | |
$if(background-image)$ |
This file contains 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
/* | |
Script: Documentation Generation | |
Purpose: To generate architecture output based on a driving view | |
Author: Richard Heward - Tame Blue Lion Ltd | |
This generates a markdown file with the embedded images and text based upon a driving view in Archi of groups that trigger each other and embedded views. | |
See my blog for a more detailed explaination. https://www.tamebluelion.co.uk/archimate-documentation | |
Setting embed to false will have the images saved to file and references placed in the document. It's then up to your markdown engine. This isn't that well tested. |
This file contains 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/sh -e | |
# Turn off gnome auto screen-lock when connected to specific wireless networks | |
# USAGE | |
# This script must be placed in /etc/NetworkManager/dispatcher.d | |
# with an appropriate name, e.g. 95gnome-screenlock. | |
# Hat tip, original idea - md, http://blog.bofh.it/debian/id_444 |
This file contains 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/sh -e | |
# Turn off gnome auto screen-lock when connected to specific wireless networks | |
# USAGE | |
# Add the following to /etc/pam.d/gdm-password, just after pam_gnome_keyring.so in the auth block: | |
# auth optional pam_exec.so quiet /usr/local/sbin/pam_auth_inhibit_lock | |
# Hat tip - md, http://blog.bofh.it/debian/id_444 |