Skip to content

Instantly share code, notes, and snippets.

View PatricNox's full-sized avatar
🔰
Open-Source enthusiast

PatricNox PatricNox

🔰
Open-Source enthusiast
View GitHub Profile
@PatricNox
PatricNox / init.sh
Created February 11, 2020 15:18
Init script for Wordpress sites through Docker
#!/bin/sh
#
# This file needs to be executed once a new file system is imported.
# What this does, is updating project settings to have localhost as root.
#
# Dev settings & htaccess.
if [ -f "src/wp-config.php" ]; then
rm src/wp-config.php
@PatricNox
PatricNox / db-init.sh
Created February 11, 2020 15:22
Database Init script for Wordpress sites through Docker
#!/bin/sh
#
# This file needs to be executed once a new database is imported.
# What this does, is updating database to tell wordpress that the site should
# be runned on localhost.
#
## Supress warning.
export MYSQL_PWD=wordpress
@PatricNox
PatricNox / vue2-datepicker.d.ts
Created February 3, 2022 09:24
type file for vue2-datepicker
declare module "vue2-datepicker" {
import { Component } from "vue/types/options";
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/interface-name-prefix */
interface IShortcuts {
text: string;
start: Date;
end: Date;
}