Skip to content

Instantly share code, notes, and snippets.

View RedcoatAsher's full-sized avatar
📍
🇬🇧+ 🇺🇸

Asher Peruscini RedcoatAsher

📍
🇬🇧+ 🇺🇸
View GitHub Profile
@RedcoatAsher
RedcoatAsher / toggle-pip.applescript
Created February 13, 2023 16:47 — forked from danielrotaermel/toggle-pip.applescript
Applescript to toggle picture-in-picture globally - I assign this to a keyboard shortcut with better touch tool (cmd+ctrl+p). Make sure "Developer > Allow JavaScript from Apple Events" is enabled in Safari. Download BTT preset -> https://share.folivora.ai/sharedPreset/caa1198d-36dd-4aeb-89de-142bf39cc336
(*
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
@taskylizard
taskylizard / fmhy.md
Last active May 2, 2025 08:51
/r/freemediaheckyeah, in one single file (view raw)
@danielrotaermel
danielrotaermel / toggle-pip.applescript
Last active March 5, 2025 14:36
Applescript to toggle picture-in-picture globally - I assign this to a keyboard shortcut with better touch tool (cmd+ctrl+p). Make sure "Developer > Allow JavaScript from Apple Events" is enabled in Safari. Download BTT preset -> https://share.folivora.ai/sP/3dd264e3-5d16-425f-8ab3-ce14877ec04f
(*
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
*)
@noahcoad
noahcoad / noah_new_computer_setup.md
Last active January 30, 2025 05:26
New Computer Setup

New Computer Setup for Mac

The steps I use to restore a new mac to the settings and apps I like to use.

@just4give
just4give / keepalive_ngrok.py
Last active January 30, 2022 23:18
ngrok forever on raspberry pi
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
@molcik
molcik / free-photoshop.md
Created May 18, 2018 08:39
Modify Photoshop to never ending trial

How Does It Work

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
@molcik
molcik / free-illustrator.md
Last active November 29, 2024 07:35
Illustrator never ending trial period

How Does It Work

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.

@molcik
molcik / free-sketch-never-ending.md
Last active February 7, 2020 21:23
Modify Sketch 49 and above to never ending trial

How does it work

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:

@ubergesundheit
ubergesundheit / index.md
Created November 6, 2017 13:19
ngrok on raspberrypi on systemd
  • Download ngrok binary
  • Create /etc/systemd/system/ngrok.service
  • Create /opt/ngrok/ngrok.yml