Skip to content

Instantly share code, notes, and snippets.

View ajcastro's full-sized avatar

Arjon Jason Castro ajcastro

View GitHub Profile
@ajcastro
ajcastro / sublime_phpcs_installation.md
Last active July 17, 2019 03:21
Sublime Phpcs plugin Installation Instructions (LATEST)
import axios from 'axios'
export default class Cancellable {
constructor(cancelMessage) {
this.cancelMessage = cancelMessage
this.cancelToken = null
}
axios(fn) {
if (this.cancelToken) {
alias ..="cd .."
alias ...="cd ../.."
alias ll="ls -alF"
alias proj="cd d:\Projects"
#*****#
# Git #
#*****#
alias gp="git pull"
alias gs="git status"
@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 / 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"
@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)
{
[
"Alignment",
"AlignTab",
"All Autocomplete",
"AngularJS",
"Auto Semi-Colon",
"Case Conversion",
"CodeFormatter",
"DocBlockr",
"Emmet",
@ajcastro
ajcastro / mysql_gzip.txt
Created January 24, 2019 01:23
mysql_gzip.txt
gzip -dc ~/Projects/ | mysql -u 'homestead' -p simmfins_laravel
gzip -dc ~/Projects/ | mysql <db>
@ajcastro
ajcastro / vbox_help.txt
Created January 24, 2019 01:15
vbox_help.txt
https://askubuntu.com/questions/900118/vboxdrv-sh-failed-modprobe-vboxdrv-failed-please-use-dmesg-to-find-out-why
https://stegard.net/2016/10/virtualbox-secure-boot-ubuntu-fail/
https://askubuntu.com/a/802682