This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set noshowmode | |
| set noruler | |
| autocmd ColorScheme * highlight link ModeNFGC StatuslineNC | |
| autocmd ColorScheme * highlight link ModeNFGCS LineNr | |
| autocmd ColorScheme * highlight link ModeIFGC DiffAdd | |
| autocmd ColorScheme * highlight link ModeIFGCS DiffAdded | |
| autocmd ColorScheme * highlight link ModeRFGC Search | |
| autocmd ColorScheme * highlight link ModeRFGCS Repeat | |
| autocmd ColorScheme * highlight link ModeVFGC CursorIM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| awk 'BEGIN{ | |
| s="/\\/\\/\\/\\/\\"; s=s s s s s s s s; | |
| for (colnum = 0; colnum<77; colnum++) { | |
| r = 255-(colnum*255/76); | |
| g = (colnum*510/76); | |
| b = (colnum*255/76); | |
| if (g>255) g = 510-g; | |
| printf "\033[48;2;%d;%d;%dm", r,g,b; |
You may want a linter plugin to lint your code in Vim but you probably don't need it. At least try the built-in way before jumping on the plugin bandwagon.
autocmd FileType <filetype> setlocal makeprg=<external command>
This autocommand tells Vim to use <external command> when invoking :make % in a <filetype> buffer. You can add as many similar lines as needed for other languages.
- Site Reliability Engineering: How Google Runs Production Systems
- Operating Systems
- Operating Systems: Three Easy Pieces
- How Linux Works, 2nd Edition
- Continuous Delivery: Reliable Software Releases through Build, Test, and Deployment Automation
- [Systems Performance: Enterprise and the Cloud](https://www.amazon.com/gp/product/0133390098?ie=UTF8&tag=deirdrestraug-20&linkCode=as2&camp=1789&creative=390957&creativ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def mimimi(frase): | |
| """ | |
| Função que mimimiza frases | |
| >>> mimimi('Por que você não tá estudando pra sua prova de amanhã?') | |
| 'Pir qii vici nii ti istidindi pri sii privi di iminhi?' | |
| """ | |
| n = ('ã', 'a', 'e', 'o', 'u', 'á', 'é', 'ê', 'í', 'ó') | |
| for letra in n: | |
| frase = frase.replace(letra, 'i') | |
| return frase |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on local and remote machine: | |
| go get github.com/pocke/lemonade (if you have Go installed, if not download lemonade binary from github) | |
| make sure $GOPATH/bin is in your path on both machines | |
| -- or move $GOPATH/bin/lemonade to a place already in your path like /usr/local/bin | |
| on your local machine add a script like this: | |
| cat ~/bin/remote |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " Statusline & Tabline/Buffer line | |
| " Dynamically getting the fg/bg colors from the current colorscheme, returns hex which is enough for me to use in Neovim | |
| " Needs to figure out how to return cterm values too | |
| let fgcolor=synIDattr(synIDtrans(hlID("Normal")), "fg", "gui") | |
| let bgcolor=synIDattr(synIDtrans(hlID("Normal")), "bg", "gui") | |
| " Tabline/Buffer line | |
| set showtabline=2 | |
| set tabline="%1T" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| sudo rm -fr /opt/franz | |
| sudo rm -fr /usr/share/applications/franz.desktop | |
| # create installation dir | |
| sudo mkdir -p /opt/franz | |
| #install franz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| import random | |
| arq = open ("pt.txt", 'r').read() | |
| (type(arq)) | |
| #print (len(arq)) | |
| def tokens(arq): | |
| return re.findall ('[a-z]+', arq.lower()) |
NewerOlder