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;}, {})))
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/febilkbfcbhebfnokafefeacimjdckglPS C:\Users\mario\Dropbox\0to100gcloud> git add . ; git commit -m "wip" ; git push |