Skip to content

Instantly share code, notes, and snippets.

View Kol9yN's full-sized avatar
🌴
On vacation

Kol9yN

🌴
On vacation
View GitHub Profile
@antonio-petricca
antonio-petricca / msoffice_in_linux.md
Created April 24, 2025 16:30 — forked from eylenburg/msoffice_in_linux.md
Installing Microsoft Office in Linux

Step by step guide: How to install Microsoft Office in any Linux distribution

There are multiple options how to install MS Office on Linux.

VM-based - Integrate Windows apps running in a Windows virtual machine as native-looking in Linux

  1. Winapps, based on KVM, QEMU, Docker/Podman and FreeRDP. Still actively maintained (getting Github commits). Decribed below
  2. Cassowary, based on KVM, QEMU, libvirt/virt-manager, and FreeRDP. Has a helpful GUI and apparently can auto-suspend the VM when no Windows app is in use. Last release in Feb 2022 and seems to be abandoned.

The VM-based options means can run Office 2021 or Office 365 including all apps, but while the Windows apps themselves run flawlessly (as they're running on real Windows) there's various freerdp-related bugs you may encounter.

@chrisliebaer
chrisliebaer / WoW_Cell_Addon_Invert_HealthBars.lua
Last active January 17, 2026 11:37
This is a snipped for the World of Warcraft Addon "Cell". You can add it to Cell if you want your health bars to be inverted. For a full VuhDo like appearance, use "dark" as default health bar color and the non dark variant for the ""Health loss color" under the appearance tab.
-- This snipped will reverse the fill direction of the health bars like it is possible with VuhDo.
-- It is quite invasive and might change in newer versions.
-- There can also be issues with shield and absorb bars since I didn't know how the test them.
-- NOTE: Snipped installs a hook on layout function. In order to disable it, you need to disable the snippset and reload the UI.
-- whether to use full color for dead units or loss color
local ATTENUATE_DEAD_BARS = true
-- whether to use the reverse fill direction
local REVERSE_FILL = true
@jfeilbach
jfeilbach / ubuntu_22.04_motd.md
Last active March 17, 2026 16:24
Make Ubuntu 22.04 less annoying. Remove ESM Ubuntu Advantage

Ubuntu 22.04 Annoyances

Here are a few collected ways I like to customize Ubuntu 22.04 servers. I used to love Ubuntu, but I hate auto updates and snaps. They also put ads and other usless ads diguised as "news" in MOTD. ESM FUD is spread throughout the OS including simple apt functions. You do not need ESM and thus Ubuntu 22.04 has become super annoying. unattended-upgrade is an automatic installation of security (and other) upgrades without user intervention. Consider the ramifications of disabling this service.

Disable unattended upgrades

The Unattended Upgrades feature is enabled by default and it runs at system boot without the user's permission. The configuration is stored in /etc/apt/apt.conf.d/20auto-upgrades

Disable: sudo dpkg-reconfigure unattended-upgrades then a TUI will come up, select "No"

This will not permantently disable the function. After an update it will be enabled. In the file /etc/apt/apt.conf.d/20auto-upgrades change these values from 1 to 0. Even doing this it will

@notthebee
notthebee / ci.yaml
Last active December 3, 2025 16:25
GitHub Actions Website Deployment Template
name: CI
run-name: Zola blog deployment
on:
push:
jobs:
build:
runs-on: ubuntu-latest
environment: deploy
steps:
@backerman
backerman / profile-snippet-sshargcomplete.ps1
Last active November 5, 2025 14:34
Enable tab completion for ssh hostnames in PowerShell
using namespace System.Management.Automation
Register-ArgumentCompleter -CommandName ssh,scp,sftp -Native -ScriptBlock {
param($wordToComplete, $commandAst, $cursorPosition)
$knownHosts = Get-Content ${Env:HOMEPATH}\.ssh\known_hosts `
| ForEach-Object { ([string]$_).Split(' ')[0] } `
| ForEach-Object { $_.Split(',') } `
| Sort-Object -Unique
# For now just assume it's a hostname.
@fdaciuk
fdaciuk / gnome-terminal-profiles.md
Last active August 17, 2025 16:45
Export / Import Gnome Terminal Profiles

Export Gnome Terminal Profile

List profiles

dconf dump /org/gnome/terminal/legacy/profiles:/

Determine the terminal profile string for the profile you will need. This is the terminal profile that I will export:

@AlexandrKolesnikov
AlexandrKolesnikov / MacOS VMWare Workstation resolution fix.txt
Created August 30, 2018 18:23
MacOS VMWare Workstation resolution fix
If you have an issue, when you can't change resolution of the MacOS installed in the VMWare even after VMWare tools has been installed.
In my case it was not applyable resolution change. I had 1024x768 by default and when I tried to change it to 1600x900, etc. and got
resolution jump and back to 1024x768
You may set any supported by your device custom resoultion.
Just run following command in MacOS Terminal and you will be happy :)
/Library/Application\ Support/VMware\ Tools/vmware-resolutionSet 1920 1080
NOTES:
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@fevangelou
fevangelou / my.cnf
Last active July 1, 2025 02:51
Optimized my.cnf configuration for MySQL/MariaDB (on cPanel/WHM servers)
# === Optimized my.cnf configuration for MySQL/MariaDB (on cPanel/WHM servers) ===
#
# by Fotis Evangelou, developer of Engintron (engintron.com)
#
# ~ Updated September 2024 ~
#
#
# The settings provided below are a starting point for a 8-16 GB RAM server with 4-8 CPU cores.
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage.
#
@wpscholar
wpscholar / vagrant-cheat-sheet.md
Last active March 10, 2026 16:39
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)