Edit the file /etc/modprobe.d/default.conf
:
options snd_hda_intel index=1
PlayStore.enabled = false | |
abi.type = x86_64 | |
avd.ini.encoding = UTF-8 | |
hw.accelerometer = no | |
hw.audioInput = no | |
hw.battery = no | |
hw.cpu.arch = x86_64 | |
hw.dPad = no | |
hw.device.hash2 = MD5:984dbf66b1aaafcdb7e89573ffb74b46 | |
hw.device.manufacturer = Google |
exec --no-startup-id /usr/lib/kdeconnectd | |
exec --no-startup-id kdeconnect-indicator |
import csv | |
def iterador_avancado(): | |
# abre o arquivo | |
with open('vazao.csv', "r") as arquivo_csv: | |
# Lê o arquivo csv | |
for linha_arquivo in csv.reader(arquivo_csv): | |
# retorna linha iterada | |
yield linha_arquivo |
import csv | |
# inicializa o contador de linhas | |
numero_da_linha = 1 | |
# abre o arquivo | |
with open('vazao.csv') as arquivo_csv: | |
# Lê o arquivo csv | |
arquivo_lido = csv.reader(arquivo_csv, delimiter=',') | |
# itera o arquivo de forma simples | |
for linha_arquivo in arquivo_lido: |
google search: | |
intext:"buscar por" intitle:"index.of" (pdf|mobi|epub) -inurl:(php|html|aspx|shtml) |
1 - install nvidia packages and xorg-server: | |
sudo pacman -S nvidia nvidia-utils nvidia-settings xorg-server-devel opencl-nvidia | |
2 - insert noveau on blacklist: | |
/usr/lib/modprobe.d/nvidia.conf | |
blacklist nouveau | |
3 - run nvidia command to create xorg.conf: | |
nvidia-xconfig --prime | |
4 - Edit the grub config: /etc/default/grub and update grub | |
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet nvidia-drm.modeset=1 | |
5 - add new conf to .xinitrc: |
Edit the file /etc/modprobe.d/default.conf
:
options snd_hda_intel index=1
# For installation windows managers, set this variables | |
_JAVA_AWT_WM_NONREPARENTING=1 | |
export _JAVA_AWT_WM_NONREPARENTING | |
# Add permissions to usb port | |
sudo chmod a+rw /dev/ttyUSB0 |
For Python example, run the command below in a terminal:
docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli generate -i https://petstore.swagger.io/v2/swagger.yaml -g python -o /local/out/python
The generated code will be in the out
folder from the current path ${PWD}
.
So, if you need to change the folder permissions for the current user, run:
install_flutter () { | |
echo "installing flutter..." | |
sudo snap install flutter --classic | |
} | |
display_flutter_sdk_path () { | |
echo "displaying flutter sdk path..." | |
flutter sdk-path | |
} |