CLICK ME
yes, even hidden code blocks!
print("hello world!")| #!/bin/sh | |
| # Reset Parallels Desktop's trial and generate a casual email address to register a new user | |
| rm /private/var/root/Library/Preferences/com.parallels.desktop.plist /Library/Preferences/Parallels/licenses.xml | |
| jot -w pdu%[email protected] -r 1 |
| I use the first | |
| —– BEGIN LICENSE —– | |
| Michael Barnes | |
| Single User License | |
| EA7E-821385 | |
| 8A353C41 872A0D5C DF9B2950 AFF6F667 | |
| C458EA6D 8EA3C286 98D1D650 131A97AB | |
| AA919AEC EF20E143 B361B1E7 4C8B7F04 |
Revised: 2019-11-28 16:16 GMT-6
This is a list of the key resources I have found useful. If you know of others, please post in a comment below, and I will add to this list.
I have tried to order this list in the order that, to me, is best for learning JXA from scratch. We all learn a bit diferently, so adjust to suit your style/needs. Please post if you have suggestions on learning JXA.
| Windows Registry Editor Version 5.00 | |
| [-HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\MSYS here] | |
| [-HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\MINGW64 here] | |
| [-HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\MINGW32 here] |
| import java.util.concurrent.ThreadPoolExecutor.AbortPolicy | |
| import java.util.concurrent._ | |
| import scala.concurrent.{ Promise, Future } | |
| import scala.concurrent.duration.FiniteDuration | |
| import scala.language.implicitConversions | |
| import scala.util.Try | |
| object ScheduledExecutor { | |
| private val defaultHandler: RejectedExecutionHandler = new AbortPolicy |
| import java.io.IOException | |
| import java.nio.ByteBuffer | |
| import java.nio.channels.{AsynchronousFileChannel, CompletionHandler} | |
| import java.nio.file.Paths | |
| import java.nio.file.StandardOpenOption._ | |
| import scala.concurrent.{ExecutionContext, Future, Promise} | |
| import scala.util.Try | |
| /** |
| Windows Registry Editor Version 5.00 | |
| [HKEY_CLASSES_ROOT\Directory\Background\shell\open_msys2] | |
| @="Open MSYS2 here" | |
| [HKEY_CLASSES_ROOT\Directory\Background\shell\open_msys2\command] | |
| @="c:\\msys64\\usr\\bin\\mintty.exe /bin/sh -lc 'cd \"$(cygpath \"%V\")\"; exec bash'" | |
| [HKEY_CLASSES_ROOT\Folder\shell\open_msys2] | |
| @="Open MSYS2 here" |
| # ag <https://github.com/ggreer/the_silver_searcher> | |
| # usage: ag-replace.sh [search] [replace] | |
| # caveats: will choke if either arguments contain a forward slash | |
| # notes: will back up changed files to *.bak files | |
| ag -0 -l $1 | xargs -0 perl -pi.bak -e "s/$1/$2/g" | |
| # or if you prefer sed's regex syntax: | |
| ag -0 -l $1 | xargs -0 sed -ri.bak -e "s/$1/$2/g" |
| !/usr/bin/expect -f | |
| set timeout 30 | |
| log_user 0 | |
| puts stderr "Generating OTP" | |
| spawn oathtool --totp YOUR_SECRET_KEY_HERE | |
| expect -re \\d+ | |
| set otp $expect_out(0,string) | |
| puts stderr "Connecting to VPN server $server" |