Skip to content

Instantly share code, notes, and snippets.

View kdankov's full-sized avatar

Konstantin Dankov kdankov

View GitHub Profile
@kdankov
kdankov / NGINX_PHP_with_Homebrew.md
Last active November 17, 2020 22:15
NGINX with PHP with Homebrew

Stop Apache and remove it from starting on login

$ sudo apachectl -k stop
$ sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist

Install nginx

<?php
/**
* Template Name: ACF Sections
*/
get_header();
$fields = get_fields();
@kdankov
kdankov / WindowsKeyboardFixes.ahk
Created March 22, 2020 11:20
Windows Keyboard Mapping Fixes
#SingleInstance force
/*
#InstallKeybdHook
$VKE2::Send, {``}
$+VKE2::Send, {~}
$VKC0::Send, {\}
$+VKC0::Send, {|}
@kdankov
kdankov / Dockerfile-php
Created March 16, 2020 08:11
Local Development with Docker
FROM php:7.3-fpm
RUN docker-php-ext-install mysqli
@kdankov
kdankov / gist:1804705076cb2b1a2edda132093f31e5
Created November 21, 2019 16:58
CSS Advanced - Nov 2019 - Gulpfile
"use strict";
let gulp = require("gulp"),
autoprefixer = require("gulp-autoprefixer"),
exec = require("gulp-exec"),
browserSync = require('browser-sync').create(),
sass = require('gulp-sass'),
cp = require("child_process");
gulp.task("css", function() {
@kdankov
kdankov / gist:9cccc498cc70aafabbcaaa1e98a49b7c
Created November 21, 2019 16:58
CSS Advanced - Nov 2019 - Gulpfile
"use strict";
let gulp = require("gulp"),
autoprefixer = require("gulp-autoprefixer"),
exec = require("gulp-exec"),
browserSync = require('browser-sync').create(),
sass = require('gulp-sass'),
cp = require("child_process");
gulp.task("css", function() {
# Start SSH Agent
#----------------------------
SSH_ENV="$HOME/.ssh/environment"
function run_ssh_env {
. "${SSH_ENV}" > /dev/null
}
function start_ssh_agent {
@kdankov
kdankov / .vimrc
Created March 4, 2019 13:42
Minimal Vim Setup
" use vim not vi
set nocompatible
" syntax and plugins (netrw)
syntax enable
filetype plugin on
Goals:
Fundamental understanding of what HTML is and how it works
Fundamental understanding of what CSS is and how it works
Ability to make and debug web Layouts
Familiarise people with the notion of templates
Disabuse wrong or misleading notions about Responsive Design
Lectures:
`
### WordPress Environment ###
Home URL: http://motorbikewriter.com/shop
Site URL: http://motorbikewriter.com/shop/wordpress
WC Version: 2.6.8
Log Directory Writable: ✔
WP Version: 4.6.1
WP Multisite: –
WP Memory Limit: 256 MB