This file contains 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 | |
# Get computer model | |
MODEL=$(sysctl -n hw.model) | |
# Get OS version | |
OS_VERSION=$(sw_vers -productVersion) | |
# Get frontmost app and its version | |
FRONT_APP=$(lsappinfo info -only name `lsappinfo front | sed 's/-/-0x/'` | cut -d '"' -f 4) |
This file contains 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 | |
#ToDOs | |
# find how how many photos and work out pages automatically | |
# use parameters in terminal rather than in script | |
#2024 additions | |
# Added Morning audio choice, gentler added a fade to the audio | |
# only use sox if the audio is not long enough |
This file contains 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
-- I use a hard coded folder to hold the photo. I export from photos app. The folder needs 8 photos with geotags | |
--needs imagemagick/convert | |
--added this: exiftool '-FileName<DateTimeOriginal' -d "%Y-%m-%d-%H-%M-%S%%-c.%%e" *.jpeg | |
--so need exiftool | |
--changed from mapquest to geoapify NEED AN API key https://www.geoapify.com | |
set APIKEY to "ThisIsWhereTheAPIkeyGoes" | |
This file contains 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 URLs to windowOneTabs() | |
set mytempFolder to do shell script "mktemp -d " | |
set c to 0 | |
tell application "Safari" to activate | |
tell application "System Events" | |
tell process "Safari" | |
click menu item "New Window" of menu "File" of menu bar 1 | |
This file contains 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
--needs imageMagick & shot-scraper paths below refere to homebrew installs of both (guessing from the path) | |
--https://shot-scraper.datasette.io/en/stable/ | |
set mytempFolder to do shell script "mktemp -d " | |
--just to watch things happening | |
do shell script "open " & mytempFolder | |
tell application "Safari" | |
set themax to number of tabs of window 1 |
This file contains 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
body { background-image: linear-gradient(to right, #00b09b, #96c93d); } | |
#idProductLogo img{ border-radius:25%; } | |
@media screen and (max-width: 1200px) { | |
.divRiverDisplay { width: 95%; } | |
.divRiverContent{ width:98%; } | |
.divMoreButton { display:block; } | |
.divPageBody { width:94%; } | |
} | |
.divPageBody { margin-top: 30px; } |
This file contains 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
(* | |
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. ("Apple") in consideration of your agreement to the following terms, and your use, installation, modification or redistribution of this Apple software constitutes acceptance of these terms. If you do not agree with these terms, please do not use, install, modify or redistribute this Apple software. | |
In consideration of your agreement to abide by the following terms, and subject to these terms, Apple grants you a personal, non-exclusive license, under Apple's copyrights in this original Apple software ( the "Apple Software" ), to use, reproduce, modify and redistribute the Apple Software, with or without modifications, in source and / or binary forms; provided that if you redistribute the Apple Software in its entirety and without modifications, you must retain this notice and the following text and disclaimers in all such redistributions of the Apple Software. Neither the name, trademarks, service marks or logos of Apple Inc. may |
This file contains 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
javascript:(function(){let text = "";if (window.getSelection() != '') {text = window.getSelection().toString() + '\n';}var tocopy = '<p><small><cite class="h-cite via"><abbr title="via">ᔥ</abbr> <span class="p-author h-card">"' + text + '"</span> in <a class="u-url p-name" href="' + location.href + '" target="_blank" rel="noopener noreferrer" >' + document.title + '</a> (<time class="dt-published">' + document.lastModified + '</time>)</cite></small></p>';;d=document;d.body.appendChild(Object.assign(d.createElement('textarea'),{value:tocopy})).select();d.execCommand('copy');})() |
This file contains 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
<?php // Opening PHP tag - nothing should be before this, not even whitespace | |
//Micro.blog// | |
/* | |
updated 2018-01-29 | |
this is just the micro.blog stuff I've added to my child theme's function php | |
Hopefully most of the credits are noted below | |
This file contains 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 | |
#2018 additions | |
#needs jhead which I installed with homebrew | |
#jhead auto rotates images according to the exif Orientation which ffmpeg does not respect | |
#if the photos do not need rotated then you could remove the jhead line below | |
#sox to loop audio. I installed with homebrew | |
#my video was longer than the audio, I just create a loop of 3 with sox and use that. Could up the number iif you have more photos than me |
NewerOlder