$argon2id$v=19$m=64,t=512,p=2$QwDCPJNQvMpZ6slISzkYmw$BU6r/nMqKKsTG7NEb/9pnQ
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
| # Example crontab | |
| # PATH is extended to include locally installed pip packages, for linode-cli | |
| # m h dom mon dow command | |
| */15 * * * * PATH=~/.local/bin:$PATH ~/bin/update_dns.sh 2>&1 | logger -t DYN_DNS |
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
| import * as D from "io-ts/Decoder"; | |
| import { extract } from "fp-ts/lib/Identity"; | |
| import { fold } from "fp-ts/lib/Either"; | |
| import { pipe } from "fp-ts/lib/function"; | |
| // Utility to assert/coerce type. | |
| export const decodeType = <P>(type: D.Decoder<unknown, P>, value: unknown): P => | |
| pipe( | |
| type.decode(value), | |
| fold(() => { |
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
| /** | |
| * Run asynchronous computations sequentially | |
| * | |
| * @param {Function} f computation | |
| * @returns {function(*): *} | |
| */ | |
| const sequence = f => entries => | |
| entries.reduce( | |
| (promise, entry) => | |
| promise.then( |
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
| const operation = () => new Promise((resolve, reject) => { | |
| if (Math.random() > 0.8) { | |
| resolve('all good'); | |
| } else { | |
| reject(new Error('failure')); | |
| } | |
| }); | |
| const pause = duration => new Promise(resolve => setTimeout(resolve, duration)); |
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
| diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc | |
| index 0428bd3..1814aa8 100644 | |
| --- a/includes/bootstrap.inc | |
| +++ b/includes/bootstrap.inc | |
| @@ -2360,6 +2360,10 @@ function _drupal_bootstrap_configuration() { | |
| timer_start('page'); | |
| // Initialize the configuration, including variables from settings.php. | |
| drupal_settings_initialize(); | |
| + | |
| + // Sanitize unsafe keys from the request. |
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
| $color: red; |
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() { | |
| 'use strict'; | |
| var CSSCriticalPath = function(w, d, opts) { | |
| var opt = opts || { | |
| allowHosts: [ | |
| w.location.hostname | |
| ] | |
| }; | |
| var css = {}; |
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
| #!/usr/bin/expect | |
| set timeout 60 | |
| spawn ufw enable | |
| while {1} { | |
| expect { | |
| eof {break} | |
| "Proceed with operation" {send "y\r"} | |
| } | |
| } |
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
| [ui] | |
| username=John Doe <johndoen@example.com> | |
| [hooks] | |
| pretxncommit = ~/bin/requireCaseId.sh |
NewerOlder