Skip to content

Instantly share code, notes, and snippets.

View ajcastro's full-sized avatar

Arjon Jason Castro ajcastro

View GitHub Profile
@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:

@ajcastro
ajcastro / sublime_phpcs_installation.md
Last active July 17, 2019 03:21
Sublime Phpcs plugin Installation Instructions (LATEST)
@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 / 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 / theme-flatland-settings.json
Last active February 7, 2019 02:17
Theme Flatland sublime settings
{
"color_scheme": "Packages/Theme - Flatland/Flatland Monokai.tmTheme",
"flatland_sidebar_tree_small": true,
"flatland_square_tabs": true,
"font_size": 10,
"ignored_packages":
[
"Vintage"
],
"theme": "Flatland Dark.sublime-theme",
@ajcastro
ajcastro / TodoReview.sublime-settings
Created August 25, 2015 06:16
TodoReview user-settings
{
"patterns": {
"TODO": "TODO[\\s]*?:[\\s]*(?P<todo>.*)$",
"NOTE": "NOTE[\\s]*?:[\\s]*(?P<note>.*)$",
"FIXME": "FIX ?ME[\\s]*?:[\\s]*(?P<fixme>.*)$",
"CHANGED": "CHANGED[\\s]*?:[\\s]*(?P<changed>.*)$"
},
"exclude_folders": [
"*.git*",
"vendor"
[
"Alignment",
"AlignTab",
"All Autocomplete",
"AngularJS",
"Auto Semi-Colon",
"Case Conversion",
"CodeFormatter",
"DocBlockr",
"Emmet",
alias ..="cd .."
alias ...="cd ../.."
alias ll="ls -alF"
alias proj="cd d:\Projects"
#*****#
# Git #
#*****#
alias gp="git pull"
alias gs="git status"
# Source: http://askubuntu.com/questions/760671/could-not-load-vboxdrv-after-upgrade-to-ubuntu-16-04
# Follow instructions from 1 to 4 from the source url (stackoverflow).
# Then based from the comment also sign the following modules:`vboxnetflt`, `vboxnetadp`, and `vboxpci`.
# After instruction 4: `sudo modprobe vboxdrv`, enter the following commands to finish signing the modules.
# Copy-paste the ff into the terminal:
sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxdrv)
sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxnetflt)
sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxnetadp)
@ivanvermeyen
ivanvermeyen / !NOTE.md
Last active March 15, 2023 05:25
Setup a Laravel Storage driver with Google Drive API