Skip to content

Instantly share code, notes, and snippets.

View martiis's full-sized avatar

Martynas Sudintas martiis

  • Helis LT
  • Lithuania
View GitHub Profile
@martiis
martiis / .zshrc
Created December 4, 2020 08:43 — forked from aurelmegn/.zshrc
Alias for symfony's console command
## COMPOSER ALIAS
alias cii="composer install --ignore-platform-reqs"
alias cui="composer update --ignore-platform-reqs"
## SYMFONY ALIAS
# Console
alias sf="php bin/console"
alias sfdev="php bin/console --env=dev"
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/martynas/.oh-my-zsh"
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"
// 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',
@martiis
martiis / killer
Last active December 13, 2017 17:02
Shell for killing process
#!/bin/sh
kill -9 $(ps | grep "$@" | grep -v grep | awk '{ print $1 }')
@martiis
martiis / back
Created December 10, 2017 17:30
#!/bin/sh
nohup "$@" &> /dev/null &
@martiis
martiis / php-debug
Last active December 9, 2017 19:16
Debug script helper for php
#!/bin/sh
env PHP_IDE_CONFIG="serverName=vagrant" XDEBUG_CONFIG="idekey=PHPSTORM" SYMFONY_DEBUG="1" $@
@martiis
martiis / symfony_collection.js
Created October 12, 2016 11:28
For displaying symfony collections
(function () {
function SymfonyCollection(listId, addBtnId, count) {
this.list = $('#' + listId);
this.count = count;
this.widget = this.list.attr('data-prototype');
var _self = this;
$('#' + addBtnId).on('click', function () {
_self.add();
@martiis
martiis / nginx_oxid_vhost
Last active August 29, 2015 14:27
Nginx configuration for OXID eCommerce
server {
listen 80;
server_name oxid.dev www.oxid.dev;
root /var/www/oxid;
index index.php index.html;
location = /favicon.ico {
log_not_found off;
access_log off;
@martiis
martiis / alias
Last active August 29, 2015 14:17
My aliases
alias docker-clear='docker rm $(docker ps -aq)'
alias docker-kill='docker kill $(docker ps -q)'
alias phpcs='/Users/martynas/.composer/vendor/bin/phpcs -p --standard=/Users/martynas/.composer/vendor/ongr/ongr-strict-standard/ONGR --ignore=vendor/,Tests/app/,Resources/public/ ./'
alias phpunit='/Users/martynas/.composer/vendor/bin/phpunit'
alias debug-phpunit='php -dxdebug.remote_autostart=On /Users/martynas/.composer/vendor/bin/phpunit'
alias phpunit-stop='/Users/martynas/.composer/vendor/bin/phpunit --stop-on-error --stop-on-failure'
alias debug-phpunit-stop='php -dxdebug.remote_autostart=On /Users/martynas/.composer/vendor/bin/phpunit --stop-on-error --stop-on-failure'
alias debug='php -dxdebug.remote_autostart=On'