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
source_index=source_index | |
target_index=target_index | |
elastic_search_server=elasticsearch:9200 | |
# Make sure the source index is actually open | |
curl -X POST "${elastic_search_server}/${source_index}/_open" | |
# Put the source index in read-only mode | |
curl -X PUT "${elastic_search_server}/${source_index}/_settings" \ |
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
//////////////////////////////////////////////////////////////////////////////// | |
// This is an example of a proposed configuration language for restic, | |
// based on Hashpicorp's HCL. | |
// | |
// The main feature of the grammar in this example are: | |
// | |
// - More than one repository can be defined in a single configuration file. | |
// - Some aspects of the configuration (i.e. backends definitions) can be | |
// shared by different repositories. | |
// - Support for multiple backends for a single repository. |
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
#!/bin/bash | |
# The list of plugins to be installed | |
CERTBOT_PLUGINS="certbot-dns-route53" | |
### DO NOT MODIFY ANYTHING BELOW THIS LINE ### | |
# Work even if somebody does "sh thisscript.sh". |
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
<html> | |
<head> | |
<title>Ma première page web</title> | |
</head> | |
<body> | |
<h1>Ma première page web</h1> | |
<p> | |
Allo! | |
</p> | |
<p> |
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 | |
// ... | |
// Verify that provided username and password are valid | |
if ( checkLogin($_POST['username'], $_POST['password']) ) { | |
+ // If a target URL has been set, then redirect the user to that URL. | |
+ if (isset($_SESSION['login_success_target'])) { | |
+ header('Location: ' . $_SESSION['login_success_target']); |