Skip to content

Instantly share code, notes, and snippets.

Vranac Srdjan vranac

  • Novi Sad, Vojvodina, Serbia
Block or report user

Report or block vranac

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
funkatron / xdebug_codebug_setup.txt
Last active Sep 8, 2016
Settings for XDebug and Codebug so PHP debugging actually fucking works
View xdebug_codebug_setup.txt
Codebug config======================
/local/path/to/php/app /server/path/to/php/app
xdebug config=======================
root@ed:/vagrant/projects/acp/frontend/app# more /etc/php5/fpm/conf.d/20-xdebug.ini
; configuration for php xdebug module
cowlby / collection_widget.twig
Created Oct 17, 2011
Customizing form collections in Symfony2
View collection_widget.twig
{% block collection_widget %}
{% spaceless %}
<div class="collection">
{% if prototype is defined %}
{% set attr = attr|merge({'data-prototype': block('collection_item_widget') }) %}
{% endif %}
<div {{ block('widget_container_attributes') }}>
{{ form_errors(form) }}
{% for rows in form %}
chrisroos /
Created Sep 9, 2011
Instructions for exporting/importing (backup/restore) GPG keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/
# or, instead of backing up trustdb...
You can’t perform that action at this time.