Skip to content

Instantly share code, notes, and snippets.

@BGMcoder
BGMcoder / GregoCompileAHK.ahk
Last active August 29, 2015 14:16
Gregorio Compilation Script via Autohotkey
;Simple Compile Script for Gregorio.
;Tuesday, March 10, 2015
;by Brother Gabriel-Marie
;Just a simple script to compile a gabc file to pdf; easily modifiable to accomodate multiple scripts in multiple directories.
#SingleInstance,Force
#noenv
fileencoding, UTF-8
;filename variables - just set the names here - without file extensions
@BGMcoder
BGMcoder / Score.gabc
Created March 11, 2015 03:19
Gregorio score template
name: incipit;
gabc-copyright: copyright on this gabc file;
score-copyright: copyright on the source score;
office-part: introitus/...;
occasion: in church calendar;
meter: for metrical hymns;
commentary: source of words;
arranger: name of arranger;
gabc-version: 0.9.3;
author: if known;
@BGMcoder
BGMcoder / instantbirder.ahk
Created March 11, 2015 03:30
Switch between Instantbird and any other program with a hotkey
#singleinstance force
#noenv
;directives
coordmode, mouse, screen ;set mouse to get coords from screen
settitlematchmode 2
;-------------------------------------------------------------------
;variables for the Instantbird focuser
instantbird := " - Instantbird" ;the title of the typing window is something like "Name of Person - Instantbird" --I confirm that the " - " is always in the title, complete with the two spaces on either side of the hyphen.
curwin := ""
@BGMcoder
BGMcoder / freepbx.userscript
Created March 11, 2015 03:32
Greasemonkey userscript to provides some interface fixes for FreePBX Admin.
// ==UserScript==
// @name FreePBX
// @namespace @bgm-freepbx
// @description freepbx interface mods
// @include http://YOUR_SERVER_HERE/admin/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @version 1
// @grant GM_addStyle
// @run-at document-end
// ==/UserScript==
@BGMcoder
BGMcoder / RotatePDF.tex
Created March 17, 2015 02:44
Rotate Every Page in a PDF By Any Degree
%Rotate a pdf file by any degree
%Works on every page of a multi-page pdf file
%You can't even buy software that will do this!
%http://tex.stackexchange.com/questions/233513/how-to-rotate-a-pdf
\documentclass{article}
\usepackage{pdfpages}
\begin{document}
\includepdf[pages={-},angle=0.7]{yourPDFfile.pdf}
\end{document}
@BGMcoder
BGMcoder / compile-tex.ahk
Created March 17, 2015 02:56
Simple Compile Script for tex files via AutoHotkey
;Simple Compile Script for tex files.
;Monday, March 16, 2015
;by Brother Gabriel-Marie
;Just a simple script to compile a tex file to pdf;
;easily modifiable to accomodate multiple scripts in multiple directories.
#SingleInstance,Force
#noenv
fileencoding, UTF-8
@BGMcoder
BGMcoder / AX.cfg
Last active August 29, 2015 14:17
My AX char config with customizations for Latin and Chant; You can get AX here: http://vulpeculox.net/ax/
;Brother Gabriel-Marie's AX char config
;March 17, 2015
;You can get AX here: http://vulpeculox.net/ax/
; -------------------------------------------------------------------
; HOTKEY
; -------------------------------------------------------------------
; Tells which hot key to use.
; Possible values are F1 ••• F12
; -------------------------------------------------------------------
KEY=F9
;push win+3 to show your autohotkey information and copy it to your clipboard so you can paste it
#3::ahkinfo()
ahkinfo(){
isunicode := a_isunicode ? "Unicode" : "ANSI"
thisinfo:= "AutoHotkey " . a_ahkversion . " " . isunicode . " on Windows 7 Pro x64"
clipboard := thisinfo
alert(thisinfo)
}
@BGMcoder
BGMcoder / IconPictureButton.ahk
Created June 19, 2015 15:41
Example of how to use a Picture Control as a Button
;http://ahkscript.org/boards/viewtopic.php?p=48057#p48057
#SingleInstance, On
#NoEnv
SetBatchLines, -1
#include mousey.ahk ;mousey library - http://ahkscript.org/boards/viewtopic.php?f=6&t=8352&p=48052#p48052
toggle := 0
gui, add, picture, h32 vIconButton hwndIconButton gtoggleicon icon45, shell32.dll
mouseycursor := mousey_init(IconButton,"hand")
@BGMcoder
BGMcoder / addonsdk.mouseover.js
Created December 17, 2015 20:36
AddonSDK MouseOver Effect for Toolbar Buttons
const { browserWindows } = require("sdk/windows");
const { CustomizableUI } = require('resource:///modules/CustomizableUI.jsm');
const { viewFor } = require("sdk/view/core");
const { ActionButton } = require("sdk/ui/button/action");
var myButton = ActionButton({
id: "myButton",
label: "My Button",
icon: { "16": "./icon-16.png", "32":"./icon-32.png", "64": "./icon-64.png" },