Skip to content

Instantly share code, notes, and snippets.

View bash string utils ficheros quitar extension
Bash Hackers WikiBash Hackers Wiki
Search
You are hereSyntaxParameter expansion
TraceParameter expansion
syntax:pe
Edit this page
Backlinks
View uuid-in-js
//cómo crear un UUID en JS. URL: https://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript
function generateGuid() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
const r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8);
return v.toString(16);
});
}
@devnowcommit
devnowcommit / .muttrc
Created Dec 5, 2019 — forked from villeheilala/.muttrc
Minimal configuration for Neomutt/Mutt and Gmail/G Suite
View .muttrc
# Minimal configuration for Neomutt/Mutt and Gmail/G Suite
# Decrypts passwords quietly
# see: https://wiki.archlinux.org/index.php/Mutt#Passwords_management
source "gpg -dq $HOME/.my-pwds.gpg |"
# Username and password for your Gmail/G Suite account
set imap_user = "john.snow@winterfell.ext"
# Password assigned from decrypted file
set imap_pass = $my_pass
View timidityToWav.sh
#!/bin/bash
for i in *
do
timidity "${i}" -Ow
done
View reading_vimrc_url_126.txt
https://raw.githubusercontent.com/alwei/dotfiles/3760650625663f3b08f24bc75762ec843ca7e112/.vimrc
https://raw.githubusercontent.com/anekos/my-config/0afcd78455743a4d3fad31674136428052dc6ebe/.vimrc
https://raw.githubusercontent.com/sigwyg/dotfiles/8c70c4032ebad90a8d92b76b1c5d732f28559e40/.vimrc
https://raw.githubusercontent.com/basyura/vimfiles/ee086f25b8c58b8ea6bf025d26ebc11ae50e6ca1/rc/vimrc
https://raw.githubusercontent.com/osyo-manga/vimrc/9ef0ca9757abcdaa11c76024aa551f0b473624bf/vimrcs/default/vimrc
https://raw.githubusercontent.com/rhysd/dotfiles/8228ebaeab0e022ee7161d0eb9fc633876b0be41/vimrc
https://raw.githubusercontent.com/ebc-2in2crc/vimrc/f1ed88bf0d3668ebf8d702def40625d435f545cd/_vimrc
https://raw.githubusercontent.com/rbtnn/reading-vimrc/a92dae61200f50bd771f3a30c4f5fa06738c9aac/.vimrc
https://raw.githubusercontent.com/ujihisa/config/8c513ac93429e27ce27e6020a7d48e728b809169/_vimrc
https://gist.githubusercontent.com/thinca/3675965/raw/5739da5abedef838ed49b8328d9b29e3dd78bed4/bundle.vim
View .vimrc
syntax on " Color syntax on
colorscheme desert " Scheme of color syntax
set tabstop=2 " The width of a tab is set to 2
" Still it is a \t; it is just that
" vim will interpret it to be having
" a width of 2
set shiftwidth=2 " Indents will have a width of 2
set softtabstop=2 " Sets the number of columns for a tab
set expandtab " Expand tabs to spaces
set nowrap " No wrapping
View sick_of_losing_soulmates.rb
# Run this in Sonic Pi: https://sonic-pi.net/
# Sick of Losing Soulmates by Dodie: https://youtu.be/mHUIoikgKT0
# Inspired by Deerful's cover: https://youtu.be/sfaEBsloiQk
use_synth :pluck
use_bpm 75
define :tab do |t|
last = nil
t.split('').map.with_index do |n, i|
View undo permanent in vim
set undofile
mkdir ~/.vim/undodir
set undodir=~/.vim/undodir
You can’t perform that action at this time.