Posts

Digital Marketing

Free privileged access management software. Get PrivX now.

PrivX® Free   Zero Trust for Zero Bucks!   Gain lean and fast access management for your critical assets – without spending a dime. Quickly deploy our agentless, credentialess solution that integrates with your existing identity management tools, and start benefitting from secure authorized access to your hybrid and multi-cloud servers and applications. Own and use – for free – PrivX with a smaller number of servers. Replace your in-house jump hosts, and combine your AWS, GCP and Azure Admin access management into one true multi-cloud solution. As you scale, PrivX will grow with you. https://info.ssh.com/privx-free-access-management-software

Remove the passphrase for the SSH key

$ ssh-keygen -p This will then prompt you to enter the keyfile location, the old passphrase, and the new passphrase (which can be left blank to have no passphrase).

kill all processes run by a user on Linux

kill all processes run by a user on Linux $ pgrep -u i88ca | sudo xargs kill -9 Or $ sudo pkill -u i88ca  Or $ sudo killall -u i88ca 

MHT vs HTML

MHT files are very similar to HTML files. The difference is that an HTML file only holds the text content of the page. Any images seen in an HTML file are really just references to online or local images, which are then loaded when the HTML file is loaded. MHT files are different in that they actually hold the image files (and others like audio files) in one file so that even if the online or local images are removed, the MHT file can still be used to view the page and its other files. This is why MHT files are so useful for archiving pages: the files are stored offline and in one easy-to-access file regardless of whether or not they still exist online. Any relative links that were pointing to external files are remapped and pointed to the ones contained within the MHT file. You don't have to do this manually since it's done for you in the MHT creation process. The MHTML format is not a standard, so while one web browser might be able to save and view the file without any probl...

General workflow to solve a recursion problem

Define the recursion function; Write down the recurrence relation and base case; Use memoization to eliminate the duplicate calculation problem, if it exists. Whenever possible, implement the function as tail recursion , to optimize the space complexity.

Delete the nth line from a text file

For example, to remove the 106th line: sed -i '106d' .ssh/known_hosts

Microsoft Graph endpoints

Microsoft Graph endpoints available for both personal and work or school accounts, such as: Data Endpoint User profile https : //graph.microsoft.com/v1.0/me Outlook mail https : //graph.microsoft.com/v1.0/me/messages Outlook contacts https : //graph.microsoft.com/v1.0/me/contacts Outlook calendars https : //graph.microsoft.com/v1.0/me/events OneDrive https : //graph.microsoft.com/v1.0/me/drive Note:  Some Microsoft Graph endpoints, such as groups and tasks, are not applicable to personal accounts.