Skip to content

Instantly share code, notes, and snippets.

@hashcode86
hashcode86 / full_join.sql
Created May 15, 2025 07:54 — forked from ebta/full_join.sql
How to do FULL [OUTER] JOIN in MySQL (MariaDB)
-- First method
SELECT * FROM t1
LEFT JOIN t2 ON t1.id = t2.id
UNION
SELECT * FROM t1
RIGHT JOIN t2 ON t1.id = t2.id
-- Second Method
-- The query above works for special cases where a FULL OUTER JOIN operation would not produce any duplicate rows.
-- The query above depends on the UNION set operator to remove duplicate rows introduced by the query pattern.
@hashcode86
hashcode86 / tinc.MD
Last active February 19, 2025 10:06 — forked from zingmars/tinc.MD
tinc VPN setup instructions on Windows and Linux

Tinc setup instructions for Ubuntu and Windows. Based on 1 2.

Start here.

  1. sudo apt-get install -y build-essential libncurses5-dev libreadline6-dev libzlcore-dev zlib1g-dev liblzo2-dev libssl-dev
  2. Download and install tinc
    2.1. Download the latest tinc 1.1 source package ( current: wget https://www.tinc-vpn.org/packages/tinc-1.1pre16.tar.gz -O tinc.tar.gz)
    • tar -xf tinc.tar.gz --one-top-level --strip-components=1
    • cd tinc
    • ./configure
@hashcode86
hashcode86 / p2p-vpns.md
Created February 18, 2025 04:18 — forked from sxiii/p2p-vpns.md
P2P VPN List
@hashcode86
hashcode86 / processor-boost-mode.md
Created October 17, 2024 03:26 — forked from ehsan18t/processor-boost-mode.md
Enable Processor Boost Mode Control in Advanced Power Settings

Enable Processor Boost Mode Control in Windows

Disable Turbo Boost to Reduce Power Consumption and Heat

Why Do We Need It?

The thing is if your laptop cpu is getting really hot and you are trying to undervolt it then chances are 99% that there are no method to do so. I have also tried to do undervolt my Ryzen 7 5800H but no luck. Because the bios doesn't allow that much control over the cpu. I don't know the specific reasons for the manufactures to restrict such a great thing. But with this you can disable the Turbo Boost. While this might sounds stupid but trust me you won't see a massive difference in performance after turned it off.

When You should Do It?

@hashcode86
hashcode86 / compile-and-install-freeswitch-1.10.x-on-ubuntu.md
Created August 22, 2024 15:43 — forked from cyrenity/compile-and-install-freeswitch-1.10.x-on-ubuntu.md
Install FreeSWITCH 1.10.x on Ubuntu 18.04 | 20.04 | 22.04 LTS

Installing FreeSWITCH 1.10.X on Ubuntu 18.04 | 20.04 | 22.04 LTS

Introduction

FreeSWITCH is a software defined telecom stack that runs on any commodity hardware. FreeSWITCH can handle voice, video and text communication and support all popullar VoIP protocols. FreeSWITCH is flexible and modular, and can be used in any way you can imagine

This guide demonstrates how to get it install FreeSWITCH and get it up and running on a Ubuntu 20.04 LTS machine

Prerequisites

To follow along with this guide, you need one Ubuntu 20.04 LTS server which has prerequisite packages installed and configured. In order to install required packages issue following command

@hashcode86
hashcode86 / sup-commands.md
Created October 9, 2023 06:49 — forked from ruhnet/sup-commands.md
All Kazoo 4.2.x sup-commands

Create rabbitmq operator

RABBITMQ_OPERATOR=https://gist.githubusercontent.com/hashcode86/4d6c4c32bd59b0843f22eaec8a019f6d/raw/4d3142af45d88ed3ccc9060ae843917f57df44ea/cluster-operator.yaml

curl ${RABBITMQ_OPERATOR} | kubectl apply -f -
echo 'wait 10s after creating cluster-operator...'; sleep 10;

Create rabbitmq 3 nodes cluster

@hashcode86
hashcode86 / preparations.md
Last active April 13, 2023 02:46 — forked from wholroyd/preparations.md
Getting Minikube on WSL2 Ubuntu working

Windows Preparation

  1. Ensure hypervisor functionality is enabled in BIOS.

    • I know it sounds stupid, but if you already have it enabled, disable it, restart the machine, and enable it again.
    • Otherwise you will hit microsoft/WSL#5363
  2. Launch a PowerShell prompt in Administrator mode [Win+X > Windows PowerShell (Admin)]

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart