Skip to content

Instantly share code, notes, and snippets.

View rogatec's full-sized avatar
πŸ”‹

TeaMohn rogatec

πŸ”‹
View GitHub Profile
@rogatec
rogatec / security.txt
Created March 5, 2026 07:32 — forked from sebiomoa/security.txt
Security.md file for AI Agents
# Security Template
This repository handles production user data and privileged database access. Treat security requirements as **non-optional**.
## Agent Rules (MUST FOLLOW)
- **No secrets in code**
- Never commit: Service role keys, JWT secrets, database passwords, API keys.
- Client-side env vars must be limited to `NEXT_PUBLIC_*` and must be non-sensitive.
(function() {
var jQuery = document.querySelector('iframe').contentWindow.jQuery;
jQuery('.activityName').each(function(){
var $this = jQuery(this);
$this.css({
overflow:'auto',
width:'200px'
});
@rogatec
rogatec / post-receive
Created October 7, 2016 10:09
git post-merge hook : update / install composer packages & composer itself
#!/bin/bash
# thanks http://www.jenssegers.be/blog/46/deploying-websites-with-git-and-composer-
# replace folder
cd "`dirname $0`/../../application/config"
# Check if a composer.json file is present
if [ -f composer.json ]; then
@rogatec
rogatec / Bank.php
Last active September 1, 2016 13:34
Zend Framework 3 get model db result with foreign keys to another/itself model with custom hydrator and form fieldsets (in progress)
<?php
namespace Employee\Model;
class Bank
{
public $id;
public $name;
public $bic;
@rogatec
rogatec / AuthController.php
Created August 25, 2016 07:30
Zend Framework 3 Authentication with Session setup
<?php
namespace Authentication\Controller;
use Employee\Model\EmployeeTable;
use Main\Form\LoginForm;
use Zend\Authentication\Adapter\DbTable\CredentialTreatmentAdapter;
use Zend\Authentication\AuthenticationService;
use Zend\Db\Sql\Select;
use Zend\Mvc\Controller\AbstractActionController;