Skip to content

Instantly share code, notes, and snippets.

View zorgsoft's full-sized avatar
🏠
Working from home

Sergey Agarkov zorgsoft

🏠
Working from home
View GitHub Profile
@mnoskov
mnoskov / .htaccess
Last active March 3, 2020 18:35
Запись всех POST-запросов к сайту
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
@Calinou
Calinou / build_windows.bat
Last active June 16, 2022 14:57
Compile Godot for Windows easily
:: 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
@AgelxNash
AgelxNash / customRoute.plugin.php
Last active September 13, 2019 09:35
Плагин для кастомной маршрутизации в MODX Evolution + сниппет для формирования ссылок. Данная реализация работает только при кэше с учетом ID и $_GET
//<?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
*
@manastungare
manastungare / css-compress.php
Created May 7, 2012 00:23
On-the-fly CSS Compression
<?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.
*
@zorgsoft
zorgsoft / auth.php
Created February 15, 2012 12:38
Authorization library and models for Codeigniter adn Doctrine ORM
<?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);