-
Open a terminal from cPanel
-
Use
ssh-keygen
to generate a key (with no passphrase)Note: You can't use SuperHosting's GUI SSH key manager because it demands a passphrase, and that's not an option since kirby-git can't fill it in.
-
Run
cat ~/.ssh/id_rsa.pub
to print the public key and copy it -
Go to GitHub and paste the public key (in the Deploy Keys settings panel)
-
Test with
ssh -T -p 443 [email protected]
Expected output:
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
// NOTE: This file must be in the `src` folder, i.e. `src/repl.ts`. | |
/** | |
* Playground script that can be used in a REPL fashion. | |
* Just `npm run repl` and Payload will run in a minimal, local API mode. | |
* @see https://payloadcms.com/docs/local-api/overview#local-api | |
*/ | |
import payload from "payload"; | |
import dotenv from "dotenv"; |
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
# Enable git autocompletions | |
autoload -Uz compinit && compinit | |
# Change terminal prompt to "$directory ($branch)" | |
autoload -Uz vcs_info | |
zstyle ':vcs_info:git:*' formats ' (%b)' | |
precmd () { vcs_info } | |
setopt prompt_subst | |
PS1='%F{yellow}%1~%f%F{cyan}$vcs_info_msg_0_%f $ ' |
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
import payload from "payload"; | |
import { CollectionAfterReadHook } from "payload/types"; | |
import { Variable } from "../payload-types"; | |
const pattern = /{{\s*(.*?)\s*}}/g; | |
const modifiers: { [key: string]: (input: string) => string } = { | |
millions: (value) => Math.floor(parseInt(value) / 1e6).toString(), | |
}; | |
/** |
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 | |
require __DIR__ . '/vendor/autoload.php'; | |
$creds = 'credentials.json'; | |
$sheedId = '1IMwiyCa1gCfh1lacyzZqFrYFsqCe-hOSRlaHIc2gFDw'; | |
$range = 'Sheet1'; | |
$client = new Google_Client(); | |
$client->setAuthConfigFile($creds); | |
$client->useApplicationDefaultCredentials(); |
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
basicConstraints=CA:FALSE | |
keyUsage=digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment | |
authorityKeyIdentifier=keyid,issuer | |
subjectAltName = @alt_names | |
[alt_names] | |
DNS.1=localhost |
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
// Find (add properties as needed): | |
@include\s*(animation|appearance|transform|transition|display|align-items|justify-content|flex-flow|flex|backface-visibility|user-select)\(([^;]+)\); | |
// Replace: | |
$1: $2; | |
// ---------------------------------- | |
// Transforms this: | |
@include display(flex); |
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
function iframeURLChange(iframe, callback) { | |
var lastDispatched = null; | |
var dispatchChange = function () { | |
var newHref = iframe.contentWindow.location.href; | |
if (newHref !== lastDispatched) { | |
callback(newHref); | |
lastDispatched = newHref; | |
} |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} \/nomin(\/|$) | |
RewriteRule (.+)\/nomin(.*) $1$2 [E=NO_MINIFICATION:1] | |
RewriteCond %{ENV:NO_MINIFICATION} 1 [OR] | |
RewriteCond %{ENV:REDIRECT_NO_MINIFICATION} 1 | |
RewriteCond %{REQUEST_URI} (.+)\.min(\.[^.].*) [NC] | |
RewriteCond %{DOCUMENT_ROOT}/%1%2 -f |
In this example, I'll show how to remove the RECORD_AUDIO
permission.
-
Navigate to the
plugins
directory in your Cordova folder. -
Open the
plugin.xml
file of each plugin and search for something like:
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
NewerOlder