APM

Elastic APM(Application Performance Monitoring)

April 4, 2022 · 1 min · Jaaved Khan

CSRF protection (in Django)

Summary The CSRF middleware and template tag provides easy-to-use protection against CSRF Forgeries. ref https://docs.djangoproject.com/en/3.2/ref/csrf/ Protection fc position ease box interval due front 2.5 0 0 2021-09-12T07:15:09Z The first defense against CSRF attacks is to ensure that GET requests (and other ‘safe’ methods, as defined by RFC 7231#section-4.2.1) are side effect free. Requests via ‘unsafe’ methods, such as POST, PUT, and DELETE, can then be protected by following the steps below....

April 4, 2022 · 7 min · Jaaved Khan

Difference between redirect URI and callback URI or URL?

Ref https://stackoverflow.com/questions/42129154/whats-the-difference-between-a-redirect-url-and-a-callback-uri-in-openid-connec

April 4, 2022 · 1 min · Jaaved Khan

Virtual Machine

Summary Virtual machine uses hypervisor to share real resources.

April 4, 2022 · 1 min · Jaaved Khan

xmodmap

Summary xmodmap is a utility for modifying keymaps(keyboard keys) and pointer button mappings in XOrg . details Configurations Change Caps lock to contorl ref ~/.xmodmap !capslock map to control keycode 66 = Control_L clear Lock add Control = Control_L keycode 117 = Caps_Lock add Lock = Caps_Lock ! to set "setxkbmap -option" ! swap Caps_Lock and Control_R ! remove Lock = Caps_Lock remove Control = Control_R keysym Control_R = Caps_Lock keysym Caps_Lock = Control_R add Lock = Caps_Lock add Control = Control_R then to apply this settings...

April 4, 2022 · 1 min · Jaaved Khan

Service Mesh

Summary Takes care of connectivity between microservices

April 4, 2022 · 1 min · Jaaved Khan

Dropbox

Installation on Debian follow: https://vitux.com/how-to-install-dropbox-on-debian-10/ Change default directory By default the Dropbox directory will be at “\~/Dropbox” To change default directory /mnt/data dropbox alias dropb="HOME=/mnt/data dropbox" Exclude directories to sync ref #dropbox or dropb dropbox help exclude dropbox exclude [list] dropbox exclude add [DIRECTORY] [DIRECTORY] ... dropbox exclude remove [DIRECTORY] [DIRECTORY] ...

April 4, 2022 · 1 min · Jaaved Khan

CORS

related: django-cors-headers : the middleware configured will add CORS headers to the response and CORS_ORIGIN_WHITELIST decide what origins can access resources Details fc position ease box interval due front 2.5 0 0 2021-09-12T07:59:52Z Cross-Origin Resource Sharing (CORS) is a mechanism that uses additional HTTP headers to tell browsers to give a web application running at one origin, access to selected resources from a different origin....

April 4, 2022 · 1 min · Jaaved Khan

xinit

The xinit program allows a user to manually start an X display server. The `startx` script is a front-end for xinit. Related Display Manager Vs Display Server Vs Desktop Environment vs Window Manager in Linux Difference between .xinitrc vs .xsession vs .xsessionrc ref ~/.xinitrc ~/.xinitrc is executed by xinit, which is usually invoked via startx. This program is executed after logging in: first you log in on a text console, then you start the GUI with startx....

April 4, 2022 · 2 min · Jaaved Khan

Ali Al Jamid

Summary Studied and worked in US before joining ICTC Solution Delivery. Soft spoken guy, humble and decent. Contact Email: ali.aljamid@kfupm.edu.saHassan Ali Muhammad Din

April 4, 2022 · 1 min · Jaaved Khan