Here is easy steps to try Windows 10 on ARM or Ubuntu for ARM64 on your Apple Silicon Mac. Enjoy!
NOTE: that this is current, 10/1/2021 state.
- Install Xcode from App Store or install Command Line Tools on your Mac
| # Based on https://gist.github.com/bastibe/c0950e463ffdfdfada7adf149ae77c6f | |
| # Changes: | |
| # * Instead of overriding cd, we detect directory change. This allows the script to work | |
| # for other means of cd, such as z. | |
| # * Update syntax to work with new versions of fish. | |
| # * Handle virtualenvs that are not located in the root of a git directory. | |
| function __auto_source_venv --on-variable PWD --description "Activate/Deactivate virtualenv on directory change" | |
| status --is-command-substitution; and return |
| import axios from 'axios' | |
| const MAX_REQUESTS_COUNT = 5 | |
| const INTERVAL_MS = 10 | |
| let PENDING_REQUESTS = 0 | |
| // create new axios instance | |
| const api = axios.create({}) | |
| /** |
Here is easy steps to try Windows 10 on ARM or Ubuntu for ARM64 on your Apple Silicon Mac. Enjoy!
NOTE: that this is current, 10/1/2021 state.
| <?php | |
| namespace App\Filament\PageTemplates; | |
| use Filament\Forms\Components\Repeater; | |
| use Filament\Forms\Components\RichEditor; | |
| use Filament\Forms\Components\TextInput; | |
| final class Faq | |
| { |
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: dockercompose | |
| # Required-Start: $docker | |
| # Required-Stop: $docker | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Docker Services | |
| ### END INIT INFO |
Create file /etc/systemd/system/[email protected]. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin, you should use paths specific for your environment.
[Unit]
Description=%i service with docker compose
Requires=docker.service
After=docker.service| File | Purpose |
|---|---|
/etc/compose/docker-compose.yml |
Compose file describing what to deploy |
/etc/systemd/system/docker-compose-reload.service |
Executing unit to trigger reload on docker-compose.service |
/etc/systemd/system/docker-compose-reload.timer |
Timer unit to plan the reloads |
/etc/systemd/system/docker-compose.service |
Service unit to start and manage docker compose |
| @echo off | |
| net file 1>nul 2>nul | |
| if "%errorlevel%" == "0" (goto admin) | |
| :elevate | |
| echo Set UAC = CreateObject^("Shell.Application"^) > "%Temp%\elevate.vbs" | |
| set params = %*:"=" | |
| echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >> "%Temp%\elevate.vbs" | |
| "%Temp%\elevate.vbs" | |
| del "%Temp%\elevate.vbs" |
| ################## | |
| # Privacy Settings | |
| ################## | |
| # Privacy: Let apps use my advertising ID: Disable | |
| Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0 | |
| # To Restore: | |
| #Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1 | |
| # Privacy: SmartScreen Filter for Store Apps: Disable | |
| Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0 |