Skip to content

Instantly share code, notes, and snippets.

@rmeekers
rmeekers / code.gs
Created December 11, 2017 08:46
Bulk Convert XLSX Files in Google Drive To Google Sheet
/*
* Setttings
*/
// Google Drive Folder ID which contains the Excel files you want to convert
var driveFolderId = '';
// Folder name in which we should place the original files after conversion
var sourceFilesFolderName = 'Source Files';
@rmeekers
rmeekers / composeNewGmail.js
Created March 28, 2017 06:53
Compose new Gmail Bookmarklet
javascript:
(function() {
var url = 'https://mail.google.com/mail/?view=cm&fs=1';
var emailInput = prompt('E-mail address','');
var subjectInput = prompt('Subject','');
if (emailInput) {
url += '&to=' + escape(emailInput);
}
if (subjectInput) {
url += '&su=' + escape(subjectInput);
@rmeekers
rmeekers / Send Gmail email to Omnifocus.applescript
Created November 23, 2016 16:05
Applescript to send Gmail email to Omnifocus. Email subject will become the action title. A link to the email will be added to the action notes. If you've selected some text, it will be added to the notes as well.
tell application "Google Chrome" to tell active tab of front window to set the URL to "
javascript: (function() {
var enc = encodeURIComponent,
w = window,
frames = w.frames,
d = document,
ms = w.getSelection ? w.getSelection() : (d.getSelection) ? d.getSelection() : (d.selection ? d.selection.createRange().text : 0),
mu = w.location.href,
mt = d.title,
subjSpans = d.getElementsByClassName('hP'),
@rmeekers
rmeekers / Send Gmail email to Omnifocus.bookmarklet.js
Last active November 23, 2016 16:04
Bookmarklet to send Gmail email to Omnifocus. Email subject will become the action title. A link to the email will be added to the action notes. If you've selected some text, it will be added to the notes as well.
javascript: (function() {
var enc = encodeURIComponent,
w = window,
frames = w.frames,
d = document,
ms = w.getSelection ? w.getSelection() : (d.getSelection) ? d.getSelection() : (d.selection ? d.selection.createRange().text : 0),
mu = w.location.href,
mt = d.title,
subjSpans = d.getElementsByClassName('hP'),
i, url;
@rmeekers
rmeekers / osx_install.sh
Last active November 23, 2021 12:19
Mac Install most of my Apps with homebrew & cask after a clean install
#!/bin/bash
#run this first: chmod +x osx_install.sh
####
echo Install AppStore Apps first as we cannot do this automatically!
read -p "Press any key to continue... " -n1 -s
echo '\n'
####
echo Install Homebrew, wget cask and a few other apps