Skip to content

Instantly share code, notes, and snippets.

View elena-kolevska's full-sized avatar

Elena Kolevska elena-kolevska

View GitHub Profile
@elena-kolevska
elena-kolevska / SublimeSettings
Last active December 27, 2015 05:09
My Sublime Settings
{
"bold_folder_labels": true,
"color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme",
"folder_exclude_patterns":
[
"bin",
".git",
".sass-cache",
".hg",
"tmp",
@elena-kolevska
elena-kolevska / GuakeConfiguration
Last active December 27, 2015 06:08
Configure Guake to show up on the right screen (/usr/bin/guake)
#!/usr/bin/env python
# -*- coding: utf-8; -*-
"""
Copyright (C) 2007-2012 Lincoln de Sousa <lincoln@minaslivre.org>
Copyright (C) 2007 Gabriel Falcão <gabrielteratos@gmail.com>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
@elena-kolevska
elena-kolevska / .bashrc file
Created November 18, 2013 00:53
My .bashrc file (Linux)
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
alias pa="php artisan"
alias tsp="cd /var/www/html/tsp/theservicepro.net"
@elena-kolevska
elena-kolevska / all.yawl.settings
Created December 5, 2013 14:21
Yawl gnome extension settings
[addons>attention]
icons-attention-blink b +
icons-attention-blink-rate s 39
[addons>preview]
windows-preview b -
windows-preview-dim-color s #01234c
windows-preview-dim-opacity s 25
windows-preview-panel-opacity s 25
@elena-kolevska
elena-kolevska / .zshrc
Created December 29, 2013 16:40
My .zshrc file
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="agnoster"
# Example aliases
/*
|--------------------------------------------------------------------------
| Delete form macro
|--------------------------------------------------------------------------
|
| This macro creates a form with only a submit button.
| We'll use it to generate forms that will post to a certain url with the DELETE method,
| following REST principles.
|
*/
@elena-kolevska
elena-kolevska / validators.php
Last active June 24, 2021 14:44
Custom alphabetic validator that allows spaces
<?php
/* app/validators.php */
Validator::extend('alpha_spaces', function($attribute, $value)
{
return preg_match('/^[\pL\s]+$/u', $value);
});
/*
[{
"keys": [
"ctrl+shift+z"
],
"command": "expand_as_you_type",
"context": [
{
"operand": false,
"operator": "equal",
"match_all": true,
$filters = array_reduce($filters_array, function ($result, $item) {
$result[$filters_array['id']] = $filters_array;
return $result;
}, array());
@elena-kolevska
elena-kolevska / 20-xdebug.ini
Created December 17, 2015 12:07
Xdebug configuration. Homestead/Ubuntu.
zend_extension=xdebug.so
xdebug.remote_enable = 1
xdebug.remote_connect_back = 1
xdebug.remote_port = 9000
xdebug.var_display_max_depth = -1
xdebug.var_display_max_children = -1
xdebug.var_display_max_data = -1