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.

@reinislejnieks
reinislejnieks / terminal
Last active September 6, 2021 18:17
#linux terminal
# useful linux terminal commands
#-------------------------------
# shows current location
pwd
# change directory
cd / # root dir
cd ~ # home dir
cd # home dir
# 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 / frontendLogin.php
Last active November 6, 2018 06:18
wp fronted login #wp
<div id="login-register-password">
<?php global $user_ID, $user_identity; get_currentuserinfo(); if (!$user_ID) { ?>
<ul class="tabs_login">
<li class="active_login"><a href="#tab1_login">Login</a></li>
<li><a href="#tab2_login">Register</a></li>
<li><a href="#tab3_login">Forgot?</a></li>
</ul>
<div class="tab_container_login">
@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]);