#Session | PySpark's tutorial | Duration | Location |
---|---|---|---|
1 | Spark Core > RDD API | 3h | In-person |
2 | Spark SQL > DataFame API | 3h | In-person |
3 | Predict the next movies seen (1) | 3h | In-person |
4 | Predict the next movies seen (2) | 3h | Virtually |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
First check your version of CentOS:
$ cat /etc/redhat-release
CentOS Linux release 7.8.2003 (Core)
Now download a rpm package for Git from official mirror of CentOS in your home folder:
This file contains 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 bash | |
# | |
# Do an operation + or - in base 2, 8, 10 or 16. | |
base=${1:-10} | |
n1="$2" | |
op=${3:--} | |
n2="$4" | |
if echo "${base}" | grep " " && ! echo "2 8 10 16" | grep "${base}"; then |
This file contains 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 bash | |
# | |
# Convert markdown wiki pages of GitHub to pdf | |
# 1. Clone wiki project and then go to folder | |
# 2. Convert to pdf | |
pandoc --extract-media=. -f markdown_github -o pages.pdf *.md | |
xdg-open pages.pdf |
This file contains 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 bash | |
sudo apt -y install wireshark | |
sudo dpkg-reconfigure wireshark-common | |
# run wireshark without sudo | |
# add current user in wireshark group | |
sudo usermod -a -G wireshark $USER | |
gnome-session-quit --logout --no-prompt |
This file contains 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 bash | |
cd $(dirname "$0") | |
file_b64="$1" | |
image_file="${2:-image.png}" | |
cat "${file_b64}" | base64 -d > "${image_file}" |
This file contains 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 bash | |
cd $(dirname "$0") | |
img_file="$1" | |
# data:image/png;base64,<content base 64> | |
# data:image/svg+xml;base64,<content base 64> | |
base64 -w 0 "${img_file}" | xclip -selection c |
This file contains 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 | |
# | |
# Compute french taxes in euro. | |
# | |
# usage: | |
# python3 impot.py <yearly_gross_salary> | |
TAXE_SLICES = [(9710, 0.14), (26818, 0.30), (71898, 0.41), (152260, 0.45)] | |
def get_taxe_amounts_per_slice(): |
This file contains 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 | |
import subprocess | |
r = 1 | |
screens = [l.split() for l in | |
subprocess.check_output(["xrandr"]).decode("utf-8").strip().splitlines() | |
if " connected" in l] |
NewerOlder