Download Turbo Boost Switcher
NB: Check a launchd tutorial for details.
Create launch daemon file
| { | |
| "description": "Change left_option to 3 modifiers combo (rcmd, ralt, rctrl), f17 when used alone", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "key_code": "left_option", | |
| "modifiers": { "optional": ["any"] } | |
| }, | |
| "to": [ | |
| { |
| #!/bin/bash | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 input.pdf" | |
| exit 1 | |
| fi | |
| INPUT_PDF="$1" | |
| OUTPUT_PDF="scanned_${INPUT_PDF%.pdf}.pdf" |
| // ==UserScript== | |
| // @name Reddit System Theme Switch | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.0 | |
| // @description Auto switch Reddit light/dark mode based on system theme. Based on new Reddit UI. | |
| // @author Denis Semenenko <[email protected]> | |
| // @match https://*.reddit.com/* | |
| // @grant none | |
| // ==/UserScript== |
Download Turbo Boost Switcher
NB: Check a launchd tutorial for details.
Create launch daemon file
| /** | |
| * Fetch currency rate from | |
| * @see https://nbg.gov.ge/en/monetary-policy/currency | |
| * @param date Date | |
| * @param currency USD, EUR or GBP | |
| */ | |
| function fetchGelCurrencyRate(date, currency) { | |
| Logger.log(`fetchGelCurrencyRate with date: ${date}, currency: ${currency}`); | |
| const toISODateString = date => `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, "0")}-${date.getDate().toString().padStart(2, "0")}`; | |
| const url = `https://nbg.gov.ge/gw/api/ct/monetarypolicy/currencies/en/json/?currencies=${currency.toUpperCase()}&date=${toISODateString(date)}`; |
| #!/bin/bash | |
| set -euo pipefail | |
| user_name="Denis S" | |
| user_email="[email protected]" | |
| ssh_command="ssh -i ~/.ssh/custom_key" | |
| repo_container_path="/Users/den/repos" | |
| configure_git_repo() { | |
| custom_root_path=$1 |
| ; Protocol version (all, SSLv2, SSLv3, TLSv1) | |
| ; sslVersion = TLSv1 | |
| ; Some security enhancements for UNIX systems - comment them out on Win32 | |
| ;chroot = /opt/cprocsp/var/lib/stunnel/ | |
| setuid = root | |
| setgid = root | |
| ; PID is created inside chroot jail | |
| pid = /var/opt/cprocsp/tmp/stunnel_cli.pid |
| @echo off | |
| set /p steamappid=Enter Steam App ID: | |
| echo %steamappid% > steam_appid.txt | |
| echo running steam app id %steamappid% | |
| C:\\Python27\\python.exe -c "import time; import ctypes; s=ctypes.CDLL('steam_api.dll'); s.SteamAPI_Init(); time.sleep(9999);" |
| # Set-ExecutionPolicy to RemoteSigned to start this script | |
| # Checking out the 7z | |
| if (-not (test-path "C:\Program Files\7-Zip\7z.exe")) {throw "C:\Program Files\7-Zip\7z.exe needed"} | |
| set-alias sz "C:\Program Files\7-Zip\7z.exe" | |
| $source = "./iTunes64Setup.exe" | |
| $dest = "./iTunes64Setup" | |
| # Unpack Bloatware |