Skip to content

Instantly share code, notes, and snippets.

@purplesyringa
purplesyringa / README.md
Last active March 31, 2025 13:27
Installing Windows 10 on 2011 MacBook Air without macOS

Installing Windows 10 on 2011 MacBook Air without macOS

This is a loosely structured "tutorial" (but really only useful if you know what you're doing) for installing Windows 10 on MacBookAir4,2 (but will probably work on other relatively old models as well), because all other methods hanged the machine at some point (including OpenCore) and I haven't seen it described elsewhere.

The MacBook's internal drive broke down and I needed to install Windows after replacing it, preferably without having to install macOS first just to remove it later -- I don't have much disk space to lose.

I have verified that this instruction works for tiny10, so that's good, and the default Windows 10 build probably works as well, but I prefered something lightweight, so that's what I went with.

My main machine runs Linux, but you can probably repeat the same instructions under Windows. I didn't want to install Windows twice so I found Linux tool replacements for everything I need

travis_fold:start:worker_info
Worker information
hostname: 09ebe55f-3389-4b65-837b-02b43cbca086@1.worker-org-689d9fcfd5-7rxgt.gce-production-1
version: v6.2.8 https://github.com/travis-ci/worker/tree/6d3048d96b26562be21fa1a8b8144f4c4cecd083
instance: travis-job-b5f73953-be9a-4c10-8683-9c557f3a2974 travis-ci-sardonyx-xenial-1553530528-f909ac5 (via amqp)
startup: 6.261711909s
travis_fold:end:worker_info
travis_time:start:18c3f290
travis_time:end:18c3f290:start=1583342082143600118,finish=1583342082289048405,duration=145448287,event=no_world_writable_dirs
travis_time:start:006cab2d
travis_fold:start:worker_info
Worker information
hostname: 5ac4e035-f64c-4d22-b408-612f9ffd3558@1.worker-org-db8cd8d97-mjfjn.gce-production-1
version: v6.2.8 https://github.com/travis-ci/worker/tree/6d3048d96b26562be21fa1a8b8144f4c4cecd083
instance: travis-job-f6b4c042-68b1-4070-b693-d13c5d853eb9 travis-ci-sardonyx-xenial-1553530528-f909ac5 (via amqp)
startup: 5.926745095s
travis_fold:end:worker_info
travis_time:start:0e38a370
travis_time:end:0e38a370:start=1583236804673943834,finish=1583236804815720438,duration=141776604,event=no_world_writable_dirs
travis_time:start:062be771
I, Ivanq, own [email protected] (address: 194pDo3F76iy7UnsyuXVdgtH3BVM1Ai1dg), registered on zn.amorgan.xyz proxy.
@purplesyringa
purplesyringa / bug.c++
Created June 16, 2018 13:38
clang bug?
//
// main.cpp
// Work in Moscow
//
// Created by Ivan Gorbunov on 21.07.17.
// Copyright © 2017 Ivan Gorbunov. All rights reserved.
//
#include <algorithm>
#include <iostream>
#include <cstdlib>

C++ и STL

Библиотеки

bits/stdc++.h

IO

ios_base::sync_with_stdio(0); - только если только cin/cout или только scanf/printf.

@purplesyringa
purplesyringa / BK0010.sublime-build
Created April 22, 2018 12:24
Sublime Build System для БК0010 / PDP11ASM
{
"shell_cmd": "\"/Users/Ivanq/Documents/BK0010/compile.sh\" \"$file_path/$file_name\""
}
@purplesyringa
purplesyringa / pdp11asm.md
Last active October 22, 2019 08:49
Syntax highlighting for PDP11ASM

Откройте папку с пакетами Sublime опцией Browse packages.... Перейдите в папку User и скопируйте туда приведенные ниже файлы.

Затем откройте любой исходник на ассемблере (файл с расширением .ASM или .MAC), выберите в списке языков (справа снизу) PDP-11 Asm. Затем в Preferences -> Color Scheme... выберите pdp11asm.


Open the directory with Sublime packages by pressing Browse packages.... Then open User subdirectory and copy the files below there.

Then open any assembler source (.ASM or .MAC), choose PDP-11 Asm in the language list (bottom right). Then open Preferences -> Color Scheme... and choose pdp11asm.

@purplesyringa
purplesyringa / compile.sh
Last active April 22, 2018 11:57
PDP11/BK0010 compiler script
#!/usr/bin/env bash
cd "$(dirname "$0")"
echo Compiling $1
./compiler "$1" >_log
if [ $? -ne 0 ]; then
cat _log | python -c "import sys; print sys.stdin.read().decode('utf-8', 'ignore').encode('utf-8')" | tail -2 | head -1
exit