Skip to content

Instantly share code, notes, and snippets.

To test your apps, you might want to install Xcode and the iPhone simulator. This is entirely possible using a macOS virtual machine. Today, I will explain how to do this using dockur/macos. First, download and install it by following the instructions in their README file. After the installation is complete, macOS will show a warning in the top right corner to upgrade to the 'Tahoe' version. Click it and upgrade to the latest macOS. Then, open your terminal at the bottom right (I'm mentioning this for first-time Mac users xd). Once opened, enter these commands in order:

# Install Brew (see: https://brew.sh):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

brew install xcodes
@urob
urob / git_for_zmk.md
Last active February 2, 2026 09:31
Maintaining a personal ZMK fork
@mcxiaoke
mcxiaoke / miui-blotware-apps.md
Last active March 14, 2026 13:02
MIUI 13/14 bloatware apps, updated at 20240816

对于所有应用,不建议直接删除,使用adb shell pm disable-user package-name禁用即可,方便出问题时恢复。

DO NOT UNINSTALL:

  • com.miui.securitycenter
  • com.miui.securityadd
  • com.xiaomi.finddevice

(Don’t uninstall these three apps or services from your Xiaomi device. Otherwise, you may encounter device bricking or bootloop issues.)

@Arahnoid
Arahnoid / emacs-image-functions.org
Last active March 12, 2022 20:01
Collection of useful emacs-lisp functions for working with images

Editing images in Markdown files

ig/md-imagemagick-add-shadow

When an image has large bits of white color it may merge with the document background. To avoid this lets add a shadow to the image. We can parse the file path from a image object in Markdown file and send it to ImageMagic.

(defun ig/md-imagemagick-add-shadow ()
  "Add shadow to a Markdown image element"
  (interactive "@*")
@luuductoan
luuductoan / writeup.md
Last active June 10, 2019 15:43
FUCTF Season 1

FUCTF Season 1

FUHCM_ch0jvjkj3nthUc

Cryptography - Warm up

Đếm thứ tự từ chữ f đến chữ u và từ u đến c là 7 kí tự thì ta có quy luật
Bắt đầu từ f đếm đến chữ thứ 7 thì ghi lại kế bên, tiếp tục vậy cho đến hết đề
Sau mỗi lần đếm đến cuối thì ghi lại kí tự kế bên chữ f ở đề bài và bắt đầu lập lại với kí tự đó trong đề

f{_coleuwur_l!c4pyce!tr_phn!fm_tag}
fu{_colewur_l!c4pyce!tr_phn!fm_tag}

@kabili207
kabili207 / create-shared-git.sh
Created April 4, 2019 16:33
Initializing git repo as group writable
git init --shared=0665 scripts
cd scripts
chgrp linux_admins .
setfacl -R -m g:linux_admins:rwX .
find . -type d | xargs setfacl -R -m d:g:linux_admins:rwX
@devxpy
devxpy / midi_numbers.py
Last active June 17, 2025 17:59
A python script that converts MIDI message numbers to notes and instruments (and vice-versa)
INSTRUMENTS = [
'Acoustic Grand Piano',
'Bright Acoustic Piano',
'Electric Grand Piano',
'Honky-tonk Piano',
'Electric Piano 1',
'Electric Piano 2',
'Harpsichord',
'Clavi',
'Celesta',
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
Include file (Java)
<%@ include file="/WEB-INF/jsp/common/date.jsp" %>
Include file (JSP)
<jsp:include page="/WEB-INF/jsp/common/date.jsp">
@will-henney
will-henney / internal-links-test.org
Last active August 23, 2022 20:59
Tests of internal link syntax in emacs org-mode and in org-ruby
@alainwolf
alainwolf / cyanogen_sshd.sh
Last active August 25, 2023 15:37
SSH server on CyanogenMod Smaprtphones
#!/bin/sh
adb root
adb remount
#
# Create a minimal but safe SSH Daemon configuration
cat <<EndOfSSHDConfigFile > sshd_config
# Minimal OpenSSH daemon configuration for CyanogenMod 10.1+
AuthorizedKeysFile /data/.ssh/authorized_keys
ChallengeResponseAuthentication no
PasswordAuthentication no