sudo apt update
sudo apt install cifs-utilsIf the hard drive was connected after WSL was launched:
| // ==UserScript== | |
| // @name Force 1080p60 (Source) video quality on Twitch | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match *://*.twitch.tv/* | |
| // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== | |
| // @grant none | |
| // @author Antoine Delia |
itertools.accumulatestring.ascii_letterscomplex typemax functionlocals| # https://www.fosshub.com/MKVToolNix.html | |
| $ sudo apt install mkvtoolnix | |
| # Update the default audio track to the second one in all the files in the current directory | |
| $ for i in *; do if [[ $i == *.mkv ]]; then mkvpropedit "$i" --edit track:a1 --set flag-default=0 --edit track:a2 --set flag-default=1; fi; done | |
| # If you have a single subtitle, and you want it to be default, then do: | |
| $ for i in *; do if [[ $i == *.mkv ]]; then mkvpropedit "$i" --edit track:s1 --set flag-default=1; fi; done | |
| # Merge two files into one |
| from timeit import repeat | |
| setup = 'x = ("a", "b", "c", "d"); idx = 2' | |
| stmt_range = """ | |
| [x[i] for i in range(len(x)) if i != 2] | |
| """ | |
| stmt_slice = """ | |
| list(x[:2] + x[3:]) |
| pm.sendRequest({ | |
| url: "https://YOUR_COGNITO_DOMAIN_NAME_HERE.auth.eu-west-1.amazoncognito.com/oauth2/token", | |
| method: 'POST', | |
| header: { | |
| 'Content-Type': 'application/x-www-form-urlencoded' | |
| }, | |
| body: { | |
| mode: 'urlencoded', | |
| urlencoded: [ | |
| { |
| import logging | |
| import os | |
| LOG_LEVEL = os.getenv("LOG_LEVEL", "INFO") | |
| LOG_FILE_NAME = os.getenv("LOG_FILE_NAME", "log.txt") | |
| class Color: | |
| """An enum for the different colors available for printing | |
| """ |
Install pandas to local directory with pip: pip install -t . pandas
Remove pandas and numpy directories rm -r pandas numpy
Download the Linux distribution for pandas (choose the Python version that you want to use): https://pypi.org/project/pandas/#files
Download the Linux distribution for numpy (must be the same as the pandas one): https://pypi.org/project/numpy/#files