This file contains 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
package main | |
import ( | |
"encoding/base64" | |
"net/http" | |
"strings" | |
) | |
type handler func(w http.ResponseWriter, r *http.Request) |
This file contains 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
1001190022-H0113-08M2-88326: | |
[05/Feb/2021:15:14:55 +0100] stage.fbapi.visitinvite.com "GET /bookings/ref/1001190022-H0113-08M2-88326 HTTP/1.1" 404 65 "" "RestSharp/106.0.0.0" "HTTP/1.1" [] | |
[05/Feb/2021:15:14:55 +0100] stage.fbapi.visitinvite.com "POST /bookings HTTP/1.1" 201 400 "" "RestSharp/106.0.0.0" "HTTP/1.1" [{"reference":"1001190022-H0113-08M2-88326","unitRef":"1001190022-H0113","startTime":"2021-02-05T13:00:00Z","endTime":"2021-03-01T14:45:00Z","guests":[{"email":"Annette.Usken@forsvarsbygg.no","phone":"90778300","reference":"1001190022-H0113-08M2-88326"}]}] | |
1001190022-H0113-08-88326: | |
[05/Feb/2021:09:34:50 +0100] stage.fbapi.visitinvite.com "GET /bookings/ref/1001190022-H0113-08-88326 HTTP/1.1" 404 65 "" "RestSharp/106.0.0.0" "HTTP/1.1" [] | |
[05/Feb/2021:09:35:48 +0100] stage.fbapi.visitinvite.com "GET /bookings/ref/1001190022-H0113-08-88326 HTTP/1.1" 404 65 "" "RestSharp/106.0.0.0" "HTTP/1.1" [] | |
[05/Feb/2021:09:35:49 +0100] stage.fbapi.visitinvite.com "POST /bookings HTTP/1.1" 201 396 "" "RestSharp/10 |
This file contains 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
add_filter( 'pre_get_posts', 'cpt_search' ); | |
function cpt_search( $query ) { | |
if ( $query->is_search ) | |
$query->set( 'post_type', array( 'post', 'page', 'movies', 'products', 'portfolio' ) ); | |
return $query; | |
}; |
This file contains 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 | |
# Install rbenv | |
# https://github.com/sstephenson/rbenv | |
cd ~ | |
git clone git://github.com/sstephenson/rbenv.git .rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> .bash_profile | |
echo 'eval "$(rbenv init -)"' >> .bash_profile |