Skip to content

Instantly share code, notes, and snippets.

View se1exin's full-sized avatar

Jacob se1exin

View GitHub Profile
@se1exin
se1exin / sheets_to_csv
Created June 3, 2017 03:30
Macro for LibreOffice Calc - Export all sheets to CSV
REM ***** BASIC *****
Sub Sheets_To_CSV
sheets=ThisComponent.Sheets.createEnumeration()
sURL = ThisComponent.getURL()
oView = ThisComponent.getCurrentController()
while sheets.hasMoreElements()
sh=sheets.nextElement()
s=sh.getName()
if sh.IsVisible then

Keybase proof

I hereby claim:

  • I am se1exin on github.
  • I am selexin (https://keybase.io/selexin) on keybase.
  • I have a public key ASACgPyVPHvsJjDs6kzJqSs8XQSsLI_mCLSOx3qLoR7qgAo

To claim this, I am signing this object:

@se1exin
se1exin / dlXeroPayslips.py
Last active July 2, 2019 04:00
Bulk download Xero Payslips from a Gmail Account
# Install (in a virtualenv) ezgmail, and follow the Gmail API setup steps here: https://pypi.org/project/EZGmail/
# Once you have saved your credentials-gmail.json file, run this python script
# Your payslips will be saved to the folder 'payslips' inside the current directory.
import ezgmail
import os
TARGET_DIRECTORY = "./payslips"