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
| { | |
| "openapi": "3.0.0", | |
| "info": { | |
| "title": "httpbin Basic API", | |
| "version": "1.0.0" | |
| }, | |
| "paths": { | |
| "/status/200": { | |
| "get": { | |
| "summary": "Returns a 200 OK status code", |
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 when() { | |
| if [ $# -eq 0 ]; then | |
| echo "Usage: when <unix_timestamp>" | |
| return 1 | |
| fi | |
| date -r $1 | |
| } | |
| urlsafe_b64decode() { |
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
| # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
| # Initialization code that may require console input (password prompts, [y/n] | |
| # confirmations, etc.) must go above this block; everything else may go below. | |
| if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
| source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
| fi | |
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH |
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
| /* eslint-disable no-undef */ | |
| const url = require('url'); | |
| function generateSimpleResponse(httpCode, strMessage) { | |
| return new Response(JSON.stringify({ result: strMessage }), { | |
| status: httpCode, | |
| headers: { | |
| 'Content-Type': 'application/json', | |
| }, | |
| }); |
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
| wget https://openresty.org/download/openresty-1.9.7.3.tar.gz | |
| tar -zxvf openresty-1.9.7.3.tar.gz | |
| cd openresty-1.9.7.3 | |
| wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.38.zip | |
| unzip pcre-8.38.zip | |
| rm -rf pcre-8.38.zip | |
| wget https://www.openssl.org/source/openssl-1.0.1r.tar.gz | |
| tar -zxvf openssl-1.0.1r.tar.gz | |
| rm -rf openssl-1.0.1r.tar.gz | |
| sudo ./configure --prefix=/opt --with-pcre-jit --with-ipv6 --with-pcre=pcre-8.38/ --with-openssl=openssl-1.0.1r/ |
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
| [main] | |
| # The Puppet log directory. | |
| # The default value is '$vardir/log'. | |
| logdir = /var/log/puppet | |
| # Where Puppet PID files are kept. | |
| # The default value is '$vardir/run'. | |
| rundir = /var/run/puppet | |
| # Where SSL certificates are kept. |
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/env perl | |
| use strict; | |
| use warnings; | |
| use HTTP::Request; | |
| use LWP::UserAgent; | |
| use Data::Dumper; | |
| my $source = 'http://ftp.drupal.org/files/projects/<PROJECT LINK>'; | |
| #my $agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36"'; |
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/env perl | |
| use strict; | |
| use warnings; | |
| use HTTP::Request; | |
| use LWP::UserAgent; | |
| use Regexp::Common qw /net/; | |
| use JSON; | |
| use Socket; |
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
| <?php | |
| /** | |
| * A Phing task to run Behat commands. | |
| */ | |
| require_once 'phing/Task.php'; | |
| /** | |
| * A Behat task. Runs behavior-driven development tests against a codebase. | |
| * |
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/.htaccess b/.htaccess | |
| index 7ccb6a2..fa16812 100644 | |
| --- a/.htaccess | |
| +++ b/.htaccess | |
| @@ -56,6 +56,13 @@ DirectoryIndex index.php index.html index.htm | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine on | |
| + # Redirect HTTP to HTTPS on Acquia hosted sites. | |
| + RewriteCond %{HTTPS} off |
NewerOlder