Skip to content

Instantly share code, notes, and snippets.

View DevWL's full-sized avatar

Wiktor Liszkiewicz DevWL

  • Gajda-Med
  • Poland
View GitHub Profile
@DevWL
DevWL / docker-help.md
Created June 25, 2022 01:47 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@DevWL
DevWL / windowsTerminalSetup.md
Created June 14, 2022 18:30 — forked from TadejPolajnar/windowsTerminalSetup.md
Windows WSL 2 terminal setup

Windows WSL 2 terminal setup

Prerequisites

Windows 10 version 2004 (Build 10941) or higher.

Enabled Windows Subsystem for Linux feature. To enable following enter in Powershell

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
@DevWL
DevWL / functions.php
Last active June 10, 2021 14:44 — forked from rafsuntaskin/functions.php
WooCommerce - Alter CSV Export delimiter
<?php
add_filter( 'woocommerce_product_export_delimiter', function ( $delimiter ) {
// set your custom delimiter
$delimiter = '.';
return $delimiter;
} );
@DevWL
DevWL / gist:d16ec89aefba7eb177889260b4ba4dc4
Last active August 2, 2020 22:01
VS CODE - backup extensions and settings
// Grab settingss from:
// Windows %APPDATA%\Code\User\settings.json
// macOS $HOME/Library/Application Support/Code/User/settings.json
// Linux $HOME/.config/Code/User/settings.json
// now in terminal get list of extenssion (you might want to see verion too for that add "--show-versions" to the line below)
$ code --list-extensions
bmewburn.vscode-intelephense-client
calebporzio.better-phpunit
CoenraadS.bracket-pair-colorizer-2
{
// Watch "Code Faster With Custom VS Code Snippets" https://www.youtube.com/watch?v=JIqk9UxgKEc
// Generate snipets here: https://snippet-generator.app/
// Add new snippet CTRL+SHIFT+P -> choose 'Configure user snippets' -> select language
// Place your snippets for php here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
@DevWL
DevWL / hyperjs.md
Created August 2, 2020 00:03 — forked from raftheunis87/hyperjs.md
Hyper.js + Hyper.js Plugins + ZSH + Starship + Fira Code + Dark Theme - (macOS)

Hyper.js

// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@DevWL
DevWL / hyper.js
Created August 1, 2020 21:39 — forked from coco-napky/hyper.js
Hyper config for git bash in Windows
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
[apcu]
extension=php_apcu
apc.enabled=1
apc.shm_size=32M
apc.ttl=7200
apc.enable_cli=1
apc.serializer=php
[XDebug]
zend_extension = "c:\xampp\php\ext\php_xdebug.dll"
;zend_extension = "c:\xampp\php\ext\php_xdebug-2.7.2-7.3-vc15-x86_64.dll"
xdebug.remote_autostart = 1
xdebug.profiler_append = 0
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "c:\xampp\tmp"
;xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1