Skip to content

Instantly share code, notes, and snippets.

View confluencepoint's full-sized avatar
:octocat:
Focusing

confluencepoint confluencepoint

:octocat:
Focusing
View GitHub Profile
@confluencepoint
confluencepoint / n8GmailFilter.gs
Created August 25, 2018 05:49 — forked from n8henrie/n8GmailFilter.gs
A Google Script that adds extra powerful functions to my 'scripts' label, e.g. the ability to send emails to Mail Drop for OmniFocus.
/**
* n8GmailFilter.gs
* Adds extra powerful functions to my 'scripts' label, e.g.
* the ability to send emails to Mail Drop for OmniFocus.
*
* Details and setup instructions at: http://n8henrie.com/2014/08/using-google-apps-script-to-send-tasks-to-omnifocus/
*/
// CUSTOMIZE THESE VALUES
var myLabelName = 'your gmail label';
@confluencepoint
confluencepoint / moneymoney_nachhilfestunden.applescript
Created August 11, 2018 14:37 — forked from jhelgert/moneymoney_nachhilfestunden.applescript
Findet alle heutigen Events des Kalenders "Nachhilfe" und bucht einen entsprechenden Bargeldumsatz in MoneyMoney.
#!/usr/bin/osascript
set today_midnight to ((current date) - 3600 * (hours of (current date)) - 60 * (minutes of (current date)) - (seconds of (current date)))
set now to (current date)
-- Heutige Events
tell application "Calendar"
tell calendar "Nachhilfe"
set todays_events to every event whose start date is greater than or equal to today_midnight ¬
and start date is less than or equal to now
@confluencepoint
confluencepoint / moneymoney_export.applescript
Created August 11, 2018 14:37 — forked from deyhle/moneymoney_export.applescript
apple script to export all money money account data of the last 90 days as OFX to $HOME/Dropbox/MoneyMoney
#!/usr/bin/osascript
set backTo to ((current date) - 90 * days) as string
set now to (current date) as string
tell application "MoneyMoney"
set exported to export accounts
end tell
set tempDir to (path to temporary items as text)
set tempFile to tempDir & "accounts.xml"
@confluencepoint
confluencepoint / click.oscript
Created May 2, 2018 05:36 — forked from wkoszek/click.oscript
Clicking "Allow" button in System Preferences via Screen Sharing
# This is clicking "Allow" in System Preferences "Security & Privacy" screen
# when you're on Screen Sharing. Otherwise it doesn't work.
# To fix:
# - Put "Security & Privacy" window in the top left screen
# - open a Terminal on a side
# - save click.oscript
# - Run: osascript click.oscript
#
# The mouse click you send should hit "Allow" button. You may need to move the window a little bit.
# Script originally from: https://discussions.apple.com/thread/3708948
@confluencepoint
confluencepoint / tweetbot-mute-regex.md
Created March 27, 2018 20:46 — forked from imathis/tweetbot-mute-regex.md
Tweetbot can use regular expressions to mute tweets in your timeline and mentions.

Hashtag abuse

Three or more hashtags.

#[^#]+#[^#]+#

Long hashtags (15+ characters): #hashtagpunchline

[
{ "keys": ["ctrl+q"], "command": "exit" },
{ "keys": ["ctrl+shift+n"], "command": "new_window" },
{ "keys": ["ctrl+shift+w"], "command": "close_window" },
{ "keys": ["ctrl+o"], "command": "prompt_open_file" },
{ "keys": ["ctrl+shift+t"], "command": "reopen_last_file" },
{ "keys": ["alt+o"], "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "h", "ipp", "inl", "m", "mm"]} },
{ "keys": ["ctrl+n"], "command": "new_file" },
{ "keys": ["ctrl+s"], "command": "save" },
@confluencepoint
confluencepoint / animated-gif.md
Created February 28, 2018 22:25 — forked from stephenlb/animated-gif.md
DIY How to make your own HD Animated GIF Generator

HD Animated GIF Generator

You can make your own HD animated GIF generator.
Follow along with these commands to get started.

HD Animated GIF Generator

git clone git://source.ffmpeg.org/ffmpeg.git
cd ffmpeg
@confluencepoint
confluencepoint / activate_tab.applescript
Created February 28, 2018 19:40 — forked from dblandin/activate_tab.applescript
AppleScript to grab a list of tab titles from Google Chrome.
# Activate tab
# $ osascript activate_tab.applescript 1, 2
on run argv
set window_index to item 1 in argv
set target_index to item 2 in argv
tell application "Google Chrome" to set active tab index of first window to target_index
tell application "Google Chrome" to activate
end run
@confluencepoint
confluencepoint / evoluent-vertical-mouse.json
Created February 26, 2018 11:57 — forked from patrickwelker/evoluent-vertical-mouse.json
Karabiner Elements Setup for Evoluent Vertical Mouse
{
"title": "AAA Demo – Tap, Hold & Secondary Function",
"rules": [
{ "description": "Button4 ••• CLICK=> Show Desktop, HOLD=> Mission Control & SECONDARY FUNCTIONS •••••••••••••••••• (HOLD+BUTTON1=> Next Tab, HOLD+BUTTON2=> Previous Tab, HOLD+BUTTON3=> Close Window, HOLD+BUTTON5=> Panic Button)",
"manipulators": [
{
"from": {
"pointing_button": "button4",
"modifiers": {
"optional": [
@confluencepoint
confluencepoint / 2x2-finder.scpt
Created January 22, 2018 19:12 — forked from Jahhein/2x2-finder.scpt
Applescript 2x2 finder
property pWindowWidth : 975
property pWindowHeight : 440
property pWindowChromeHeight : 23
property pDockPadding : 1
on run
tell application "Finder"
close every window
my positionWindow(my makeWindow("/Users/mjt/"), 2)
my positionWindow(my makeWindow("/Users/mjt/Downloads/"), 1)