Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Sergey Agarkov zorgsoft

🏠
Working from home
View GitHub Profile
@manastungare
manastungare / css-compress.php
Created May 7, 2012
On-the-fly CSS Compression
View css-compress.php
<?php
/**
* On-the-fly CSS Compression
* Copyright (c) 2009 and onwards, Manas Tungare.
* Creative Commons Attribution, Share-Alike.
*
* In order to minimize the number and size of HTTP requests for CSS content,
* this script combines multiple CSS files into a single file and compresses
* it on-the-fly.
*
@mnoskov
mnoskov / .htaccess
Last active Mar 3, 2020
Запись всех POST-запросов к сайту
View .htaccess
php_value open_basedir "/path:/tmp"
php_value mail.add_x_header 1
php_value mail.log /path/mail.log
php_value auto_prepend_file /path/postlogger.php
@AgelxNash
AgelxNash / customRoute.plugin.php
Last active Sep 13, 2019
Плагин для кастомной маршрутизации в MODX Evolution + сниппет для формирования ссылок. Данная реализация работает только при кэше с учетом ID и $_GET
View customRoute.plugin.php
//<?php
/**
* Onetable Route
*
* Плагин для кастомной маршрутизации
*
* @license GNU General Public License (GPL), http://www.gnu.org/copyleft/gpl.html
* @author Agel_Nash <Agel_Nash@xaker.ru>
* @version 0.1
*
@Calinou
Calinou / build_windows.bat
Last active Jun 16, 2019
Compile Godot for Windows easily
View build_windows.bat
:: This script must be run from a Windows machine with
:: Visual Studio 2015, Python 2.7 and SCons installed at their
:: default locations. 7-Zip also needs to be installed (to compress editor binaries).
:: NOTE: You need Pywin32 to be installed to use multi-threaded compilation.
:: You may need to set "threads" to 1 for the first build, even if you have it installed.
:: Place this script at the root of your Godot Git clone.
:: CC0 1.0 Universal
@zorgsoft
zorgsoft / auth.php
Created Feb 15, 2012
Authorization library and models for Codeigniter adn Doctrine ORM
View auth.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
// Auth Library
class Auth {
public function login($login, $password){
// Login user
$login_user = Doctrine::getTable('users')->findOneBy('login', $login);
if($login_user != NULL and $login_user->password == md5($password) ){
$this->session->set_userdata('isAuthorized', TRUE);
$this->session->set_userdata($login_user);
You can’t perform that action at this time.