- Create bookmarklet
Add bookmark with this URL:
javascript: (() => { vid = document.querySelector('.vjs-tech'); console.log(vid.src); window.open(vid.src, '_blank'); })();- Open Zoom recording link
- Click on the bookmark
| sudo apt install fzf && echo "source /usr/share/doc/fzf/examples/key-bindings.bash" >> ~/.bashrc |
| for remote in $(git remote); do | |
| oldurl=$(git remote get-url $remote); | |
| newurl=$(echo $oldurl | sed 's?^https://?git@?' | sed 's?/?:?').git; | |
| echo $remote: $oldurl -\> $newurl; | |
| git remote set-url $remote $newurl; | |
| done |
| #!/usr/bin/env python3 | |
| import re | |
| import sys | |
| import subprocess | |
| def get_commit_hash(repo_url, version_tag): | |
| command = ["git", "ls-remote", "--tags", "--refs", repo_url] | |
| result = subprocess.run(command, capture_output=True, text=True) |
| git filter-branch --env-filter ' | |
| OLD_EMAIL="[email protected]" | |
| NEW_EMAIL="[email protected]" | |
| if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ] | |
| then | |
| export GIT_COMMITTER_EMAIL="$NEW_EMAIL" | |
| fi | |
| if [ "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" ] | |
| then |
| blueprint: | |
| name: IKEA Rodret Dimmer Light Control (ZHA/Z2M) | |
| description: "## Control Light with IKEA RODRET Dimmer remote (v1.0) | |
| Only for use with [ZHA](https://www.home-assistant.io/integrations/zha/) | |
| or Zigbee2MQTT (cf [MQTT](https://www.home-assistant.io/integrations/mqtt) | |
| + [Z2M addon](https://www.zigbee2mqtt.io/guide/installation/03_ha_addon.html)). | |
| #include <functional> | |
| #include <iostream> | |
| #include <map> | |
| #include <memory> | |
| #include <string> | |
| struct Base { | |
| virtual std::string blub() = 0; | |
| }; |
| #!/usr/bin/env python3 | |
| import requests | |
| import sys | |
| from sortedcontainers import SortedDict, SortedList | |
| class GitlabApi: | |
| API_LINK = 'api/v4' |
| #pragma once | |
| #include <chrono> | |
| #include <string> | |
| #include <boost/log/core.hpp> | |
| #include <boost/log/trivial.hpp> | |
| namespace blg = boost::log::trivial; |
| <pre style="background-color: #0f0800;color: #bbbbbb;"> | |
| ...insert copied message here... | |
| </pre> |