https://learning.oreilly.com/profile/
console.log(JSON.stringify(document.cookie.split(';').map(c => c.split('=')).map(i => [i[0].trim(), i[1].trim()]).reduce((r, i) => {r[i[0]] = i[1]; return r;}, {})))| import subprocess | |
| import sys | |
| import requests | |
| from pathlib import Path | |
| REPO = "paths_" | |
| WKHTMLTOPDF_PATH = r"C:\git\py_fetch_skillboost\wkhtmltox\bin\wkhtmltopdf.exe" | |
| def fetch_and_save_html(path_id, input_path_html): | |
| url = f"https://partner.cloudskillsboost.google/paths/{path_id}" |
| from yt_dlp import YoutubeDL | |
| import os | |
| import json | |
| import html | |
| import re | |
| import http.server | |
| import socketserver | |
| import threading | |
| # Directory to store videos |
| rsync -avz --exclude='.git/' --exclude='.venv/' --exclude='__pycache__' --exclude='.pytest_cache' ./kb.oreilly.git/ /mnt/c/Users/mario/Dropbox/kb.oreilly.git |
| find . -name "*.Identifier" -type f -print0 | xargs -0 rm |
| function check_venv() { | |
| # Check if we're entering a directory with a .venv | |
| if [ -d "./venv" ]; then | |
| echo "!!! deleting venv " | |
| rm -rf venv | |
| fi | |
| if [ -d "./.venv" ]; then | |
| if [ -n "$OLDPWD" ] && [ "$PWD" != "$OLDPWD" ]; then | |
| echo "folder changed..." | |
| python_path=$(which python 2>/dev/null) |
| #!/bin/bash | |
| # set -eox pipefail | |
| update_0to100() { | |
| cd ../0to100.git | |
| pwd | |
| git switch main | |
| git pull | |
| } |
| # - bash history id | |
| # - current pwd but only last folder | |
| # - colored git branch | |
| # v0.1 | |
| PS1='\! ${PWD#"${PWD%/*/*}/"}\n\e[1;34m\W$(__git_ps1 " (%s)")] \e[m' |
| while read line; do | |
| printf "%s %s\n" "git mv $line https§§§__$line" | |
| done <"$1" |
v 0.4
simple steps (I use) and share with you to absorb new concept using more active study
# Markdown Preview Plus https://chrome.google.com/webstore/detail/markdown-preview-plus/febilkbfcbhebfnokafefeacimjdckgl