Ozellikleri (Github Sayfasından Alıntı)
Basit curl/tarayıcı/editor arayuzu. 56 programlama dili, bircok DBMSes ve 1000'den fazla onemli UNIX/Linux komutu. StackOverflow ile aynı duzeyde, dunyanın en iyi topluluk odaklı hile sayfası depolarına erişim sağlar. Her yerde erişilebilir, indirmeniz gerekmez. (Cevrimdışı kullanım icin sayfaları indirebilirsiniz.) Ultra Hızlı, 100ms icinde cevap verir. Zorunlu olmasa da cok avantajlı ve yararlı olan cht.sh adlı kullanışlı bir komut satırı istemcisine sahiptir. Bir tarayıcı acmadan ve zihinsel bağlamınızı değiştirmeden doğrudan kod editorlerinden kullanılabilir. Hicbir tuşa dokunmadan ve ses cıkarmadan tamamen gorunmez bir şekilde kullanılabileceği ozel bir gizli modu destekler. Kullanım
Bash:Panoya kopyala
curl cheat.sh
Yapmanız gereken tek şey merak ettiğiniz komutu veya dili girmek. Mesela;
Kod:Panoya kopyala
$ curl cheat.sh/vim cheat:vim # File management :e reload file :q quit :q! quit without saving changes :w write file :w write new file :x write file and exit # Movement k h l basic motion j w next start of word W next start of whitespace-delimited word e next end of word E next end of whitespace-delimited word b previous start of word B previous start of whitespace-delimited word 0 start of line $ end of line gg go to first line in file G go to end of file gk move down one displayed line gj move up one displayed line # Insertion # To exit from insert mode use Esc or Ctrl-C # Enter insertion mode and: a append after the cursor A append at the end of the line i insert before the cursor I insert at the beginning of the line o create a new line under the cursor O create a new line above the cursor R enter insert mode but replace instead of inserting chars :r insert from file # Editing u undo yy yank (copy) a line y yank text that moves over p paste after cursor P paste before cursor or x delete a character dd delete a line d delete text that moves over # Search and replace with the `:substitute` (aka `:s`) command :s/foo/bar/ replace the first match of 'foo' with 'bar' on the current line only :s/foo/bar/g replace all matches (`g` flag) of 'foo' with 'bar' on the current line only :%s/foo/bar/g replace all matches of 'foo' with 'bar' in the entire file (`:%s`) :%s/foo/bar/gc ask to manually confirm (`c` flag) each replacement # Preceding a motion or edition with a number repeats it 'n' times # Examples: 50k moves 50 lines up 2dw deletes 2 words 5yy copies 5 lines 42G go to line 42 # Multiple windows :e filename - edit another file :split filename - split window and load another file ctrl-w up arrow - move cursor up a window ctrl-w ctrl-w - move cursor to another window (cycle) ctrl-w_ - maximize current window ctrl-w= - make all equal size 10 ctrl-w+ - increase window size by 10 lines :vsplit file - vertical split :sview file - same as split, but readonly :hide - close current window

Eğer bir dilin icerik listesini merak ediyorsanız; curl cheat.sh/dil/:list
Yukarıdaki listede de goreceğiniz gibi her dilin bir :learn adlı sayfası var. Bu sayfalar dilin temellerini oğretmek icin hazırlanmış.
Ornek olarak curl cheat.sh/python/:learn yazarak bakabilirsiniz.
Her zaman kayıtlı cheat sheet'leri kullanmak zorunda değilsiniz. İstediğiniz query'yi aratıp StackOverFlow uzerinden doğrulanmış bir cevaba ulaşabilirsiniz. Birden fazla kelime aratacaksanız arasına + koyarak yazın.
Ornek: curl cheat.sh/python/list+append
Editor EklentisiVim, Emacs, Sublime gibi editorlerde eklentileri var ama ben en yaygın olarak VS Code icin olanı gostereceğim.
vscode-snippet aratıyoruz eklenti sekmesinde ve goruntudekini indiriyoruz.
Ctrl+shift+p yapıp Snippet:find'ı seciyoruz ve aramak istediğimizi aratıyoruz.
Offline olarak kullanmak icin lokale kurmak Bash:Panoya kopyala
curl https://cht.sh/:cht.sh > ~/bin/cht.sh chmod +x ~/bin/cht.sh
Bash:Panoya kopyala
cht.sh --standalone-install
Eğer guncellemek isterseniz cheat.sh update-all yazmanız yeterli.
Cht.sh (offline) kullanımBunda "curl cheat.sh" yerine cht.sh yazmanız yeterli. Query'leri de aşağıdaki ornekteki gibi yazın.
Kod:Panoya kopyala
cht.sh go reverse a list cht.sh python random list elements cht.sh js parse json
Otomatik (tab) tamamlama
Bash icin;
Bash:Panoya kopyala
curl https://cheat.sh/:bash_completion > ~/.bash.d/cht.sh . ~/.bash.d/cht.sh # ve bu dosyadaki bash tamamlama script'ini ~/.bash.d/cht.sh bashrc dosyana ekle ~/.bashrc
Bir ozelliği de sizin araştırmanız icin bıraktım. Bu ozellik cok sinsi bir şey olduğundan hoşunuza gidebilir diye duşunuyorum, bu nedenle kaynaklarda verdiğim bağlantıdan kendiniz nasıl kullanacağınıza bakmayı unutmayın.
Kaynaklar
GitHub - chubin/cheat.sh: the only cheat sheet you need the only cheat sheet you need. Contribute to chubin/cheat.sh development by creating an account on GitHub.