Skip to content

Instantly share code, notes, and snippets.

View ArmanTaheriGhaleTaki's full-sized avatar

Arman Taheri ArmanTaheriGhaleTaki

View GitHub Profile
@AmirAli-AZ
AmirAli-AZ / my-vim-notes.txt
Last active March 1, 2023 01:10
my vim notes
# vim modes
defualt mode: normal mode
i -> insert mode (inserting the text)
v -> visual mode (selecting the text)
esc -> exit the mode (back to normal mode)
# vim commands
:q -> quit
@ArmanTaheriGhaleTaki
ArmanTaheriGhaleTaki / ffmpegautomate.cpp
Last active June 5, 2023 09:07
automation of the process of the naming the output file
#include <iostream>
#include <sys/stat.h>
#include <fstream>
void compress( char** input);
unsigned long long int fileSize(std::string fileNameWithextensionSTR);
void diffsize(std::string fileNameWithextensionSTR1,std::string fileNameWithextensionSTR2);
inline bool IsMP4FileExists (const std::string& name);
using namespace std;
int *argcGlobal=0;
int main(int argc, char **argv) {
@mnghn07
mnghn07 / gitCommitEmoji.md
Created August 10, 2020 10:32
Git Commit Message Emoji
@seanh
seanh / netrw.md
Last active November 10, 2024 02:18
Netrw Cheatsheet (Vim's Built-in Directory Browser)

Netrw Cheatsheet (Vim's File Browser)

See also:

  • vinegar.vim, which makes - open netrw in the directory of the current file, with the cursor on the current file (and pressing - again goes up a directory). Vinegar also hides a bunch of junk that's normally at the top of netrw windows, changes the default order of files, and hides files that match wildignore.

    With vinegar, . in netrw opens Vim's command line with the path to the file under the cursor at the end of the command. ! does the same but also prepends ! at the start of the command. y. copies the absolute path of the file under the cursor. ~ goes to your home dir. Ctrl+6 goes back to the file (buffer) that you had open before you opened netrw.

To launch netrw:

@tanyuan
tanyuan / smart-caps-lock.md
Last active November 15, 2024 08:21
Smart Caps Lock: Remap Caps Lock to Control AND Escape

Smart Caps Lock: Remap to Control AND Escape (Linux, Mac, Windows)

Caps Lock 變成智慧的 Control 以及 Escape

  • 單獨輕按一下就是 Escape
  • 若按下時同時按著其他鍵,就會是 Control

這應該是 Vim 和 Emacs 的最佳解了!(Emacs? Bash 的快捷鍵就是 Emacs 系列的)

  • Send Escape if you tap Caps Lock alone.
@tuxfight3r
tuxfight3r / 01.bash_shortcuts_v2.md
Last active November 18, 2024 14:16
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line