Skip to content

Instantly share code, notes, and snippets.

View git-Pqrd's full-sized avatar

PIQUARD git-Pqrd

View GitHub Profile
@git-Pqrd
git-Pqrd / wp-mysql-test.php
Created December 30, 2019 12:44 — forked from sivel/wp-mysql-test.php
Database connection test script for WordPress
<?php
/**
* Database connection test script for WordPress
*
* Parses the wp-config.php file for DB connection information and tests
* a mysql connection to the DB server and selection of the database.
* Errors will be reported. Attempts will be made to repair table errors.
*
* Place this file in the same directory as wp-config.php
*
@git-Pqrd
git-Pqrd / install_neovim_to_amazonlinux.sh
Last active March 30, 2020 19:43 — forked from kawaz/install_neovim_to_amazonlinux.sh
install neovim to amazonlinux
#!/usr/bin/env bash
sudo yum groups install -y Development\ tools
sudo yum install -y cmake
sudo yum install -y python34-{devel,pip}
sudo pip-3.4 install neovim --upgrade
# creating and storing the init.vim
wget https://gist.githubusercontent.com/git-Pqrd/d89db665cbceda5493d2e976a612cfc3/raw/c226b8d636ec352c5266babded13120dc85ebbd1/.light_vimrc
mkdir -p ~/.config/nvim/
mv .light_vimrc ~/.config/nvim/init.vim
(
@git-Pqrd
git-Pqrd / ssh.txt
Created July 14, 2018 07:51 — forked from bradtraversy/ssh.md
SSH & DevOps Crash Course Snippets
# Login via SSH with password (LOCAL SERVER)
> ssh brad@192.168.1.29
# Create folder, file, install Apache (Just messing around)
mkdir test
cd test
touch hello.txt
sudo apt-get install apache2
# Generate Keys
@git-Pqrd
git-Pqrd / slim-redux.js
Created July 10, 2017 16:25 — forked from gaearon/slim-redux.js
Redux without the sanity checks in a single file. Don't use this, use normal Redux. :-)
function mapValues(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
result[key] = fn(obj[key], key);
return result;
}, {});
}
function pick(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
if (fn(obj[key])) {