mirror of
https://github.com/RGBCube/Site
synced 2025-08-01 13:37:49 +00:00
Compare commits
5 commits
cb2d9513c1
...
9f92495826
Author | SHA1 | Date | |
---|---|---|---|
9f92495826 | |||
f505753a83 | |||
2b44e05c05 | |||
87adee2737 | |||
357f2f21b1 |
2 changed files with 35 additions and 15 deletions
30
apply.nu
30
apply.nu
|
@ -1,14 +1,18 @@
|
|||
#!/usr/bin/env nu
|
||||
|
||||
def --wrapped sync [...arguments] {
|
||||
(rsync
|
||||
def --wrapped sync [...args] {
|
||||
( rsync
|
||||
--archive
|
||||
--compress
|
||||
|
||||
--delete --recursive --force
|
||||
--delete-excluded
|
||||
--delete-missing-args
|
||||
...$arguments)
|
||||
}
|
||||
|
||||
--human-readable
|
||||
--delay-updates
|
||||
...$args)
|
||||
}
|
||||
# Applies the changes to the site by uploading it to the VPS.
|
||||
def main [] {
|
||||
const dest_directory = "_site_production"
|
||||
|
@ -29,18 +33,14 @@ def main [] {
|
|||
|
||||
cd $dest_directory
|
||||
|
||||
let host = "root@best";
|
||||
let host = "root@best";
|
||||
let remote_path = "/var/www/site"
|
||||
|
||||
ssh -tt $host "
|
||||
rm --force --recursive /var/www/site
|
||||
mkdir /var/www/site
|
||||
"
|
||||
sync --chown nginx:users ./ ($host + ":/var/www/site")
|
||||
|
||||
ssh -tt $host "
|
||||
chown nginx:users -R /var/www
|
||||
chmod 775 -R /var/www
|
||||
"
|
||||
(sync
|
||||
--chown "nginx:users"
|
||||
--chmod "Du=rwx,Dg=rwx,Do=rx,Fu=rw,Fg=r,Fo=r" # DIRS: 775, FILES: 664
|
||||
--rsync-path $"mkdir ($remote_path); rsync"
|
||||
./ ($host + ":" + $remote_path))
|
||||
|
||||
cd -
|
||||
|
||||
|
|
20
site/dump/darwin/reduce-motion-nix-darwin.md
Normal file
20
site/dump/darwin/reduce-motion-nix-darwin.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
title: Disable MacOS doodoo garbage shinies with Nix Darwin
|
||||
description: FIRE ALL OF THE DESIGNERS AT APPLE I WANT USABLE AND FAST USER INTERFACES NOT 15 MINUTES OF NOVELTY
|
||||
date: 2025-06-11
|
||||
---
|
||||
|
||||
Use this [Nix Darwin](https://github.com/nix-darwin/nix-darwin) module:
|
||||
|
||||
```nix
|
||||
{
|
||||
system.defaults = {
|
||||
# Reduce window resize animation duration.
|
||||
NSGlobalDomain.NSWindowResizeTime = 0.001;
|
||||
|
||||
# Reduce motion.
|
||||
CustomSystemPreferences."com.apple.Accessibility".ReduceMotionEnabled = 1;
|
||||
universalaccess.reduceMotion = true;
|
||||
};
|
||||
}
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue