😀 😃 😄 😁 😆 😅 🤣 😂 🙂 🙃
The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
- Image from https://www.archlinux.org/
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
[tool.poetry] | |
name = "application" | |
version = "1.0" | |
description = "An application." | |
authors = ["Anton Friberg <[email protected]>"] | |
readme = "README.md" | |
[tool.poetry.scripts] | |
# Allow default command line entrypoint https://stackoverflow.com/a/55065934 | |
etl = "etl.__main__:cli" |
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
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
import re | |
regex = r"(year|month|day|hour)=(\d+)" | |
test_str = "s3://bucket/datalake/year=2019/month=12/day=02/hour=06" | |
matches = re.finditer(regex, test_str) | |
partition = {match.group(1): int(match.group(2)) for match in matches} | |
print(partition) | |
# {'year': 2019, 'month': 12, 'day': 2, 'hour': 6} |
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
"""Extract key value pairs in Python 3 using shlex and regex.""" | |
import re | |
import shlex | |
def regex_kv_pairs(text, item_sep=r"\s", value_sep="="): | |
""" | |
Parse key-value pairs from a shell-like text with regex. | |
This approach is ~ 25 times faster than the shlex approach. |
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
ui.context_menus.after_mouseup=true |
Install dependencies including libxcb-composite0-dev
which is sometimes not mentioned.
$ sudo apt-get install cmake cmake-data libcairo2-dev libxcb1-dev libxcb-ewmh-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-randr0-dev libxcb-util0-dev libxcb-xkb-dev pkg-config python-xcbgen xcb-proto libxcb-xrm-dev i3-wm libasound2-dev libmpdclient-dev libiw-dev libcurl4-openssl-dev libpulse-dev libxcb-composite0-dev
Clone the official [Polybar repository].
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
#!/bin/bash | |
APP1=https://google.com | |
APP1NAME=Google | |
APP2=https://bing.com | |
APP2NAME=Bing | |
# Set correct display to launch the windows over ssh connection | |
export DISPLAY=:0 | |
# Fixes autologin errors under gnome |
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
nmcli con add \ | |
type wifi \ | |
con-name "eduroam" | |
ifname "wlp4s0" \ # Your wifi interface | |
ssid "eduroam" \ | |
wifi-sec.key-mgmt "wpa-eap" \ | |
802-1x.identity "<YOUR-STUDENT-ID>@lu.se" \ # May also use another university identification | |
802-1x.password "<YOUR-PASSWORD" \ | |
802-1x.system-ca-certs "yes" \ | |
802-1x.domain-suffix-match "radius.lu.se" \ |