A Pen by A.Marchenko on CodePen.
This file contains hidden or 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
| Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
This file contains hidden or 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
| Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
This file contains hidden or 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
| Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
This file contains hidden or 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
| # 1. Install Docker (https://get.docker.com/) | |
| curl -fsSL https://get.docker.com -o install-docker.sh | |
| sudo sh install-docker.sh | |
| # 2. Setup Caddy | |
| mkdir -p caddy | |
| cd caddy | |
| mkdir -p conf | |
| nano conf/Caddyfile |
This file contains hidden or 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 prefixWithZero(value, minLength = 2) { | |
| value = value + ""; | |
| while (value.length < minLength) { | |
| value = `0${value}`; | |
| } | |
| return value; | |
| } |
Scrypt is a hashing algorithm first published in 2009 to address the security of passwords stored in a database. Generating such a hash is computationally intensive, meaning it takes a "long" time to generate a hash. This is fast enough for the sign-in process but makes it extremely costly to attempt brute-force to crack an existing password's hash.
SCrypt Modified is a fork of this algorithm. From its documentation, the intentions of the fork are unclear.
While official SCrypt takes password and salt to generate the hash, modified has a few additional steps:
- Generate
derivedKeyby creating a Scrypt hash wherepasswordis utf8-encoded, andsaltis base64-decoded salt + base64-decoded salt separator - Generate
hashby encrypting base64-decodedsignerKeywith aes-256-ctr wherekeyis the first 32 characters ofderivedKey, while using an empty initialization vector of length 16 - Final
hashmust be base64-encoded
This file contains hidden or 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
| version: '3' | |
| services: | |
| traefik: | |
| image: traefik:2.5 | |
| container_name: appwrite-traefik | |
| command: | |
| - --providers.file.directory=/storage/config | |
| - --providers.file.watch=true | |
| - --providers.docker=true | |
| - --providers.docker.exposedByDefault=false |
This file contains hidden or 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
| # Make sure to stop Appwrite before this backup, | |
| # and make sure you have enough space on the machine. | |
| # After backing up, make sure there is a file in 'backups/backup-___.tar.gz'. | |
| # Also please check size of this file, it should be at least 5kb, even for small instances. | |
| docker run --rm \ | |
| -v appwrite_appwrite-mariadb:/backup/appwrite-mariadb \ | |
| -v appwrite_appwrite-redis:/backup/appwrite-redis \ | |
| -v appwrite_appwrite-cache:/backup/appwrite-cache \ |
This file contains hidden or 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
| export type AppwriteCategory = { | |
| title: string; | |
| queries: string[]; | |
| orderAttributes: string[]; | |
| orderTypes: string[]; | |
| collectionName?: string; | |
| } | |
| export const AppwriteMovieCategories: AppwriteCategory[] = [ | |
| { |
NewerOlder