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:
I got the tutorials originally from http://code.tutsplus.com/tutorials/psr-duh--net-31061. Install into your sublime text editor via Package Control the Phpcs plugin(https://github.com/benmatselby/sublime-phpcs).
Then these are the packages which should be installed in your machine:
phpcs
"squizlabs/php_codesniffer":"*"phpcbf
"squizlabs/php_codesniffer":"*"php-cs-fixer
"fabpot/php-cs-fixer":"*"{ | |
"phpcs_additional_args": { | |
"--standard": "PSR2", | |
"--exclude": "Generic.Files.LineEndings", | |
"-n": "" | |
}, | |
// PHP_CodeSniffer settings | |
"phpcs_command_on_save": false, | |
"phpcs_executable_path": "/usr/bin/phpcs", |
<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) | |
{ |
{ | |
"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", |
{ | |
"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) |
This gist was getting a lot of comments/questions, but since there are no notifications when someone replies to a gist, I've moved the setup instructions and a bunch of sample code to a dedicated Github repo.