Skip to content

Instantly share code, notes, and snippets.

@eduardoarandah
eduardoarandah / script.sh
Created August 12, 2020 17:59
Compile special nvim branch and add vim-apm extension
# build requisites
sudo apt-get install -y ninja-build gettext libtool libtool-bin autoconf automake cmake g++ pkg-config unzip
# download
cd ~
git clone https://github.com/tjdevries/neovim.git -b tjdevries/keystrokes nvim2
cd nvim2
# Compile ( Install guide: https://github.com/neovim/neovim/wiki/Building-Neovim#building )
make CMAKE_BUILD_TYPE=Release
@eduardoarandah
eduardoarandah / instructions.md
Last active August 18, 2021 07:03
How to debug vim plugins or mappings

Create a file tmpvimrc with the following content

Add relevant plugins or mappings before or after plugins.

set nocompatible hidden laststatus=2

""""""""""""""""""""""""""""""""""
" PUT HERE YOUR MAPPINGS
""""""""""""""""""""""""""""""""""
@eduardoarandah
eduardoarandah / bootstrap4
Created October 7, 2020 22:12
Dictionary of all bootstrap 4 classes. You can use it with vim, coc, coc-dictionary
98px
accordion
active
alert
alert-danger
alert-dark
alert-dismissible
alert-heading
alert-info
alert-light
@eduardoarandah
eduardoarandah / .zshrc
Last active December 5, 2020 01:01
Linux shortcuts, navigate to favorite directories with fuzzy search (requires fzf)
#####################
# Directory shortcuts
#####################
#
# Navigate to favorite directories with fuzzy search
# Requires fzf
#
# `sc` mark current dir
# `s` go to mark
# `scr` remove mark
@eduardoarandah
eduardoarandah / .vimrc
Created December 12, 2020 03:06
Vim plugin share code pastebin
"""""""""""""""""""""""""""""""""""
" Share via paste.rs
"
" Visual select and :Share
"
" Add .extension to url to format code
" Example: .markdown
"""""""""""""""""""""""""""""""""
function! s:share() range
@eduardoarandah
eduardoarandah / script
Created January 7, 2021 19:40
Neovim build script
# Example build script
git clone https://github.com/neovim/neovim.git
cd neovim
make install
mv build/bin/nvim /usr/local/bin/nvim05
# put this in your .zshrc or .bashrc
alias v=/usr/local/bin/nvim05
alias nvim=/usr/local/bin/nvim05
@eduardoarandah
eduardoarandah / neovim-install.sh
Last active March 18, 2021 17:52
Neovim nightly Install script
# where's installed current version?
which nvim
# what's current version?
nvim -v
# make tmp folder
mkdir -p ~/tmp
cd ~/tmp
@eduardoarandah
eduardoarandah / Login.vue
Last active March 11, 2021 02:32
Laravel Sanctum with jwt tokens in backend and vue in frontend without sessions or cors problems
<template>
<div class="">
<input v-model="user" type="text" />
<input v-model="pass" type="password" />
<button @click="login">Login</button>
<div class="">test: <button @click="test">test</button></div>
<div class="">user: <button @click="whoami">whoami</button></div>
<div class=""><button @click="logout">Logout</button></div>
<div class="">
@eduardoarandah
eduardoarandah / tailwind
Created March 18, 2021 04:11
All tailwind.css classes
-bottom-0
-bottom-1
-bottom-10
-bottom-11
-bottom-12
-bottom-14
-bottom-16
-bottom-2
-bottom-20
-bottom-24
@eduardoarandah
eduardoarandah / UploadController.php
Last active November 3, 2023 17:11
File upload with dropzone and alpine js
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Models\User;
use Illuminate\Http\Request;
use Storage;
class UploadController extends Controller