Install gcc
apt-add-repository ppa:ubuntu-toolchain-r/test
apt update
apt install gcc-13 g++-13
ll /usr/bin/gcc-13
ll /usr/bin/g++-13
update-alternatives --display gcc
ll /etc/alternatives/g*
update-alternatives --remove-all gcc
Install gcc
apt-add-repository ppa:ubuntu-toolchain-r/test
apt update
apt install gcc-13 g++-13
ll /usr/bin/gcc-13
ll /usr/bin/g++-13
update-alternatives --display gcc
ll /etc/alternatives/g*
update-alternatives --remove-all gcc
''' | |
If the tasks are inequally sized, it may happen with starmap and similar schedulers | |
which schedule tasks ahead of time, that some workers are lucky and finish early and some unlucky | |
and finish much later having the effect of the task batch using all CPU cores at first, | |
but then lucky workers finishing and core sitting idle. | |
This task manager serves as an example on how to have workers fetch tasks from a Queue. | |
Joblib, Pool.starmap or something else might be better, but maybe this is useful. | |
''' |
# Copyright 1999-2021 Gentoo Authors | |
# Distributed under the terms of the GNU General Public License v2 | |
EAPI=7 | |
JAVA_ANT_ENCODING=UTF-8 | |
ESVN_REPO_URI="https://josm.openstreetmap.de/svn/trunk" | |
inherit eutils java-pkg-2 java-ant-2 subversion desktop |
''' | |
Provides occupancy number http://localhost:8080/kravi_hora | |
''' | |
import logging | |
import re | |
import requests | |
from bs4 import BeautifulSoup | |
from aiohttp import web |
Line-up
Recordings (added progressively)
social engineering
,media manipulation
import datetime as dt | |
from time import sleep as s | |
curr_date = dt.datetime.now().replace(month=11,day=27) | |
class Candles(list): | |
def __repr__(self): | |
items = ['\N{CANDLE}' if i else '_' for i in self] | |
return '[{items}]'.format(items=', '.join(items)) |
cat myfile | python3 -c "expr='YOUR_REGEXP'; import sys; import re; [print(match) for match in re.findall(expr, ''.join(sys.stdin.readlines()))]" |
By solving this task, you will prove to us and yourself, that you are familiar with the basics of python, in which case we believe that you will enjoy the weekend workshop and it won't be too hard or too boring for you.
AL - airline
AP - airport
MS = metasearch = partner - web where people search for airline tickets (e.g. skyscanner, kayak, momondo), they usually don’t have content, they just calls APIs of its content providers (ALs, us, …)
src, dst - source and destination cities
Route - (src, dst) pair