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
| hello |
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" \ |
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
| #!/usr/bin/env python3 | |
| # | |
| # by Siddharth Dushantha (sdushantha) | |
| # | |
| # My very simple version of youtube-dl. | |
| # | |
| # Credits: https://git.io/JTPr9 | |
| # | |
| import re |
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 requests | |
| import sys | |
| # Can be 'computer' or 'tablet' | |
| deviceType = "computer" | |
| serialNumber = input("Serial: ") | |
| print() | |
| data = { | |
| 'cat': 'computer', |
Source code for graph used in EE
import matplotlib.pyplot as plt
from collections import Counter, OrderedDict
import requests
r = requests.get("https://sherlock-holm.es/stories/plain-text/cano.txt")
text = r.text
chars_to_remove = []
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
| lyrics_directory = ~/.config/ncmpcpp/lyrics | |
| mpd_music_dir = ~/Music | |
| visualizer_type = "spectrum" | |
| visualizer_look = ●┃ | |
| visualizer_color = white | |
| song_list_format = "{{%a %t}|{%f}}{$R%l}" | |
| current_item_prefix = $(green)$r | |
| current_item_inactive_column_prefix = $(black)$r |
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
| class text: | |
| purple = "\033[95m" | |
| cyan = "\033[96m" | |
| darkcyan = "\033[36m" | |
| blue = "\033[94m" | |
| green = "\033[92m" | |
| yellow = "\033[93m" | |
| red = "\033[91m" | |
| magenta = "\033[35m" | |
| white = "\033[37m" |
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
| $ python3 setup.py sdist | |
| $ python3 -m twine upload dist/* |
Install the required packages
brew install ncmpcpp mpd mpcMake the.mpd directory in your home directory
mkdir ~/.mpd