This is a tutorial on how to build linux and test it using qemu on a M series Mac.
You will need brew, git ,docker, qemu and a Mac with a M series chip (M1, M2, M3 ...)
Install brew from https://brew.sh/ and then install qemu and docker using brew:
| setInterval(() => { | |
| document.querySelectorAll("*").forEach(el => { | |
| el.style.animation = "none"; | |
| el.style.transition = "none"; | |
| el.style.opacity = 1; // just incase an element is hidden | |
| }); | |
| }, 200); |
| as hello_world.asm -o tmp | |
| ld tmp -o program | |
| ./program |
This is a tutorial on how to build linux and test it using qemu on a M series Mac.
You will need brew, git ,docker, qemu and a Mac with a M series chip (M1, M2, M3 ...)
Install brew from https://brew.sh/ and then install qemu and docker using brew:
| { | |
| "name": "App/Project Name", | |
| "version": "0.0.1", | |
| "licence": "www.example.com/licence.txt", | |
| "author": "Author Name", | |
| "git_url": "www.example.com" | |
| } |
| # Quick Github downloader | |
| # Download all non-forked repositories of a user | |
| # By: Lewis Evans | |
| import os | |
| import requests | |
| username = input("Enter your GitHub username: ") | |
| clone_directory = "./repositories" |
| /** | |
| * Lottery Simulator | |
| * This is a simple lottery simulator that will simulate a lottery game. | |
| */ | |
| #include <iostream> | |
| #include <cstdlib> | |
| #include <ctime> | |
| #include <vector> |
| echo "Quick setup script for awesomelewis2007's ideal development environment" | |
| sudo apt update | |
| sudo apt install gcc build-essential python3-dev python3-pip nodejs npm fish git micro mc -y | |
| echo "Now changing shell to fish for current user" | |
| sudo chsh -s /usr/bin/fish | |
| cd ~ | |
| mkdir code | |
| cd code |
| import random | |
| import time | |
| class Values: | |
| video_types = [15,60,180] | |
| hour = 3600 | |
| def demo(): | |
| input("This is a algorithm to show how many TikTok videos a person can consume (Press enter)") | |
| print("Videos watches if all videos are 15s that are 100% watched:"+str(Values.hour/15)) |
| PS1="βββ[Bash \v]ββ[\@]ββ[\e[0;32m\u\e[0m@\e[0;32m\H\e[0;34m \w\e[0m]\nββ>" |
| <script src="https://gist.github.com/awesomelewis2007/4ac3ea55bfae27f68adfadf6c6d1969d" async defer></script> |