Skip to content

Instantly share code, notes, and snippets.

View georgebent's full-sized avatar

Yuriy Kr georgebent

View GitHub Profile
@qWici
qWici / google-chrome.desktop
Last active December 5, 2017 07:15
Fix the problem by opening the empty Chrome tab on Ubuntu
1. Open a PC file $HOME/.local/share/applications/google-chrome.desktop
2. Find a line in it Exec=/opt/google/chrome/chrome
3. At the end of the line add '%U' to succeed Exec=/opt/google/chrome/chrome %U
4. Save the file.
@PavloZv
PavloZv / gist:a0d97b7f48be1ad96c1573dc09d15cce
Last active November 21, 2017 09:27
Debug PHP коду на віддаленому сервері з Xdebug і PhpStorm
На сервері:
інсталюємо xdebug;
редагуємо документ xdebug.ini (/etc/php5/conf.d/; /etc/php/7.0/fpm/conf.d/);
zend_extension=/usr/lib/php5/20100525/xdebug.so - якщо відсутній рядок у файліЮ то прописуємо
xdebug.profiler_enable = 0
xdebug.remote_enable = 1
xdebug.remote_host = 127.0.0.1
xdebug.remote_port=9001
xdebug.remote_handler=dbgp
@mustardandrew
mustardandrew / install_docker.sh
Last active November 21, 2017 09:30
Install and config docker
#!/bin/bash
# for install docker and docker-compose
sudo apt-get update
sudo apt-get -y install docker.io docker-compose
# open file and write DOCKER_OPTS="--bip 172.17.42.1/16"
sudo nano /etc/default/docker
# then restart docker service
@mustardandrew
mustardandrew / .editorconfig
Last active July 21, 2018 11:36
IDE editor config
# http://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
@james2doyle
james2doyle / social.blade.php
Created March 17, 2016 19:39
Social Share Links in Laravel Blade syntax
<a href="https://www.facebook.com/sharer.php?u={{ $url }}" rel="me" title="Facebook" target="_blank"><i class="fa facebook"></i></a>
<a href="https://twitter.com/share?url={{ $url }}&text={{ $title }}" rel="me" title="Twitter" target="_blank"><i class="fa twitter"></i></a>
<a href="https://pinterest.com/pin/create/button/?url={{ $url }}&media={{ $image }}&description={{ $title }}" rel="me" title="Pinterest" target="_blank"><i class="fa pinterest"></i></a>
<a href="https://www.thefancy.com/fancyit?ItemURL={{ $url }}&Title={{ $title }}&Category={{ $category }}&ImageURL={{ $image }}" rel="me" title="Fancy" target="_blank"><i class="fa fancy"></i></a>
<a href="https://plus.google.com/share?url={{ $url }}" rel="me" title="Google Plus" target="_blank"><i class="fa google"></i></a>
@renshuki
renshuki / ubuntu_agnoster_install.md
Last active December 30, 2024 16:16
Ubuntu 16.04 + Terminator + Oh My ZSH with Agnoster Theme

Install Terminator (shell)

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator

Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").

Install ZSH

@rodrigopedra
rodrigopedra / Article.php
Created March 25, 2015 14:58
Localize Carbon::diffForHumans in Laravel Models
<?php namespace App;
use App\Carbon\LocalizedDiffForHumansTrait;
use Illuminate\Database\Eloquent\Model;
// example model
class Article extends Model
{
use LocalizedDiffForHumansTrait;