Skip to content

Instantly share code, notes, and snippets.

View oliveratgithub's full-sized avatar

Oliver oliveratgithub

View GitHub Profile
@Swiss-Mac-User
Swiss-Mac-User / loc_english.txt
Last active August 22, 2026 15:35
Mac Quake 1 localization strings file with support for «Dawn of the Machine» expansion (mg3). Place inside `/quake/rerelease/localization/loc_english.txt`. How-to: https://swissmacuser.ch/macos-game-steam-quake-30th-anniversary-dawn-of-the-machine-mg3/
// generic menu
m_on = "On"
m_off = "Off"
m_back = "Back"
m_select = "Select"
m_ok = "OK"
m_y_or = "Y or"
m_n_or = "N or"
// iis menu
@newtonjob
newtonjob / MagicLoginLink.php
Created March 21, 2025 14:38
Magic login link using Laravel's `Password` broker
@hackermondev
hackermondev / research.md
Last active August 27, 2026 13:33
Unique 0-click deanonymization attack targeting Signal, Discord and hundreds of platform

hi, i'm daniel. i'm a 15-year-old high school junior. in my free time, i hack billion dollar companies and build cool stuff.

3 months ago, I discovered a unique 0-click deanonymization attack that allows an attacker to grab the location of any target within a 250 mile radius. With a vulnerable app installed on a target's phone (or as a background application on their laptop), an attacker can send a malicious payload and deanonymize you within seconds--and you wouldn't even know.

I'm publishing this writeup and research as a warning, especially for journalists, activists, and hackers, about this type of undetectable attack. Hundreds of applications are vulnerable, including some of the most popular apps in the world: Signal, Discord, Twitter/X, and others. Here's how it works:

Cloudflare

By the numbers, Cloudflare is easily the most popular CDN on the market. It beats out competitors such as Sucuri, Amazon CloudFront, Akamai, and Fastly. In 2019, a major Cloudflare outage k

@Swiss-Mac-User
Swiss-Mac-User / icon_maker.sh
Last active March 25, 2026 18:28
macOS shell script to create an .icns icon file from an image input file
#!/bin/zsh
# ================================================================================
# A macOS shell script to create an .icns icon file from an image input file
#
# NOTE: make this file executable first using:
# chmod +x /path/to/icon_maker.sh
#
# --------------------------------------------------------------------------------
# Source: https://gist.github.com/Swiss-Mac-User/7a1a55e499db618c59718cbffe23318c
@Swiss-Mac-User
Swiss-Mac-User / add_alarms_to_ics.sh
Created January 16, 2024 20:47
Shell script to insert a VALARM block to every event in an iCalendar file (.ics), making imported events show an alert x hours before the event
#!/bin/bash
# Inspired from: https://x.com/SwissMacUser/status/1349065380514426883
# Personally used to add event reminders to the downloadabl iCalendar files
# of the yearly Stadt Zürich digital Entsorgungskalender at
# https://www.stadt-zuerich.ch/ted/de/index/entsorgung_recycling/entsorgen/persoenlicher_entsorgungskalender.html
# Check if the minimum number of arguments is provided
if [ "$#" -lt 2 ]; then
echo "Usage: $0 <path-to-ics-file> <hours-to-alert-before> [backup]"
@Swiss-Mac-User
Swiss-Mac-User / Terminal.sh
Created June 22, 2023 21:07
Find non UTF-8 encoded files on macOS: a shell command to recursively list all non UTF-8 encoded files within a directory (and its subdirectories)
find /path/to/dir -maxdepth 2 -type f -exec sh -c 'iconv -f utf-8 -t utf-8 "{}" >/dev/null 2>&1 || echo "{}: Not UTF-8"' \;

FIRST mermaid graph

Keeping in mind the "Latency Numbers Every Programmer Should Know", i.e. network access is expensive.

Online request (service is provided by hashlookup online API)

  • existing / not existing have the same high cost
  • network access takes a long time
  • leak every hash to hashlookup service
@Swiss-Mac-User
Swiss-Mac-User / a_Docker setup.md
Last active October 8, 2025 03:52
Installing SonarQube on Docker and SonarScanner using Homebrew on macOS

Docker setup

Install the Docker UI application for macOS

brew install docker --cask

Open the Docker.app

from /Applications/Docker.app

Go to the Docker Dashboard

Wait until the "Docker Dashboard starting…"-message disappears (= Setup complete)

@yskxi
yskxi / css-macos-big-sur-window.markdown
Created May 16, 2022 02:25
CSS MacOS Big Sur Window
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UnifiedBar</key>
<dict>
<key>DisclosureRequired</key>
<string>ace440ac-b4f6-4b43-aade-02bba1589aef</string>
<key>Enabled</key>
<false/>