Skip to content

Instantly share code, notes, and snippets.

View dwongdev's full-sized avatar
🎯
Focusing

Wongy dwongdev

🎯
Focusing
  • Australia
  • 01:00 (UTC +08:00)
View GitHub Profile
@dwongdev
dwongdev / msoffice_in_linux.md
Created February 15, 2025 07:43 — 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.

@dwongdev
dwongdev / spotihosts
Created July 17, 2021 14:06
The hosts file entries to block Spotify audio ad servers.
127.0.0.1 media-match.com
127.0.0.1 adclick.g.doublecklick.net
127.0.0.1 www.googleadservices.com
127.0.0.1 open.spotify.com
127.0.0.1 pagead2.googlesyndication.com
127.0.0.1 desktop.spotify.com
127.0.0.1 googleads.g.doubleclick.net
127.0.0.1 pubads.g.doubleclick.net
127.0.0.1 audio2.spotify.com
127.0.0.1 www.omaze.com
@dwongdev
dwongdev / safer_farming.md
Created September 9, 2020 15:07
Some minimum safety measures to take when farming new or unaudited pools

DISCLAIMER: I am not a security expert, this is nowhere near a substitute for a real professional audit, even following all of these steps you are at extreme risk whenever touching one of these pools. Do not put more than you can lose into any ETH smart contract, let alone an unaudited/untested one. And obviously, needless to say, none of this is financial advice. SHRIMP is just one of these pools that I am using as an example; this is not an audit nor a recommendation to go farm it.

In this guide, I will discuss some steps you can take to protect yourself from falling victim to farming pool scams. Note that this guide is about the safety of your deposits, not about the safety of principal in new tokens or in new token liquidity pools.

The first important thing you need to do is find the contract you will be interacting with. Sometimes this is easier than others. Often the best technique is to find the token you will be farming on etherscan, then look at the top holders. For most farms, the farming contrac

@dwongdev
dwongdev / README.md
Created November 14, 2019 16:02 — forked from smiley/README.md
How to make an automatic "stream's live" notification for your Discord server

Making an automatic Twitch -> Discord notification (using IFTTT)

So you went live and you want everyone to know. Here's how you do it:

Part 1 - Register on IFTTT

Go to https://ifttt.com/ and create an account (if you don't already have one)

Part 2 - Make a Discord Webhook

  • Find the Discord channel in which you would like to send Tweets.
  • In the settings for that channel, find the Webhooks option and create a new webhook. Note: This URL should be kept private. It allows anyone to write messages to that specific channel using that specific URL. Keep it safe!