Skip to content

Instantly share code, notes, and snippets.

View emanuellopes's full-sized avatar
🤘
Focusing

Emanuel Lopes emanuellopes

🤘
Focusing
View GitHub Profile
@emanuellopes
emanuellopes / WebUI.md
Created January 27, 2025 21:07
Proxmox Fix WebUI

Restart WebUI or Login Failed

  1. check status
systemctl status pve-cluster
systemctl status pveproxy
systemctl status pve-proxy
  1. Delete old backups if needed
@emanuellopes
emanuellopes / gmk87-manual.md
Last active April 28, 2025 19:12 — forked from Joao-Peterson/gmk67-manual.md
GMK67 manual (English)

Changing colors

Description Hotkey
Changing Bubble Color fn+PageUp aand fn+pageDown
@emanuellopes
emanuellopes / orderposts in search by sticky posts
Last active September 28, 2023 14:31
Orderby posts by typeof content
<?php
class Search {
public function __construct() {
add_filter('posts_orderby', array($this, 'postsOrderBy'), 10, 2);
$result = new PostQuery($args, Post::class);
remove_filter('posts_orderby', array($this, 'postsOrderBy'));
}
public function postsOrderBy(string $orderBy, WP_Query $query): string
@emanuellopes
emanuellopes / 1. Proxmox GPU Passthrough.md
Last active May 7, 2025 09:39
Proxmox passthrough VM and LXC
@emanuellopes
emanuellopes / cloudflare-ddns-update.sh
Created October 29, 2021 23:43 — forked from Tras2/cloudflare-ddns-update.sh
A bash script to update a Cloudflare DNS A record with the external IP of the source machine
#!/bin/bash
# A bash script to update a Cloudflare DNS A record with the external IP of the source machine
# Used to provide DDNS service for my home
# Needs the DNS record pre-creating on Cloudflare
# Proxy - uncomment and provide details if using a proxy
#export https_proxy=http://<proxyuser>:<proxypassword>@<proxyip>:<proxyport>
# Cloudflare zone is the zone which holds the record
@emanuellopes
emanuellopes / yoast_seo_breadcrumb_add_woo_shop.php
Created April 19, 2021 10:39 — forked from amboutwe/yoast_seo_breadcrumb_add_woo_shop.php
Multiple examples of how to customize the Yoast SEO breadcrumbs
<?php
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/
/*
* Add shop link to the Yoast SEO breadcrumbs for a WooCommerce shop page.
* Credit: https://wordpress.stackexchange.com/users/8495/rjb
* Last Tested: Apr 20 2017 using Yoast SEO 4.6 on WordPress 4.7.3
*/
add_filter( 'wpseo_breadcrumb_links', 'wpseo_breadcrumb_add_woo_shop_link' );
@emanuellopes
emanuellopes / idea-reset-evaluation.sh
Created August 25, 2018 15:54 — forked from lzhoucs/idea-reset-evaluation.sh
reset intellij idea 14 evaluation
#!/bin/bash
echo "removing evaluation key"
rm ~/.IntelliJIdea15/config/eval/idea15.evaluation.key
# for mac go to: /Users/username/Library/Preferences/IntelliJIdea2016.3/eval/idea163.evaluation.key
echo "resetting evalsprt in options.xml"
sed -i '/evlsprt/d' ~/.IntelliJIdea15/config/options/options.xml
# for mac go to: /Users/lzhoucs/Library/Preferences/IntelliJIdea2016.3/options/options.xml
{
"workbench.iconTheme": "vscode-great-icons",
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"editor.formatOnPaste": true,
"editor.matchBrackets": true,
"editor.quickSuggestions": {
"other": true,
"comments": false,
"strings": false