This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Visual Studio Code frequently crashes linux. Using NVIDIA GPU | |
1. Open command pallete (Ctrl + Shift + P) | |
2. Enter "Preferences: Configure Runtime Arguments" | |
3. Add config: "disable-hardware-acceleration": true | |
4. Restart VS Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http { | |
... | |
# redirect map in http block - remove fbclid argument from the end | |
map $request_uri $redirect_fbclid { | |
"~^(.*?)([?&]fbclid=[a-zA-Z0-9_-]+)$" $1; | |
} | |
... |
The lm-sensors package is the standard software used to monitor things like CPU temperature on Linux. All major distributions include this package. Basic configuration, using the sensors-detect utility, is straightforward. For many systems, running sensors-detect and accepting the defaults is enough to get full functionality.
The basic configuration for lm-sensors will provde temperatures for the CPU and ASUS Prime B250M-C motherboard, but not fan speeds.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sample configuration for dnsmasq to function as a proxyDHCP server, | |
# enabling LTSP clients to boot when an external, unmodifiable DHCP | |
# server is present. | |
# The main dnsmasq configuration is in /etc/dnsmasq.conf; | |
# the contents of this script are added to the main configuration. | |
# You may modify the file to suit your needs. | |
# Don't function as a DNS server: | |
port=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Use this utility to access CSDN blog. | |
#Author: jiangong li | |
#Email: [email protected] | |
import base64 | |
from http import cookiejar | |
import urllib.request, urllib.parse, urllib.error | |
#url for accessing | |
csdnLoginUrl = r"http://passport.csdn.net/ajax/accounthandler.ashx?" |
NewerOlder