Verb

Summary

April 4, 2022 · 1 min · Jaaved Khan

Younus Siddiqui

Summary Worked at BI and Security Contact myounus@kfupm.edu.sa

April 4, 2022 · 1 min · Jaaved Khan

elisp

Summary Emacs Lisp Learning converting list to string (setq vetted-human-kfupm-emails '("hali" "mamohsin") ) (defvar vetted-human-kfupm-emails '("hali" "mamohsin") ) (format "%s" vetted-human-kfupm-emails) ;; to print (message "%s" vetted-human-kfupm-emails) ;; to print (setq query (concat "from:" (mapconcat 'identity vetted-human-kfupm-emails " OR from:"))) (setq vetted-query (concat "(maildir:/kfupm/Inbox) AND " "from:" (mapconcat 'identity vetted-human-kfupm-emails " OR from:"))) (message "%s" query) (message "%s" vetted-query) interactive to make function visible be called from emac ui (defun jak/add-to-kfupm-vetted-emails-list (username) (interactive "sUSERNAME: ") ;; s -> string n-> number ;; USERNAME will be displayed in buffer (add-to-list 'vetted-human-kfupm-emails username) ) append (defcustom jak/boss-emails nil "" :type '(repeat string) ) (defcustom jak/people-i-know-at-kfupm nil "" :type '(repeat string) ) (defcustom jak/ictc-colleagues-emails nil "" :type '(repeat string) ) (defcustom jak/kfupm-colleagues-emails nil "" :type '(repeat string) ) (setq jak/people-i-know-at-kfupm (append jak/boss-emails jak/ictc-colleagues-emails jak/kfupm-colleagues-emails)) (message "%s" jak/people-i-know-at-kfupm) (defun jak/set-people-i-know-at-kfupm() (setq jak/people-i-know-at-kfupm (append jak/boss-emails jak/ictc-colleagues-emails jak/kfupm-colleagues-emails)) (message "%s" jak/people-i-know-at-kfupm) ) (jak/set-people-i-know-at-kfupm) saving variable pro grammatically to custom-file (defun jak/add-to-boss-emails (username) (interactive "sBOSS_USERNAME: ") (add-to-list 'jak/boss-emails username) (customize-save-variable 'jak/boss-emails jak/boss-emails) ;; ***** setq and ;; from here:https://stackoverflow....

April 4, 2022 · 2 min · Jaaved Khan

Find or Locate files in Linux OS

Difference between find and locate command? locate uses previously built database, if the database is not built, locate will not work. sudo updatedb # to build the database find / -name data.txt # vs locate data.txt Todo cron job to build this database regularly

April 4, 2022 · 1 min · Jaaved Khan

IAM

Summary IAM

April 4, 2022 · 1 min · Jaaved Khan

My Keyboard remap

For emacs and evil mod ~/.xmodmap !replace capslock with right control key remove Lock = Caps_Lock remove Control = Control_R keysym Caps_Lock = Control_R add Lock = Caps_Lock add Control = Control_R !replace left control with escape, to exit out of insert mode fast !keysym Control_L = Escape keysym Control_L control = Escape Control_L Reset xmodmap mappings setxkbmap -option

April 4, 2022 · 1 min · Jaaved Khan

Pronoun

Summary A pronoun is a part of a speech which functions as a replacement for a noun. Some examples of pronouns are: I, it, he, she, mine, his, hers, we, they, theirs, and ours.

April 4, 2022 · 1 min · Jaaved Khan

Crafter CMS

April 4, 2022 · 0 min · Jaaved Khan

algorithm

Summary In mathematics and computer science, an algorithm (ˈælɡərɪðəm (audio speaker iconlisten)) is a finite sequence of well-defined instructions, typically used to solve a class of specific problems or to perform a computation.[1] Algorithms are used as specifications for performing calculations and data processing. By making use of artificial intelligence, algorithms can perform automated deductions (referred to as automated reasoning) and use mathematical and logical tests to divert the code through various routes (referred to as automated decision-making)....

April 4, 2022 · 1 min · Jaaved Khan

Curl vs Python Requests SSL verification

curl vs Having only the intermediate CA in the trust store is not sufficient for validation of the certificate, at least not with the current versions of Python. This feature would require the use of the OpenSSL flag X509_V_FLAG_PARTIAL_CHAIN for verification, which is neither currently exposed by Python nor set by default. Contrary to this curl sets this flag by default in newer versions and thus works.

April 4, 2022 · 1 min · Jaaved Khan