Skip to content

Instantly share code, notes, and snippets.

View ToniMaunde's full-sized avatar
📋
Full Stack Developer, currently specializing in TypeScript and Go

Milton David ToniMaunde

📋
Full Stack Developer, currently specializing in TypeScript and Go
View GitHub Profile
@ToniMaunde
ToniMaunde / compiling_flags.txt
Created April 7, 2026 15:43
C99 compiling flags
-std=c99 -fsanitize=address -W -Wall -Werror -Werror=missing-declaration -Werror=redundant-decls -Wextra -Wpedantic -pedantic-errors -Wconversion -Wdeprecated -Wextra-semi
@ToniMaunde
ToniMaunde / video_compressing.ps1
Last active April 11, 2026 20:36
Video compressing using Powershell and FFmpeg
param (
[Parameter(Mandatory, HelpMessage = "The working directory is mandatory")]
[String]$WorkDir,
[Parameter()]
[String[]]$ExcludedVideos,
[Parameter()]
[bool]$recursive
)
$WorkDir = $WorkDir.Trim()

The box model

This is a good rule to add to a reset that sets the box-sizing of all elements and pseudo elements to border-box. This results in a predictable CSS authoring experience.

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
const users = [
{
id: 0,
status: "inactive",
username: "hobbit"
},
{
id: 1,
status: "active",
username: "hobbit 2"
@ToniMaunde
ToniMaunde / connectivityStatus.ts
Created March 26, 2022 11:40
utility code a friend shared with me to check the connectivity status of the user
const isOnline = async ():Promise<boolean> => {
// Make a request to any host as long as it is a URL and not an IP in order to check DNS too
try {
await fetch("checkip.amazonaws.com");
return true;
} catch (error) {
return false;
}
};