Skip to content

Instantly share code, notes, and snippets.

Predecessors

Install yarn

curl --compressed -o- -L https://yarnpkg.com/install.sh | bash

Install vue-cli

Tested @vue/cli version is 4.4.6.

# Delete Product term relationships
DELETE
term_relationships.*,
term_taxonomy.*,
terms.*
FROM wp_term_relationships AS term_relationships
INNER JOIN wp_term_taxonomy AS term_taxonomy
ON term_relationships.term_taxonomy_id=term_taxonomy.term_taxonomy_id
INNER JOIN wp_terms AS terms
ON term_taxonomy.term_id=terms.term_id
@reinislejnieks
reinislejnieks / git-deployment.md
Created February 22, 2021 19:21 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.

@reinislejnieks
reinislejnieks / iterm2-solarized.md
Created January 22, 2019 17:33 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

@reinislejnieks
reinislejnieks / .gitconfig
Created December 4, 2018 12:30 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
@reinislejnieks
reinislejnieks / .env.gitlab
Created November 24, 2018 08:31
Laravel Dusk (PHPUNIT) Test for Gitlab-ci with docker chromdriver , headless chrome, vnc, screenshots, pipeline, artifacts
APP_ENV=testing
APP_KEY=base64:DimZ0aVNA8ZWtWxTB4fDxFc6lL1wM2C7evETA4QK3+c=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost:8081
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=secca_testing
{{-- 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';
@reinislejnieks
reinislejnieks / js.php
Created October 17, 2018 07:46
Write #js #sql using heredoc in #php code
<?php
$js = <<<JS
console.log('Hei!');
let foo = 'bar';
JS;
$sql = <<<SQL
USE somedb;
SELECT `foo`.*
@reinislejnieks
reinislejnieks / tips.js
Last active October 17, 2018 22:17
#js tips
// to log better
const a = {};
const b = {};
const c = {};
console.log('%c Something', 'color:orange; font-weight:bold;');
console.log({a, b, c});
// to log array of obj with the same props
console.table([a, b, c]);
@reinislejnieks
reinislejnieks / Working on a branch with a dependence on another branch that is being reviewed.txt
Created September 19, 2018 13:45
#git - Working on a branch with a dependence on another branch that is being reviewed
Git is very flexible. Here's one way you can do it.
Your first branch featureA is up for review.
Your second branch featureB is in development and depends on the code in the featureA branch.
Merge the featureA branch into the featureB branch.
If you make changes to the featureA branch then you should merge the featureA branch into the featureB branch again to incorporate the changes.