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
@CodingKoopa
CodingKoopa / apt.md
Last active July 13, 2025 11:58
APT Repositories Explained

Intro

To install and update packages on Debian, Ubuntu, or most derived distributions, you use APT, the Advanced packaging tool, to download the packages and their dependencies, which uses dpkg to install them.

These notes go into the downloading part, as I think it's easy to get overwhelmed by how the repositories work. I will eventually turn this into a page on my website.

Repository

A repository is where the packages come from. It provides binary packages for an arbitrary selection of architectures as well as source packages. Repositories are APT's data source. [https://wiki.debian.org/DebianRepository]

@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 May 4, 2025 12:34
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 June 23, 2025 04:44
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 July 18, 2025 00:12
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line