This article introduces a simple way of working with Hashicorp Vault key-value secrets engine.
You should have a running Hashicorp/Vault service and Vault command available.
Here is a quick way to install a Vault dev server.
| FROM php:7.4-cli-alpine | |
| # Install xdebug | |
| RUN apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS \ | |
| && pecl install xdebug \ | |
| && docker-php-ext-enable xdebug \ | |
| && apk del .phpize-deps | |
| WORKDIR /var/www/html |
| <?php | |
| declare(strict_types=1); | |
| $search_query="Nintendo 64 controller"; | |
| require_once('hhb_.inc.php'); | |
| $hc=new hhb_curl('',true); | |
| $hc->setopt_array(array( | |
| CURLOPT_CONNECTTIMEOUT=>10, | |
| CURLOPT_TIMEOUT=>20, | |
| // without a fake useragent, you will get the error: <div id="error_homepage" style="display:block">Oops, there was an error. Please try again.<br><br>If it persists, please email error@duckduckgo.com<br><img src="https://improving.duckduckgo.com/t/fpbot"> |
| import React, { useState, useEffect } from 'react' | |
| import { useDebounce } from './use-debounce' | |
| const MySearchComponent = props => { | |
| const [search, setSearch, { | |
| signal, | |
| debouncing | |
| }] = useDebounce('') | |
| const [results, setResults] = useState([]) |
This article introduces a simple way of working with Hashicorp Vault key-value secrets engine.
You should have a running Hashicorp/Vault service and Vault command available.
Here is a quick way to install a Vault dev server.
| MIT License | |
| Copyright (c) 2018 Noel Bundick | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
| [Install] | |
| WantedBy=multi-user.target | |
| [Unit] | |
| Description=Google Cloud Compute Engine SQL Proxy | |
| Requires=networking.service | |
| After=networking.service | |
| [Service] | |
| Type=simple |
| <?php | |
| /** | |
| * Convert array with key in dot notation for multidimensional array | |
| * | |
| * Example: | |
| * Input: [ "name.firstname" => "Rafael", "name.lastname" => "Dantas", "a.b.c" => "d" ] | |
| * Output: [ "name" => [ "firstname" => "Rafael", "lastname" => "Dantas" ], "a" => [ "b" => [ "c" => "d" ] ] | |
| * | |
| * @param $array Array with key in dot notation |
| ## Create a source directory | |
| ## mkdir /usr/src/php7 | |
| ## cd /usr/src/php7 | |
| ## copy this files as /usr/src/php7/install.sh | |
| ## aria2c https://gist.githubusercontent.com/risyasin/92075324caa9a46bfd5c/raw/83e0851c42afc4f3557bc4aea02197ddf92fed73/centos-php7-install.sh | |
| ## php7 compile requirements | |
| dnf install -y git | |
| dnf install -y gcc bison automake autoconf |
| Disable vim automatic visual mode on mouse select | |
| issue: :set mouse-=a | |
| add to ~/.vimrc: set mouse-=a | |
| my ~/.vimrc for preserving global defaults and only changing one option: | |
| source $VIMRUNTIME/defaults.vim | |
| set mouse-=a |
This is outdated information, though the concepts are valid. A script implmenting these concepts for OpenConnect 8 on Ubuntu 18 (bionic) and 19 (eoan) is available
The steps in this guide are available as an autobuild shell script