Skip to content

Instantly share code, notes, and snippets.

View adonespitogo's full-sized avatar
💭
I may be slow to respond.

Adones Pitogo adonespitogo

💭
I may be slow to respond.
View GitHub Profile
@adonespitogo
adonespitogo / randomstring.js
Created June 12, 2018 22:02
Svelte Image Slider
function randomstring(length) {
length = length || 5
var text = "";
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (var i = 0; i < length; i++)
text += possible.charAt(Math.floor(Math.random() * possible.length));
return text;
}
@adonespitogo
adonespitogo / .vimrc
Created June 28, 2018 09:15
My VIM Config
" Nerdtree window size
let g:NERDTreeWinSize=60
" Align line-wise comment delimiters flush left instead of following code indentation
let g:NERDDefaultAlign = 'left'
" show hidden files
let NERDTreeShowHidden=1
" Enable indent guides plugin by default
let g:indent_guides_enable_on_vim_startup = 1
@adonespitogo
adonespitogo / custom.css
Created July 11, 2018 08:46
Custom Portal Css (sample)
body {
background-size: cover;
background-image: url("data:image/jpeg;base64,/9j/4QO8aHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49J++7vycgaWQ9J1c1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCc/Pgo8eDp4bXBtZXRhIHhtbG5zOng9J2Fkb2JlOm5zOm1ldGEvJyB4OnhtcHRrPSdJbWFnZTo6RXhpZlRvb2wgMTAuNDAnPgo8cmRmOlJERiB4bWxuczpyZGY9J2h0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMnPgoKIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PScnCiAgeG1sbnM6R2V0dHlJbWFnZXNHSUZUPSdodHRwOi8veG1wLmdldHR5aW1hZ2VzLmNvbS9naWZ0LzEuMC8nPgogIDxHZXR0eUltYWdlc0dJRlQ6QXNzZXRJRD41MDg3OTUxNzI8L0dldHR5SW1hZ2VzR0lGVDpBc3NldElEPgogPC9yZGY6RGVzY3JpcHRpb24+CgogPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9JycKICB4bWxuczpkYz0naHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8nPgogIDxkYzpjcmVhdG9yPgogICA8cmRmOlNlcT4KICAgIDxyZGY6bGk+dGhlbWFjeDwvcmRmOmxpPgogICA8L3JkZjpTZXE+CiAgPC9kYzpjcmVhdG9yPgogIDxkYzpkZXNjcmlwdGlvbj4KICAgPHJkZjpBbHQ+CiAgICA8cmRmOmxpIHhtbDpsYW5nPSd4LWRlZmF1bHQnPkFic3RyYWN0IGN1YmVzIHJldHJvIHN0eWxlZCBjb2xvcmZ1bCBiYWNrZ3JvdW5kPC9yZGY6bGk+CiAgIDwvcmRmOkFsdD4KICA8L
@adonespitogo
adonespitogo / 95-bootbackup.hook
Created August 2, 2023 00:00
BTRFS snapper tool - backup your /boot directory (arch linux)
# /etc/pacman.d/hooks/95-bootbackup.hook
[Trigger]
Operation = Upgrade
Operation = Install
Operation = Remove
Type = Path
Target = usr/lib/modules/*/vmlinuz
[Action]