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
var wieConfig = { | |
units: { | |
Q531: { search: [ 'св(?:\\.|етлавых|етлавыя)\\s*(?:гадоў|гады?)' ] }, | |
Q4916: { search: [ '^€', '^EUR' ] }, | |
Q4917: { search: [ '^(?:-|US)?\\$', 'долараў(?:\\sЗША)?', 'дол.' ] }, | |
Q7727: { search: [ 'хвілін' ] }, | |
Q8146: { search: [ 'ен' ] }, | |
Q11573: { search: [ 'метр(?:ы|аш)' ] }, | |
Q25344: { search: [ '^CHF' ] }, | |
Q160680: { search: [ 'рублёў' ] }, |
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
# Copyright 2020 Sergey Leschina ([email protected]) | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
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
### General | |
sudo apt update | |
sudo apt upgrade | |
sudo apt-get install libatlas-base-dev vim | |
mycroft-pip install --upgrade pip | |
curl https://sh.rustup.rs -sSf | sh | |
### Audio hat | |
git clone https://github.com/waveshare/WM8960-Audio-HAT.git | |
cd WM8960-Audio-HAT |
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
# pip3 install python-geoip-python3 | |
# pip3 install python-geoip-geolite2 | |
from geoip import geolite2 | |
import csv | |
ips = {} | |
countries = {} | |
total = 0 |
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
# Configure RPi | |
sudo /sbin/iwconfig wlan0 power off | |
sudo sed -i 's/^exit 0/\/sbin\/iwconfig wlan0 power off\n\nexit 0/g' /etc/rc.local | |
# Install Docker | |
curl -fsSL https://get.docker.com -o get-docker.sh | |
sudo sh ./get-docker.sh | |
sudo usermod -aG docker $USER | |
newgrp docker |
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
echo "Hi!" |
OlderNewer