This document describes how to install nvidia drivers & CUDA in one go on a fresh debian install.
Work in progress
- Start with a fresh Debian install.
# Usage: | |
# 1) Ctr+S downloads page to ~/Desktop/books.html | |
# 2) Run script | |
# 3) Find your books in /tmp/humble_books | |
# 4) Read them | |
# 5) Profit | |
cat ~/Desktop/books.html | | |
grep "https://dl.humble.com" | | |
sed -n -E 's/.data-web\=\"(https://dl.humble.com/([.]+).([a-z]+)?["]+)./\1 \2 \3/p' | | |
sed 's/&/&/g' > /tmp/humble_books_list && cat /tmp/humble_books_list | |
""" | |
map-reduce for text-file inputs, parallel version | |
""" | |
import os | |
import re | |
import sys | |
import json | |
import hashlib | |
from datetime import datetime | |
from multiprocessing import cpu_count, Queue, Process |
# INCORRECT! DON'T DO THIS! | |
>>> x = "www.alliancefrançaise.nu" # This is the problematic line. Forgot to make this a Unicode string. | |
>>> print x | |
www.alliancefrançaise.nu | |
>>> x.encode('punycode') | |
'www.Alliancefranaise.nu-h1a31e' | |
>>> x.encode('punycode').decode('punycode') | |
u'www.Alliancefran\xc3\xa7aise.nu' | |
>>> print x.encode('punycode').decode('punycode') | |
www.alliancefrançaise.nu |
#! perl | |
# Store this file as /usr/lib/urxvt/perl/xkr-clipboard | |
# | |
# To enable, add to ~/.Xresources: | |
# | |
# URxvt.perl-ext-common: default,xkr-clipboard | |
# URxvt.iso14755: false | |
# URxvt.keysym.Shift-Control-C: perl:clipboard:copy | |
# URxvt.keysym.Control-Insert: perl:clipboard:copy |
# Use Pandas & SQLAlchemy. | |
# https://stackoverflow.com/questions/23103962/how-to-write-dataframe-to-postgres-table | |
# Note this will create a new table; see the 'faster option' at the above link for a method using 'copy' to an existing table. | |
# However, 'copy' cannot do an upsert; that requires inserting to a temp table, then upserting form temp table to destination table. | |
# This will lack PKs and FKs and indexes, of course, so if used naively you may see data duplication. | |
# Also the df.to_sql command can do an append (but not upsert), using the if_exists param: | |
# https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_sql.html |
#!/bin/bash | |
# README You probablyl don't need this script anymore. Please read the comments below to catch up. | |
## Description | |
# Lenovo Carbon X1 Gen 7 - Audio and microphone fix - kernel 5.3+ required. | |
# The script has only been tested for Arch and OpenSuse, | |
# Original thread: https://forums.lenovo.com/t5/Ubuntu/Guide-X1-Carbon-7th-Generation-Ubuntu-compatability/td-p/4489823 | |
# Prereq: Install Linux 5.3 or newer |
#cloud-config | |
# Set the hostname for this machine (takes precedence over hostname assigned by DHCP lease). | |
hostname: myhost | |
# Authorize SSH keys for the `rancher` sudoer user | |
ssh_authorized_keys: | |
- ssh-rsa AAA...ZZZ example1@rancher | |
Andy Thomason is a Senior Programmer at Genomics PLC. He has been witing graphics systems, games and compilers since the '70s and specialises in code performance.
By default the Cinnamon/Gnome/Mate desktop environment loads its own display
configuration from the file ~/.config/monitors.xml
instead of using the
settings defined in /etc/X11/xorg.conf
. This can be a little bit annoying if
you are using the nvidia-settings
program to configure your displays (which
will use xorg.conf
), since anything entered there will be overridden by
monitors.xml
every reboot.
By doing the following changes we will disable the "Display Manager" in