Skip to content

Instantly share code, notes, and snippets.

View bash string utils ficheros quitar extension
Bash Hackers WikiBash Hackers Wiki
You are hereSyntaxParameter expansion
TraceParameter expansion
Edit this page
View uuid-in-js
//cómo crear un UUID en JS. URL:
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 / .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:
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
for i in *
timidity "${i}" -Ow
View reading_vimrc_url_126.txt
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:
# Sick of Losing Soulmates by Dodie:
# Inspired by Deerful's cover:
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.