Skip to content

Instantly share code, notes, and snippets.

Avatar
⌨️
Glued to the keyboard!

Ruben Robles d8vjork

⌨️
Glued to the keyboard!
View GitHub Profile
View make_admin_query_exception
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
View functions.php
/**
* 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)
View pre_requests.js
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"),
View keybase.md

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
View POSTMAN.md

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+)
View form.blade.php
@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)
View README.md

Extensions

  • A File Icon
  • Agila Theme
  • ApacheConf
  • AutoFileName
  • BracketHighlighter
  • DocBlockr
  • EditorConfig
  • Emmet
@d8vjork
d8vjork / .bash_profile
Last active March 16, 2019 11:42
Mac OS/Linux Bash config (makes ur life easier)
View .bash_profile
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'
@d8vjork
d8vjork / gist:4c713381a0648a92890d0882e76a0d65
Created March 20, 2019 22:22
MySQL Workbench dark theme temporary fix (Mojave)
View gist:4c713381a0648a92890d0882e76a0d65
defaults write com.oracle.workbench.MySQLWorkbench NSRequiresAquaSystemAppearance -bool yes
@d8vjork
d8vjork / .bash_aliases
Created July 16, 2019 13:20
My OhMyZsh OS X setup
View .bash_aliases
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'
alias dockerwash='docker rmi $(docker images -q)'
alias dockerstop='docker stop $(docker ps -a -q)'
alias dockerkill='docker kill $(docker ps -q)'
alias dockerprune='docker system prune --all --force --volumes'
alias dockerreset='docker stop $(docker container ls -a -q) && docker system prune -a -f --volumes'
alias gs='git status'
alias gl='git log'
alias gaa='git add .'