mkdir -p /backup/mysql/hourly
mkdir -p /backup/mysql/daily
DROP TABLE if exists d_date; | |
CREATE TABLE d_date | |
( | |
date_dim_id INT NOT NULL, | |
date_actual DATE NOT NULL, | |
epoch BIGINT NOT NULL, | |
day_suffix VARCHAR(4) NOT NULL, | |
day_name VARCHAR(9) NOT NULL, | |
day_of_week INT NOT NULL, |
DROP TABLE if exists d_date; | |
CREATE TABLE d_date | |
( | |
date_dim_id INT NOT NULL, | |
date_actual DATE NOT NULL, | |
epoch BIGINT NOT NULL, | |
day_suffix VARCHAR(4) NOT NULL, | |
day_name VARCHAR(9) NOT NULL, | |
day_of_week INT NOT NULL, |
create table dbo.DimDate | |
( | |
DateKey int not null, | |
FullDate date not null, | |
DayNumberOfWeek tinyint not null, | |
DayNameOfWeek nvarchar(10) not null, | |
WeekDayType nvarchar(7) not null, | |
DayNumberOfMonth tinyint not null, | |
DayNumberOfYear smallint not null, | |
WeekNumberOfYear tinyint not null, |
<?php | |
/** | |
* @package Custom_queries | |
* @version 1.0 | |
*/ | |
/* | |
Plugin Name: Custom queries | |
Plugin URI: http://wordpress.org/extend/plugins/# | |
Description: This is an example plugin | |
Author: Carlo Daniele |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
import win32print | |
import win32ui | |
from PIL import Image, ImageWin | |
PHYSICALWIDTH = 110 | |
PHYSICALHEIGHT = 111 | |
printer_name = win32print.GetDefaultPrinter () | |
file_name = "new.jpg" |
# This is a sample build configuration for PHP. | |
# Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples. | |
# Only use spaces to indent your .yml configuration. | |
# You can specify a custom docker image from Docker Hub as your build environment. | |
# run composer check-platform-reqs for a list of required extensions. | |
image: php:7.2-fpm | |
pipelines: | |
default: | |
# Not needed unless you're doing feature tests. | |
# - step: |
/* | |
* Basic implementation of methods needed to receive swiped credit card data with javascript. | |
* | |
* NOTE: PCI compliance specifies that card data must never be stored in an unencrypted manner, and | |
* only certain pieces of card data can be stored persistently. Ensure that output logging is NOT | |
* stored persistently when using this file, as it contains console.log messages that are intended | |
* to educate the user, and these messages contain data that may compromise your PCI compliance posture. | |
* | |
* If you choose to use any of this code with real credit card data, it is your responsibility | |
* to remove all log statements, output, or other code that may serve to persist offending information. |
Handy helpers for controlling visibility of elements until Vue has compiled.
Use like:
<div v-cloak>
<h1>
<span class="v-cloak--inline">Loading...</span> <!-- Only displayed before compiling -->
<span class="v-cloak--hidden">{{ post.title }}</span> <!-- Hidden until compiling is finished -->