Skip to content

Instantly share code, notes, and snippets.

View d8vjork's full-sized avatar
💰
Focused on commercial projects

Ruben Robles d8vjork

💰
Focused on commercial projects
View GitHub Profile
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'permissions' in 'field list' in C:\inetpub\wwwroot\orchid\vendor\laravel\framework\src\Illuminate\Database\Connection.php:445
Stack trace:
#0 C:\inetpub\wwwroot\orchid\vendor\laravel\framework\src\Illuminate\Database\Connection.php(445): PDO->prepare('insert into `us...')
#1 C:\inetpub\wwwroot\orchid\vendor\laravel\framework\src\Illuminate\Database\Connection.php(640): Illuminate\Database\Connection->Illuminate\Database\{closure}('insert into `us...', Array)
#2 C:\inetpub\wwwroot\orchid\vendor\laravel\framework\src\Illuminate\Database\Connection.php(607): Illuminate\Database\Connection->runQueryCallback('insert into `us...', Array, Object(Closure))
#3 C:\inetpub\wwwroot\orchid\vendor\laravel\framework\src\Illuminate\Database\Connection.php(450): Illuminate\Database\Connection->run('insert into `us...', Array, Object(Closure))
#4 C:\inetpub\wwwroot\orchid\vendor\laravel\framework\src\Illuminate\Database\Connection.php(404): Illuminate\Databa
@d8vjork
d8vjork / functions.php
Last active September 14, 2017 12:28
Customize link attributes of WordPress
/**
* Add this in your functions.php
*/
add_filter('next_post_link', 'post_link_attributes');
add_filter('previous_post_link', 'post_link_attributes');
function post_link_attributes($output) {
$injection = 'class="styled-button"';
return str_replace('<a href=', '<a '.$injection.' href=', $output);
@d8vjork
d8vjork / pre_requests.js
Last active September 24, 2018 14:10
Postman pre-request script (get token - JWT)
pm.sendRequest({
url: pm.variables.get("auth_url"),
method: 'POST',
header: {
'Content-Type': 'application/json',
},
body: {
mode: 'raw',
raw: JSON.stringify({
'email': pm.variables.get("auth_email"),
@d8vjork
d8vjork / .bash_profile
Last active March 16, 2019 11:42
Mac OS/Linux Bash config (makes ur life easier)
export NVM_DIR=~/.nvm
export PATH="${PATH}:${HOME}/.composer/vendor/bin"
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
export PATH="$PATH:$HOME/flutter/bin"
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias gitclean='git branch --merged | egrep -v "(^\*|master|develop)" | xargs git branch -d && git remote prune origin'
alias dockerclean='docker stop $(docker ps -aq) && docker rm $(docker ps -a -q) -f'

Keybase proof

I hereby claim:

  • I am d8vjork on github.
  • I am dcruben (https://keybase.io/dcruben) on keybase.
  • I have a public key ASDZsHaNRua2KNfE0-1rleNdiNE_rQS4lWwF0RR51X7mAAo

To claim this, I am signing this object:

@d8vjork
d8vjork / POSTMAN.md
Last active March 1, 2019 13:18
Postman API auth

Reuse this as much as you want, this is supposed to be helpful testing APIs with Postman or using Postman in general without worry about the authentication tokens.

Modifications are welcome :)

@d8vjork
d8vjork / form.blade.php
Created March 1, 2019 14:14
One line validation include element, useful for inline validation messages (Laravel 5.4+)
@includeWhen($errors->has('email'), 'shared.validation', ['message' => $errors->first('email')])
@d8vjork
d8vjork / README.md
Last active March 10, 2019 11:18
My SublimeText 3 build (just PHP development)

Extensions

  • A File Icon
  • Agila Theme
  • ApacheConf
  • AutoFileName
  • BracketHighlighter
  • DocBlockr
  • EditorConfig
  • Emmet
@d8vjork
d8vjork / gist:4c713381a0648a92890d0882e76a0d65
Created March 20, 2019 22:22
MySQL Workbench dark theme temporary fix (Mojave)
defaults write com.oracle.workbench.MySQLWorkbench NSRequiresAquaSystemAppearance -bool yes
@d8vjork
d8vjork / Makefile
Last active February 3, 2020 00:37
...
help: ## Print the help page
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) |\
cut -d ':' -f 2,3 |\
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
up: ## Start Docker services
@docker-compose up -d