Skip to content

Instantly share code, notes, and snippets.

View p8R's full-sized avatar
🏠
Working from home

p8R

🏠
Working from home
View GitHub Profile
@p8R
p8R / xampp_php7_xdebug.md
Created June 17, 2017 16:32 — forked from odan/xampp_php7_xdebug.md
Installing Xdebug for XAMPP
@p8R
p8R / Default (Windows).sublime-keymap
Created September 18, 2017 06:48 — forked from rotassator/Default (Windows).sublime-keymap
Sublime Text 3: Key Binding - restore Quick Switch Project keystroke
[
{ "keys": ["ctrl+alt+p"], "command": "prompt_select_workspace" }
]
@p8R
p8R / gist:0803e067d9d2bd18b0d10a44dc2a0c38
Created September 18, 2017 06:51
Sublime Text - basic key bindings
[
{ "keys": ["ctrl+alt+;", ";"], "command": "toggle_side_bar" },
{ "keys": ["ctrl+alt+;", "'"], "command": "toggle_minimap" },
{ "keys": ["ctrl+alt+;", "w"], "command": "toggle_setting", "args": {"setting": "word_wrap"}},
{ "keys": ["ctrl+alt+c"], "command": "" },
{ "keys": ["ctrl+shift+b"], "command": "build", "args": {"variant": "Run Java"} },
{ "keys": ["ctrl+alt+p"], "command": "prompt_select_workspace" }
]
@p8R
p8R / gist:39b4c90be83618a054f5ff2b6eefbd3b
Last active September 18, 2017 06:55
Sublime Text - basic user config
{
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Colorsublime - Themes/Capo-Light.tmTheme",
"dictionary": "Packages/Dictionaries/Polish.dic",
"draw_indent_guides": true,
"fade_fold_buttons": false,
"file_exclude_patterns":
[
"*.jpg",
@p8R
p8R / Default.sublime-theme
Created December 12, 2017 13:28
Default Sublime Text theme with styles for modified files tabs
[
{
"class": "sidebar_label",
"color": [50, 50, 50],
"font.bold": false,
"font.size": 15,
"shadow_color": [190, 190, 190],
"shadow_offset": [1, 1],
},
{
@p8R
p8R / gist:b988570683882f0fafb0a2d352412339
Created May 9, 2018 11:16
SublimeText 3 Java build system 2 variants: build (Ctrl+B), run (Ctrl+Shift+B)
{
"cmd": ["javac", "$file"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.java",
"shell": true,
"encoding": "cp1250",
"variants": [
{ "cmd": ["java", "$file_base_name"],
"name": "Run Java"
@p8R
p8R / Install-php7.md
Created July 3, 2018 08:38 — forked from hollodotme/Install-php7.md
Installing php7-fpm with phpredis and xdebug extension on Ubuntu 14.04

Install php7.0-fpm

# remove php5 modules
apt-get autoremove --purge php5-*
# add php-7.0 source list by [Ondřej Surý](https://github.com/oerdnj)
add-apt-repository ppa:ondrej/php
# Update index
apt-get update
# Install php7.0-fpm with needed extensions
@p8R
p8R / gist:d67caaceca23692500ccc2c0763dc694
Created August 16, 2018 12:20 — forked from faisalarbain/gist:9340940
Snippet to setup apache and VHOST for Vagrant Provisioner
# Apache
# ------
# Install
apt-get install -y apache2
# Remove /var/www default
rm -rf /var/www
# Symlink /vagrant to /var/www
<VirtualHost *:80>
ServerAdmin $EMAIL
DocumentRoot $DOCROOT
ServerName $SERVER_NAME
ServerAlias $SERVER_ALIAS
#ErrorLog "logs/dummy-host.example.com-error.log"
#CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>
@p8R
p8R / Dockerfile
Created May 5, 2020 09:05 — forked from jcavat/Dockerfile
docker-compose with php/mysql/phpmyadmin/apache
FROM php:7.1.2-apache
RUN docker-php-ext-install mysqli