Moved to https://api.fmhy.net
(* | |
Description: Applescript to open/close picture-in-picture in Safari | |
Supported Applications: Safari, IINA | |
Author: Daniel Rotärmel | |
Source: https://gist.github.com/danielrotaermel/201f549d5755ea886eb78bb660133722 | |
Instructions: | |
Assign this to a global keyboard shortcut with better touch tool / hammerspoon etc. - suggested: cmd+ctrl+p. | |
Make sure "Developer > Allow JavaScript from Apple Events" is enabled in Safari. | |
Download the BTT preset here -> https://share.folivora.ai/sharedPreset/caa1198d-36dd-4aeb-89de-142bf39cc336 | |
*) |
B="brew" | |
I="install" | |
M="mas" | |
# APPS CORE | |
$B $I --cask iterm2 | |
$B $I --cask tunnelblick | |
# $B $I openvpn | |
# $B $I --cask openvpn-connect | |
$B $I --cask slack |
(* | |
Description: Applescript to open/close picture-in-picture in Safari | |
Supported Applications: Safari, IINA | |
Author: Daniel Rotärmel | |
Source: https://gist.github.com/danielrotaermel/201f549d5755ea886eb78bb660133722 | |
Instructions: | |
Assign this to a global keyboard shortcut with better touch tool / hammerspoon etc. - suggested: cmd+ctrl+p. | |
Make sure "Developer > Allow JavaScript from Apple Events" is enabled in Safari. | |
Download the BTT preset here -> https://share.folivora.ai/sP/3dd264e3-5d16-425f-8ab3-ce14877ec04f | |
*) |
import json | |
import subprocess | |
import time | |
from pathlib import Path | |
import atexit | |
import boto3 | |
import requests | |
import datetime | |
#path where you have extracted ngrok execution file. Follow readme file to install on Pi |
All you have to do, to extend your trial period, is change number in TrialKey element in application.xml. This file is located in /Library/Application Support/Adobe/Adobe Photoshop/AMT. You can navigate there with this command:
cd /Library/Application\ Support/Adobe/Adobe\ Photoshop\ */AMT
Then you have to open the file and edit it. You can use just TextEdit app.
open -a TextEdit application.xml
All you have to do, to extend your trial period, is change number in TrialKey element in application.xml. This file is located in /Applications/Adobe Illustrator CC 2018/Support Files/AMT/AI/AMT. You can navigate there with this command:
cd /Applications/Adobe\ Illustrator\ */Support\ Files/AMT/AI/AMT
Then you have to open the file and edit it. You can use just nano editor in terminal.
All you have to do, to extend your trial period, is go to Date & Time preferences and set date before you trial period has started. Then open your Sketch.app and set your time back to atomatic.
But this can be really annoying do it over and over. And you can do it from your terminal too! All you need is date command. To set specific date you it with date parameter in following format +%m%d%H%M%y (MonthDayHourMinuteYear).
sudo date 0102030405
So command above will set your Date & Time to Sun Jan 2 03:04:00 +07 2005. Now when you open Sketch.app everything should appear as trial has not expired yet. But you don’t want to have your computer with wrong date & time. So to set it back you can use following command, which will set your time according to apple time server:
- Download ngrok binary
- https://ngrok.com/download
- unzip to /opt/ngrok
- Create /etc/systemd/system/ngrok.service
- Create /opt/ngrok/ngrok.yml