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 | |
## Install ISPConfig3 on Ubuntu 18.04 64Bits | |
## Author: Nilton OS blog.linuxpro.com.br | |
## http://blog.linuxpro.com.br/posts/instalando-ispconfig3-no-ubuntu-1404.html | |
## https://www.howtoforge.com/community/threads/perfect-server-for-ubuntu-16-but-with-nginx-instead-of-apache-socket-permission-issues.72883/ | |
## https://www.howtoforge.com/tutorial/perfect-server-ubuntu-18-04-nginx-bind-dovecot-and-ispconfig-3/ | |
## Reconfigure Dash | |
echo "dash dash/sh boolean false" | debconf-set-selections |
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
{ | |
"avada-theme": { | |
"name": "Avada Theme", | |
"slug": "avada-theme", | |
"img": "https://wpstarterpack.com/wp-content/uploads/2019/07/av.jpg", | |
"type": "theme", | |
"category": "top-100-plus", | |
"tagline": "responsive multi-purpose theme", | |
"description": "top1 best selling wordpress theme!", | |
"oldPrice": "save $60" |
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
{{-- Define all our servers --}} | |
@servers(['staging' => '', 'production' => '']) | |
@setup | |
{{-- The timezone your servers run in --}} | |
$timezone = 'Europe/Amsterdam'; | |
{{-- The base path where your deployments are sitting --}} | |
$path = '/var/www/site.com/htdocs'; |
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
/** | |
* @param {object} scope - Object that all bound data will be attached to. | |
*/ | |
function twoWayBind(scope) { | |
// a list of all bindings used in the DOM | |
// @example | |
// { 'person.name': [<input type="text" data-bind="person.name"/>] } | |
var bindings = {}; | |
// each bindings old value to be compared for changes |
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
function appendScript(src, destination){ | |
var s = document.createElement("script"); | |
s.type = "text/javascript"; | |
s.src = src; | |
destination.appendChild(s); | |
} | |
function authenticated(){ | |
var cookie = $j( "body" ).hasClass("logged-in"); | |
if(cookie){ | |
return true; |
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
var $j = jQuery.noConflict(); | |
var EN ={ | |
added: "Product was added to wishlist", | |
removed: "Product was removed from wishlist", | |
addedToCart: "Product was added to cart" | |
}; | |
var langs = EN; | |
window.isAuthenticated=function() { | |
var cookie = $j( "body" ).hasClass("logged-in"); | |
if(cookie){ |
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
function fixCurrentPageReload(location, hrefSelectors){ | |
$j( hrefSelectors ).each(function( index ) { | |
var loc = $j( this ).attr("href").replace(/\//g, ""); | |
var pathname = location.pathname.replace(/\//g, ""); | |
if(typeof loc !== 'undefined' && loc.indexOf(pathname) !== -1 || typeof loc !== 'undefined' && loc === pathname){ | |
$j( this ).click(function(e){ | |
e.preventDefault(); | |
}); | |
} | |
}); |
NewerOlder