- Create the Script File Open your terminal and create a new script file:
nano ~/create_tag.sh- Add the following content to the file:
- Save and close the file by pressing
Ctrl + O, then Enter, and thenCtrl + X.
| { | |
| "name": "Error notify — Slack", | |
| "nodes": [ | |
| { | |
| "parameters": {}, | |
| "id": "error-trigger", | |
| "name": "Error Trigger", | |
| "type": "n8n-nodes-base.errorTrigger", | |
| "typeVersion": 1, | |
| "position": [0, 0], |
| { | |
| "name": "Zub YouTube — Stage A (topic → script → approve → assemble)", | |
| "nodes": [ | |
| { | |
| "parameters": { | |
| "httpMethod": "POST", | |
| "path": "zub-youtube-topic", | |
| "responseMode": "responseNode", | |
| "options": {} | |
| }, |
A Git pre-commit hook that prevents accidental commits on protected branches (master, main, production).
✅ 🔴 Warning when committing on a protected branch.
✅ 🟢 Option to proceed (yes) or discard uncommitted changes (discard).
✅ 🟡 Default is no (commit aborted unless explicitly confirmed).
✅ 📜 Logs commit attempts in ~/.git_commit_log.txt for auditing.
✅ 🎨 Color-coded output for better readability.
| // Add to your theme's functions.php file. De-queues Select2 styles & scripts. Useful to keep Boostrap form control formatting | |
| /** | |
| * Remove Woocommerce Select2 - Pre WC 3.2.1-ish | |
| */ | |
| function woo_dequeue_select2() { | |
| if ( class_exists( 'woocommerce' ) ) { | |
| wp_dequeue_style( 'select2' ); | |
| wp_deregister_style( 'select2' ); |
git statusgit remotegit fetchgit checkout branch_name (Example: git checkout master or git checkout zubaer)git branch -u remote_name/branch_name (Example: git branch -u production/master or git branch -u origin/master). It is important to provide -u. Otherwise, it will try to create a new Branch.git branch branch_name (Example: git branch zubaer).git loggit add .git commit -m 'Commit text'git push remote_name branch_name (Example: git push production master or git push origin master)| .flex { | |
| display: flex; | |
| display: -webkit-flex; | |
| display: -moz-flex; | |
| } | |
| .flex-row { | |
| flex-direction: row; | |
| } |
| DELETE FROM wp_usermeta | |
| WHERE NOT EXISTS ( | |
| SELECT * FROM wp_users | |
| WHERE wp_usermeta.user_id = wp_users.ID | |
| ) |
I felt the importance of directly editing a file from a DigitalOcean droplet on my Ubuntu Server. I research on the internet and made a way to do it.