Compositor

A compositor is a software which interacts with the window system as well as graphics* in linux to produce: Transparency in windows. Transparency in windows Transition animations Drop shadows around windows which give them a 3D effect V sync: Waits for the display to update before updating the display

May 7, 2022 · 1 min · Jaaved Khan

tmux

Summary Tmux is a terminal multiplexer an alternative to GNU Screen . In other words, it means that you can start a Tmux session and then open multiple windows inside that session. Each window occupies the entire screen and can be split into rectangular panes. Cheat sheet prefix command default: ctrl+b custom: ctrl+w all the commands below are with prefix detach session: d attach: tmux attach -t(-d) name switch between sessions: () list sessions: ls close pane: x new session: :new -s name copy mode: <prefix> [ then use vim mode command move around and copy(y) and paste(p)

May 1, 2022 · 1 min · Jaaved Khan

2022-05-01

Important thought Following a time discipline is very important: I have been neglecting this for a very long time now. Fixing a duration of time for types of activity will definitely help. From my observation, spending more time on a task than needed has two affects. First, after a specified duration productivity and duration are not related and most of the time it is just complete waste of time. Second, right brain will not be exercised: the ability to correctly evaluate “why” you are doing the task will be affected....

May 1, 2022 · 1 min · Jaaved Khan

apt-key

Summary apt-key is used to manage the list of keys(public) used by apt to authenticate packages. Packages which have been authenticated using these keys(public) will be considered trusted. Note that if usage of apt-key is desired the additional installation of the GNU Privacy Guard suite (packaged in gnupg) is required. ref Details JAK apt-key is the keyring. adding GnuPG key to the ring using command add-apt-key - Command line tool to add GPG keys to the APT keyring # or curl -fsSL https://download....

April 30, 2022 · 1 min · Jaaved Khan

keyring

Summary (or keychain) Why do you use a keyring (also called keychain) in the real life? You use it to keep one or more keys grouped together so that they are easy to find and carry. It’s the same concept in Linux. The keyring feature allows your system to group various passwords together and keep it one place. ref

April 30, 2022 · 1 min · Jaaved Khan

GnuPG

Summary The GNU Privacy Guard (GnuPG) GnuPG is a complete and free implementation of the OpenPGP standard as defined by RFC4880 (also known as PGP). gnupg, Debian package GNU privacy guard - a free PGP replacement GnuPG is GNU’s tool for secure communication and data storage. It can be used to encrypt data and to create digital signatures. It includes an advanced key management facility and is compliant with the proposed OpenPGP Internet standard as described in RFC4880....

April 30, 2022 · 1 min · Jaaved Khan

xargs

Summary wiki (eXteneded ARGumentS) Some commands such as grep and awk can take input either as command-line arguments or from the standard input(using pipe). However, others such as cp and echo can only take input as arguments, which is why xargs is necessary. # applies the cat command to standard input arguments passed thourgh pipe from previous commands find -name "*.ts" | grep "users*" | xargs cat

April 25, 2022 · 1 min · Jaaved Khan

Emacs

CS YAS C-, : yas company C-. : display availalbe yas snippets to choose TAB : field expand may be C-c C-y : Yas expand Code folding Heuristic: shift -> show All F12: toggle S-F12: hs-show-all M-F12: hide all Level and block F9: hide level S-F9: show block M-F9: hide block Engine mode C-x / : prefix command(pc) pc g: google pc s: stackoverflow pc e: evernote pc g: github Org mode C-c | : table highlight , seperated data and C-c | to convert it into table General M-i: helm swoop M -[: previous buffer M- ]: next buffer Xmonad M-x e: start emacs M-x d: emacs with dired M-x m: emacs email Modes HTML editing in web-mode default query replace will not work `replace-match-maybe-edit: Match data clobbered by buffer modification hooks` use vr/replace in this mode....

April 16, 2022 · 1 min · Jaaved Khan

Swagger

Try out option with Bearer token authorization used the following swagger config with packages “swagger-autogen”: “^2.16.0”, “swagger-ui-express”: “^4.2.0” did this in API project of the tadafuq const options = { openapi: '3.0.0' }; const swaggerAutogen = require('swagger-autogen')(options) const outputFile = './swagger.json' // const endpointsFiles = [ // "./routes/auth.js", // "./routes/categories.js", // "./routes/comments.js", // "./routes/docs.js", // "./routes/feelings.js", // "./routes/histories.js", // "./routes/replies.js", // "./routes/search.js", // "./routes/subscriptions.js", // "./routes/users.js", // "./routes/videos.js", // ] const endpointsFiles = ["....

April 16, 2022 · 2 min · Jaaved Khan

Open Source

Summary Open source is source code that is made freely available for possible modification and redistribution.

April 16, 2022 · 1 min · Jaaved Khan