Restore –asroot for Yaourt/makepkg Arch (yaourt as root)
yaourt cannot be run as root by design for security. Create non-root build user: useradd builduser. Add to sudoers: echo ‘builduser ALL=(ALL) NOPASSWD: /usr/bin…
Guides
Step-by-step technical guides on Linux, WordPress, Git, Apache, and the rest of the open-source toolkit.
yaourt cannot be run as root by design for security. Create non-root build user: useradd builduser. Add to sudoers: echo ‘builduser ALL=(ALL) NOPASSWD: /usr/bin…
To empty trash on Mac OS from terminal: rm -rf ~/.Trash/* clears all files. Use Shift+Command+Delete to permanently delete files without moving to trash. For iC…
Enable mod_proxy and mod_proxy_http on Apache: a2enmod proxy and a2enmod proxy_http. Configure virtual host with ProxyPass and ProxyPassReverse directives to fo…
Create select dropdown navigation in WordPress by registering a menu location and using wp_nav_menu with fallback. Add JavaScript to detect select change: docum…
Store page views in post meta: add_post_meta(post_id, ‘views’, 1, true) or update_post_meta. Increment on page load: $views = get_post_meta($post->ID, ‘views’,…
Access Magento database directly via phpMyAdmin. Truncate tables: TRUNCATE TABLE customer_entity and TRUNCATE TABLE catalog_product_entity. Backup first. Clear…
Bash script for automatic git operations: watch ‘git pull && git add -A && git commit -m “Auto commit” && git push’. Or use cron: */5 * * * * cd /repo && git pu…
Black Arch Linux is a penetration testing distribution built on Arch Linux, providing security professionals and researchers with hundreds of tools. Its rolling…
Create Apache virtual host in /etc/apache2/sites-available/mysite.conf with ServerName and DocumentRoot. Enable with a2ensite. Configure git post-receive hook t…
Multilib conflicts occur when 32-bit and 64-bit library versions mismatch. Run: yum install yum-plugin-priorities to enable priority plugin. Edit /etc/yum/plugi…