Skip to content

Instantly share code, notes, and snippets.

View konradpodgorski's full-sized avatar

Konrad Podgórski konradpodgorski

View GitHub Profile
@krisleech
krisleech / renew-gpgkey.md
Last active May 5, 2024 10:26
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

@neverything
neverything / <stage>.rb
Last active March 6, 2021 12:32
Dirty opcache_reset() for capistrano deployments to shared php envs without access to restart the server. With some recommended settings for the opcache configuration in php.ini
# In your config/deploy/<stage>.rb files add the correct path which is publicly curlable :D
# Opcache file url
set :opcache_file_url, "https://<add_public_url_of_stage>/opcache_clear.php"
@wowo
wowo / ModelTestCase.php
Created June 14, 2011 21:26
Model Test Case, which loads fixtures and builds database before each test
<?php
require_once(__DIR__ . "/../../../../app/AppKernel.php");
class ModelTestCase extends \PHPUnit_Framework_TestCase
{
protected $_application;
public function getContainer()
{