# Written by The Suhu (2021).
# Tested on CentOS 7 and CentOS 8
Previously I've written about How to Build and Install Latest cURL Version on Ubuntu. In this article in this article explain how to build and install latest cURL version on CentOS.
# Written by The Suhu (2021).
# Tested on CentOS 7 and CentOS 8
Previously I've written about How to Build and Install Latest cURL Version on Ubuntu. In this article in this article explain how to build and install latest cURL version on CentOS.
{ | |
"background" : "#282828", | |
"black" : "#282828", | |
"blue" : "#458588", | |
"brightBlack" : "#928374", | |
"brightBlue" : "#83A598", | |
"brightCyan" : "#8EC07C", | |
"brightGreen" : "#B8BB26", | |
"brightPurple" : "#D3869B", | |
"brightRed" : "#FB4934", |
Running Linux on the Clevo P750/1DM2-G DTR
Hello, brethren.
This post will detail how to successfully run Linux on the aforementioned notebook, with common traps and exceptions explained.
An overview:
This is an Intel Skylake-based laptop (upgradeable to a Kabylake-grade Desktop processor) with a desktop-class Pascal GPU, the GTX 1070. Switchable graphics (Optimus) is absent, which eliminates a significant burden of running Linux on this machine.
This is a script for checking if any of the passwords you have stored in LastPass have been exposed through previous data breaches.
To use the script you need to have Python 3 installed and you need a CSV export of your LastPass vault. The export can be generated from the LastPass CLI with:
lpass export > lastpass.csv
or can be extracted with the browser plugin by going to the LastPass icon → More Options → Advanced → Export → LastPass CSV File (note that I did have problems getting this to work).
# In this example I make difference for 3 urls, this can be messy if you have an URL that is like /posts/whatever/contacts because there is 2 places that will return True (2nd and 3rd li) | |
# So here is the better option for handling this: | |
{% with request.resolver_match.url_name as url_name %} | |
<ul id="menu"> | |
<li class="{% if url_name == 'home' %}active{% endif %}">Home</li> | |
<li class="{% if url_name == 'blog' %}active{% endif %}">Posts</li> | |
<li class="{% if url_name == 'contact' %}active{% endif %}">Contact</li> | |
</ul> |
from django.contrib.auth.models import User | |
from django.views.generic import UpdateView | |
from .forms import UserProfileForm | |
class UserProfileUpdateView(UpdateView): | |
model = User | |
def get_initial(self): | |
initial = super(UserProfileUpdateView, self).get_initial() |