Skip to content

Instantly share code, notes, and snippets.

View ajcastro's full-sized avatar

Arjon Jason Castro ajcastro

View GitHub Profile
@ajcastro
ajcastro / namespaced_class_declaration.sublime-snippet
Last active February 7, 2019 02:04
Php class declaration sublime snippet
<snippet>
<content><![CDATA[
<?php
namespace ${1:${TM_FILEPATH/(?:.*app\/)|(\/)?([^\/]+)(?=\/)|(?:\/[^\/]+\.php$)/(?1:\\$^N:$^N)/g}};
class ${2:${TM_FILENAME/(.*)[.](.*)/$1/g}} ${3:extends}
{
${4:public} function ${5:methodName}($6)
{
@ajcastro
ajcastro / phpcs-user-settings
Last active March 3, 2019 03:39
My Phpcs User Settings
{
"phpcs_additional_args": {
"--standard": "PSR2",
"--exclude": "Generic.Files.LineEndings",
"-n": ""
},
// PHP_CodeSniffer settings
"phpcs_command_on_save": false,
"phpcs_executable_path": "/usr/bin/phpcs",
@ajcastro
ajcastro / sublime_phpcs_installation.md
Last active July 17, 2019 03:21
Sublime Phpcs plugin Installation Instructions (LATEST)
@mtigas
mtigas / gist:952344
Last active April 3, 2024 07:57
Mini tutorial for configuring client-side SSL certificates.

Client-side SSL

For excessively paranoid client authentication.


Updated Apr 5 2019:

because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.

some other notes: