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 / 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])) {
@git-Pqrd
git-Pqrd / vimrc
Last active June 7, 2018 09:38
vim config that save lifes
" vim: fdm=marker ts=2 sts=2 sw=2
" Variables {{{
let mapleader = "\<Space>"
let s:is_windows = has('win32') || has('win64')
let s:is_nvim = has('nvim')
"}}}
@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
<div id="cssSlider">
<div id="sliderImages">
<div id="hi-1" className="hi">
<span className="hi-text">AAA</span>
</div>
<div id="hi-2" className="hi">
B
</div>
<div id="hi-3" className="hi">
C
@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
(
créer un Directory.
Y mettre le docker-compose.yml de WordPress (https://gist.github.com/bradtraversy/faa8de544c62eef3f31de406982f1d42)
créer tous les fichiers WordPress en lançant docker-compose up --build au niv du d-c.yml
Faire l'installation de WordPress en se connectant à 192.168.99.100:8000.
Installer le thème WP bootstrap 4
Télécharger et suivre les instructions de https://github.com/git-Pqrd/wp_ct_boilerplate
@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
*
let mapleader = "\<Space>"
let s:is_nvim = has('nvim')
set t_Co=256
"remmaping different part
inoremap ùù <Esc>
map <F10> :tabp <CR>
map <F11> :tabedit
map <F12> :tabn <CR>
let mapleader = "\<Space>"
let s:is_nvim = has('nvim')
set t_Co=256
"remmaping different part
inoremap ùù <Esc>
map <F10> :tabp <CR>
map <F11> :tabedit
map <F12> :tabn <CR>