One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
<?php | |
include('head.inc'); // Include your head setup. | |
/* Setup the flourish class autoloader. */ | |
function flourish_loader( $class_name ) | |
{ | |
// ** Customize this to your root Flourish directory ** | |
$flourish_root = wire('config')->paths->root . 'site/.flourish/'; |
#!/bin/bash -ex | |
# Paste this into ssh | |
# curl -sL https://gist.github.com/andsens/2913223/raw/bootstrap_homeshick.sh | tar -xzO | /bin/bash -ex | |
# When forking, you can get the URL from the raw (<>) button. | |
### Set some command variables depending on whether we are root or not ### | |
# This assumes you use a debian derivate, replace with yum, pacman etc. | |
aptget='sudo apt-get' | |
chsh='sudo chsh' |
<?php | |
/** | |
* Adding other types of save buttons for page edit form. | |
* | |
* ProcessWire 2.x | |
* Copyright (C) 2010 by Ryan Cramer | |
* Licensed under GNU/GPL v2, see LICENSE.TXT | |
* | |
* http://www.processwire.com |
server { | |
## [Default Nginx Configuration] | |
# .htaccess 8.1 | |
charset utf-8; | |
# .htaccess 3. | |
location = /favicon.ico { log_not_found off; access_log off; } | |
location = /robots.txt { log_not_found off; access_log off; } | |
/http://example.com | |
/%5cexample.com | |
/%2f%2fexample.com | |
/example.com/%2f%2e%2e | |
/http:/example.com | |
/?url=http://example.com&next=http://example.com&redirect=http://example.com&redir=http://example.com&rurl=http://example.com | |
/?url=//example.com&next=//example.com&redirect=//example.com&redir=//example.com&rurl=//example.com | |
/?url=/\/example.com&next=/\/example.com&redirect=/\/example.com | |
/redirect?url=http://example.com&next=http://example.com&redirect=http://example.com&redir=http://example.com&rurl=http://example.com | |
/redirect?url=//example.com&next=//example.com&redirect=//example.com&redir=//example.com&rurl=//example.com |
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"sync" | |
"time" | |
) |
Selfhosting is the process of locally hosting and managing applications instead of renting from SaaS providers.
This is a list of Free Software network services and web applications which can be hosted locally. Non-Free software is listed on the Non-Free page.
See Contributing.
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam' | |
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes' | |
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no' |
const UpdateProcessWireFrontendContentUsingHtmxDemo = { | |
initHTMXXRequestedWithXMLHttpRequest: function () { | |
document.body.addEventListener("htmx:configRequest", (event) => { | |
// @note: ADD THIS!!! if not using hx-include='token input' | |
// const csrf_token = UpdateProcessWireFrontendContentUsingHtmxDemo.getCSRFToken() | |
// event.detail.headers[csrf_token.name] = csrf_token.value | |
// add XMLHttpRequest to header to work with $config->ajax | |
event.detail.headers["X-Requested-With"] = "XMLHttpRequest" | |
}) | |
}, |