Skip to content

Instantly share code, notes, and snippets.

View smgladkovskiy's full-sized avatar
💻
Senior Refactoring Engineer

Sergey Gladkovskiy smgladkovskiy

💻
Senior Refactoring Engineer
View GitHub Profile
@smgladkovskiy
smgladkovskiy / template.php
Created October 20, 2010 08:16
Modified Kohana 3 Controller_Template
<?php defined('SYSPATH') or die('No direct script access.');
/**
* Базовый класс контроллера-шаблона
*
* @author avis <smgladkovskiy@gmail.com>
*/
abstract class Controller_Template extends Kohana_Controller_Template {
/**
@smgladkovskiy
smgladkovskiy / error.php
Created November 2, 2010 13:14
Error Controller
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* Controller Error
*
* @package Templates
* @author Kohana-World Development Team
* @author Sergei Gladkovskiy <smgladkovskiy@gmail.com>
* @license MIT License
* @copyright 2011 Kohana-World Development Team
@smgladkovskiy
smgladkovskiy / kohana_exception.php
Created February 17, 2011 11:59
Kohana Exception extention
<?php defined('SYSPATH') or die('No direct access allowed.');
class Kohana_Exception extends Kohana_Kohana_Exception {
public static function handler(Exception $e)
{
if (Kohana::$environment > Kohana::PRODUCTION)
{
parent::handler($e);
}
@smgladkovskiy
smgladkovskiy / Controller_Ajax_Template.php
Last active September 25, 2015 00:18
Ajax Template Controller for Kohana v3.3
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* Ajax Template Controller template
*
* @package Templates
* @author Sergei Gladkovskiy <smgladkovskiy@gmail.com>
*/
abstract class Controller_Ajax_Template extends Controller {
@smgladkovskiy
smgladkovskiy / .gitignore
Last active September 26, 2015 07:48
Kohana .gitignore
Thumb.bd
.DS_Store
.svn
.htaccess
*.log
*~
*.swp
*.mwb
*.bak
Icon?
@4EverBuilder
4EverBuilder / import file for JIRA
Created January 23, 2012 12:09
SQL To get Redmine CSV export. Can be imported to JIRA
{
"field.subject" : "summary",
"project.lead" : "YOUR USERNAME",
"field.category" : "components",
"value.status.Closed" : "6",
"value.status.New" : "3",
"date.import.format" : "yyyy-MM-dd",
"value.status.Feedback" : "3",
"field.tracker" : "issuetype",
"project.name" : "Project",
@smgladkovskiy
smgladkovskiy / README
Created January 30, 2012 04:33
Kohana 3.2 project creation script
Run this in your command line to make the process begin:
$ curl -o ko3_structure.sh https://raw.github.com/gist/1702555/ko3_structure.sh && ./ko3_structure.sh
@alertor
alertor / jira-behing-nginx-ssl
Last active April 27, 2023 15:45
Atlassian JIRA behind nginx + SSL
# force HTTP to HTTPS - /etc/nginx/conf.d/nonssl.conf
server {
listen 80;
server_name jira.example.com;
access_log off;
return 301 https://$server_name$request_uri;
}
# /etc/nginx/conf.d/jira.conf
server {
@smgladkovskiy
smgladkovskiy / README.md
Last active August 22, 2023 21:54
Скрипты развёртывания продакшен, дев и тестовой сред на сервере.

Скачивание/обновление файла deploy.sh:

$ curl -o deploy.sh https://gist.githubusercontent.com/smgladkovskiy/6133041/raw/deploy.sh

Скачивание файла project.sh:

$ curl -o project.sh https://gist.githubusercontent.com/smgladkovskiy/6133041/raw/project.sh

Скачивание файла доп комманд extra_commands.sh:

@lucadegasperi
lucadegasperi / Vagrantfile
Created September 28, 2014 20:10
Homestead Plus
VAGRANTFILE_API_VERSION = "2"
path = "#{File.dirname(__FILE__)}"
require 'yaml'
require path + '/scripts/homestead.rb'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
Homestead.configure(config, YAML::load(File.read(path + '/Homestead.yaml')), Vagrant.has_plugin?('vagrant-hostsupdater'))
end