Just put it under your templates folder inside your
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 | |
sudo add-apt-repository ppa:certbot/certbot -y | |
sudo apt-get update -y | |
sudo apt-get upgrade -y | |
sudo apt-get install -y python-certbot-nginx | |
sudo certbot --nginx -d $1 --email $2 --non-interactive --agree-tos --redirect |
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 | |
sudo /opt/bitnami/apps/wordpress/bnconfig --disable_banner 1 | |
sudo /opt/bitnami/letsencrypt/scripts/generate-certificate.sh -m $2 -d $1 -d $1 | |
cd /home/luisarmando1234/apps/wordpress/htdocs/wp-content/plugins/ | |
sudo wget https://downloads.wordpress.org/plugin/woocommerce.3.4.5.zip | |
sudo unzip woocommerce.3.4.5.zip | |
sudo rm woocommerce.3.4.5.zip |
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
<div class="contain"> | |
<h1>Pure CSS Netflix Video Carousel</h1> | |
<p> | |
Inspired by <a href="https://twitter.com/Eli_White">Eli White's</a> article <a href="http://eng.wealthfront.com/2015/06/implementing-netflix-redesign.html">Performant CSS Animations: Netflix Case Study</a>, his <a href="https://codepen.io/TheSavior/pen/LVeYBp">example pen</a>, and <a href="http://matthewjamestaylor.com/">Matt Taylor's</a> <a href="https://codepen.io/mattjamestaylor/pen/dodYPr">CSS-only version.</a> | |
</p> | |
<div class="row"> | |
<div class="row__inner"> |
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/sh | |
####################################### | |
# Bash script to install an AMP stack and PHPMyAdmin plus tweaks. For Debian based systems. | |
# Written by @AamnahAkram from http://aamnah.com | |
# In case of any errors (e.g. MySQL) just re-run the script. Nothing will be re-installed except for the packages with errors. | |
####################################### | |
#COLORS |
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
<?php | |
/** | |
* @link http://www.yiiframework.com/ | |
* @copyright Copyright (c) 2008 Yii Software LLC | |
* @license http://www.yiiframework.com/license/ | |
*/ | |
namespace app\assets; | |
use yii\web\AssetBundle; |
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
<?php | |
$this->registerJsFile('https://unpkg.com/xlsx/dist/xlsx.full.min.js'); | |
$this->registerJs('$(\'#input-excel\').change(function(e){ | |
var reader = new FileReader(); | |
reader.readAsArrayBuffer(e.target.files[0]); | |
reader.onload = function(e) { | |
var data = new Uint8Array(reader.result); | |
var wb = XLSX.read(data,{type:\'array\'}); | |
var htmlstr = XLSX.write(wb,{sheet:"Ejemplo Semanal", type:\'binary\',bookType:\'html\'}); | |
$(\'#wrapper\')[0].innerHTML += htmlstr; |
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
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; | |
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; | |
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; | |
ALTER TABLE `database`.`table` | |
ADD COLUMN `deleted_at` DATETIME NULL DEFAULT NULL AFTER `observaciones`, | |
ADD COLUMN `created_at` DATETIME NULL DEFAULT NULL AFTER `deleted_at`, | |
ADD COLUMN `updated_at` DATETIME NULL DEFAULT NULL AFTER `created_at`, | |
ADD COLUMN `deleted_by` INT(11) NULL DEFAULT NULL AFTER `updated_at`, | |
ADD COLUMN `created_by` INT(11) NULL DEFAULT NULL AFTER `deleted_by`, |
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
%input#check{:type => "checkbox"} | |
%label.main{:for => 'check'} | |
.title | |
%i.fa.fa-bars | |
.container | |
%a.plate{:href => 'https://codepen.io/Oka/'} | |
%i.fa.fa-codepen | |
%a.plate{:href => 'https://github.com/Oka-'} | |
%i.fa.fa-github | |
%a.plate{:href => 'http://stackoverflow.com/users/2505965/oka'} |
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
function GetMultiCellHeight($w, $h, $txt, $border=null, $align='J') { | |
// Calculate MultiCell with automatic or explicit line breaks height | |
// $border is un-used, but I kept it in the parameters to keep the call | |
// to this function consistent with MultiCell() | |
$cw = &$this->CurrentFont['cw']; | |
if($w==0) | |
$w = $this->w-$this->rMargin-$this->x; | |
$wmax = ($w-2*$this->cMargin)*1000/$this->FontSize; | |
$s = str_replace("\r",'',$txt); | |
$nb = strlen($s); |