This file contains hidden or 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
#!/usr/bin/env -S PATH="${PATH}:/usr/local/bin" PYTHONIOENCODING=UTF-8 LC_ALL=en_US.UTF-8 python | |
# -*- coding: utf-8 -*- | |
then = "20201229160152" | |
import re, shutil, sys | |
import os.path, time | |
from datetime import datetime as dt | |
import json | |
from subprocess import Popen, PIPE |
This file contains hidden or 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
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
# GNU General Public License for more details. |
This file contains hidden or 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
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
This file contains hidden or 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/bash | |
# DO NOT run the line 167 standalone. It will remove the necessary files besides the junk! | |
if echo $@|grep -q "\-\-help\|\-help\|\-h\|help\|\-\-h\|\-\-no\-deb\|\-\-no\-install\|\-\-no\-cleaning\|\-\-assume\-debian" | |
then : | |
else echo wrong entry\(ies\) ! | |
help=yes | |
fi | |
if echo $@|grep -q "\-\-help\|\-help\|\-h\|help\|\-\-h" || [ "$help" = yes ] |
This file contains hidden or 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
set myBibFile to "/Users/zhope/Dropbox/Sundry/Library.bib" | |
if myBibFile exists then | |
set currentBibs to do shell script "/usr/local/bin/pandoc-citeproc --bib2json " & quoted form of myBibFile & " | /usr/local/bin/jq -r ' .[] | \"\\(.id)\"'" | |
set currentBibs to paragraphs of currentBibs | |
end if | |
set bibFile to POSIX file myBibFile | |
my write_to_file("", bibFile, true) |
This file contains hidden or 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
on alfred_script(q) | |
tell application "Amphetamine" | |
set sessionActiveTest to session is active | |
if sessionActiveTest is false then | |
if (q is not in {"", null}) then | |
This file contains hidden or 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
set theFolder to (path to home folder as text) & "Library:Mobile Documents:iCloud~com~sonnysoftware~bot:Documents" | |
set BEList to {} | |
set orphanList to {} | |
set FinderList to {} | |
set pathList to {} | |
set od to AppleScript's text item delimiters | |
tell application "Finder" | |
-- create a list of the name of every file in the folder you've set | |
set FinderList to every file of folder theFolder as alias list |
This file contains hidden or 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
#!/usr/bin/env perl | |
# pandoc-class2style.pl - filter to translate single span/div classes into LaTeX commands and attribute lists | |
# POD documentation below the code! | |
use utf8; | |
use autodie 2.29; | |
use 5.010001; | |
use strict; |
This file contains hidden or 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
#!/usr/bin/osascript | |
(* | |
Script written by Naupaka Zimmerman | |
March 17, 2017 | |
MIT License | |
Copyright (c) 2017 Naupaka Zimmerman |
This file contains hidden or 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
property gstrScriptName : "Create Hyperlink with Custom Protocol from Selected Text" | |
property gstrScriptVer : "1.0.1" | |
property gstrScriptDate : "Mon, Nov 16, 2015" | |
(* | |
ββββββββββββββββββββββββββββββββββββββββββββββββββ | |
PURPOSE: | |
β’ Based on the User's selection, create and put on Clipboard: | |
β’ RTF formatted Hyperlink | |
β’ This supports custom URL Schemes/Protocols not supported by Evernote |
NewerOlder