Skip to content

Instantly share code, notes, and snippets.

View kl3sk's full-sized avatar
💭
Coding 😄

kl3sk

💭
Coding 😄
View GitHub Profile
@kl3sk
kl3sk / gitkraken-wsl-bash.bat
Created October 21, 2020 12:50 — forked from carlolars/gitkraken-wsl-bash.bat
Use bash from WSL as sh.exe for GitKraken (5.0.4) for Windows
@echo off
REM Make sure that the path to the script is correct!
@bash -l -c "~/bin/gitkraken-wsl-bash.sh %*"
@kl3sk
kl3sk / README.md
Last active July 24, 2020 08:58 — forked from adrienbrault/extension.php
instanceof twig test - SF 5

This extention check for instance object. It check if $object is a real object before reflect the clas itself.

@kl3sk
kl3sk / EntityTreeType.php
Last active December 2, 2019 09:43 — forked from mdzzohrabi/EntityTreeType.php
Symfony Entity Tree ( Hierarchy ) Form Type
<?php
/**
* (c) Masoud Zohrabi <mdzzohrabi@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Updated by klesk <klesk44@gmail.com>
* Added:
* Parent / Child method name
npm install -g windows-build-tools with admin rights
@kl3sk
kl3sk / wp-permissions-script
Last active January 7, 2019 14:12 — forked from macbleser/wp-permissions-script
WordPress Permissions Configuration Script
#!/bin/bash
#
# how to use it
# -------------
#
# sudo bash wp-file-perm.sh /path/to/wp-folder user group
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
...
data () {
...
newType: {},
select2Options: {
parent: '#manager-modal'
}
}
...