Skip to content

Instantly share code, notes, and snippets.

View DevWL's full-sized avatar

Wiktor Liszkiewicz DevWL

  • Gajda-Med
  • Poland
View GitHub Profile
[opcache]
zend_extension=C:\xampp\php\ext\php_opcache.dll
opcache.enable=1
opcache.enable_cli=1
opcache.memory_consumption=256
opcache.max_accelerated_files=2000
@DevWL
DevWL / Git commit editior
Created March 5, 2018 00:57 — forked from S3ak/Git commit editior
How to set git commit editor to sublime
Method 1
git config --global core.editor "'c:/program files/sublime text 3/sublime_text.exe' -w"
Method 2
git config --global core.editor "subl -n -w"
Method 3
$ echo 'alias subl="/cygdrive/c/Program\ Files/Sublime\ Text\ 3/sublime_text.exe"' >> ~/.bashrc
@DevWL
DevWL / _mixin.sass
Last active June 11, 2017 08:50
This is sass mixin that handles css media query. It can take predefined map as argument or predefined custom settings. This mixin injects values instead declaring them.
// mixin
=media($type1, $size1: null, $type2: null, $size2: null)
@if ($type1) and ($size1) and ($type2) and ($size2)
@media ($type1: $size1) and ($type2: $size2)
@content
@elseif ($type1) and ($size1) and not ($type2) and not ($size2)
@media ($type1: $size1)
@content
@elseif ($type1) and not ($size1) and not ($type2) and not ($size2)
=col($cols, $medias)
$length: length($medias)
$query-i: 1
@each $col in $cols
$i: 0
@media screen and (min-width: #{nth($medias, $query-i)}px)
@while $i < $length
$i: $i + 1
.col.#{$col}-#{floor($i)}
# Move project root folder from folder1 to folder2
# Do not show change in URL
```
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.pl$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.domain.pl$
RewriteCond %{REQUEST_URI} !subfolder1/subfolder2/
RewriteRule (.*) /subfolder1/subfolder2/$1 [L]
```
1. Install repository
//
2. From software update other drivers selct latest drivers
//
3. Set settings for nvidia as needed
sudo nvidia-settings
4. Configur xconfig they will be saved in "/etc/X11/xorg.conf"
@DevWL
DevWL / HTML5.html
Last active January 13, 2016 03:25
<!DOCTYPE HTML>
<!-- FOLDER STRUCTURE
index.php
|->less[_]->css[_] // create your less file in less folder
|->js[_] // create your plugin js file
-->
<html>
@DevWL
DevWL / jQ-animateScroll.js
Last active February 4, 2016 06:21
JQ CUSTOM PLUGINS
(function($){
$.fn.animateScroll = function(){
console.log($('[scroll]'));
$('[scroll]').click(function(){
selector = $($(this).attr('scroll'));
console.log(selector);
console.log(selector.offset().top);
$('html body').animate(
{scrollTop: (selector.offset().top)}, //- $(window).scrollTop()
1000
@DevWL
DevWL / polityka-ciasteczek.txt
Created January 4, 2016 01:20
PL POLITYKA CIASTECZEK
Wykorzystanie plików Cookies
Serwis używa plików Cookies w celu:
1. poprawienia funkcjonalności strony internetowej;
2. poprawienia szybkości działania strony internetowej;
3. dopasowania treści do oczekiwań i zainteresowań użytkowników;
4. zbieraniu anonimowych zagregowanych statystyk przeglądania artykułów i produktów na stronach serwisu
5. wyświetlaniu treści reklamowych.
Wykorzystując pliki Cookies serwis nigdy nie identyfikuje tożsamości użytkowników na podstawie danych przechowywanych w tych plikach.
Przeglądarka internetowa umożliwia zmianę ustawień zapisywania plików Cookies lub usunięcie zapisanych plików. Zobacz jak zmienić te ustawienia w zależności od przeglądarki jakiej używasz:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain-name.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.domain-name.com$
RewriteCond %{REQUEST_URI} !folder/
RewriteRule (.*) /folder/$1 [L]