sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
# where the magic is done ! | |
RewriteRule (.*)/$ $1 [R=301,L] | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(.*)$ index.php?url=$1 [PT,L] |
(function (context, trackingId, options) { | |
const history = context.history; | |
const doc = document; | |
const nav = navigator || {}; | |
const storage = localStorage; | |
const encode = encodeURIComponent; | |
const pushState = history.pushState; | |
const typeException = 'exception'; | |
const generateId = () => Math.random().toString(36); | |
const getId = () => { |
<?php | |
/** | |
* @name Database class | |
* @author Miguel Fermín | |
* @copyright 2013 | |
* @license MIT | |
* @license http://opensource.org/licenses/MIT | |
*/ | |
class DataBase { | |
<!--- How many pages should you link to at any one time? ---> | |
<cfset intPagesToLinkTo = 5> | |
<!--- How many items are you displaying per page? ---> | |
<cfset intItemsPerPage = 10> | |
<!--- How many items do you need to display, across all pages. ---> | |
<cfset intNumberOfTotalItems = 100> | |
<!--- What is the current page you are on? ---> | |
<cfif isdefined("url.page")> | |
<cfset intCurrentPage = val(url.page)> | |
<cfelse> |
<!-- source: https://www.saotn.org/my-wordpress-web-config/ --> | |
<?xmlversion="1.0"encoding="UTF-8"?> | |
<configuration> | |
<configSections> | |
<!-- | |
Load HttpBL assembly to keep suspicious and malicious web robots | |
out. Get your Access Key @ https://www.projecthoneypot.org/create_account.php | |
--> | |
<section name="HttpBL" type="HttpBL.Settings" /> |
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
$(document).ready(function () { | |
$('#datatab tfoot th').each(function () { | |
$(this).html('<input type="text" />'); | |
}); | |
var oTable = $('#datatab').DataTable({ | |
"serverSide": true, | |
"ajax": { |
function get_avatar_from_service(service, userid, size) { | |
// this return the url that redirects to the according user image/avatar/profile picture | |
// implemented services: google profiles, facebook, gravatar, twitter, tumblr, default fallback | |
// for google use get_avatar_from_service('google', profile-name or user-id , size-in-px ) | |
// for facebook use get_avatar_from_service('facebook', vanity url or user-id , size-in-px or size-as-word ) | |
// for gravatar use get_avatar_from_service('gravatar', md5 hash email@adress, size-in-px ) | |
// for twitter use get_avatar_from_service('twitter', username, size-in-px or size-as-word ) | |
// for tumblr use get_avatar_from_service('tumblr', blog-url, size-in-px ) | |
// everything else will go to the fallback | |
// google and gravatar scale the avatar to any site, others will guided to the next best version |