Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
<?php | |
date_default_timezone_set('Asia/Bangkok'); | |
require_once "lib/nusoap.php"; | |
// Create SOAP Server | |
$server = new soap_server(); | |
$server->configureWSDL("Test_Service", "http://www.example.com/test_service"); | |
// Example "hello" function | |
function hello($username) { |
#!/bin/bash | |
# Easy script to create OpenVPN client configuration with the user, pre-generating user's | |
# RSA key and certificate. | |
# | |
# Configuration template must exist in the same directory, with only missing part: certificates. | |
# | |
# (c) Dmytro Kovalov, 2015 | |
# | |
cd $(dirname ${BASH_SOURCE[0]}) |
#! /bin/bash | |
### BEGIN INIT INFO | |
# Provides: openconnect | |
# Required-Start: $local_fs $remote_fs $network | |
# Required-Stop: $local_fs $remote_fs $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Basic script to connect to a SSL VPN using Openconnect | |
### END INIT INFO |