- Modificado (modified);
- Preparado (staged/index)
- Consolidado (comitted);
Discover gists
version: '3' | |
services: | |
reverse-proxy: | |
image: traefik:v2.0 | |
restart: always | |
container_name: traefik | |
command: | |
- "--api=true" | |
- "--providers.docker=true" |
Shut down without showing a confirmation dialog:
osascript -e 'tell app "System Events" to shut down'
Shut down after showing a confirmation dialog:
osascript -e 'tell app "loginwindow" to «event aevtrsdn»'
#!/usr/bin/env python | |
## Tiny Syslog Server in Python. | |
## | |
## This is a tiny syslog server that is able to receive UDP based syslog | |
## entries on a specified port and save them to a file. | |
## That's it... it does nothing else... | |
## There are a few configuration parameters. | |
LOG_FILE = 'youlogfile.log' |
╔╦╗╦ ╦ ╔╗ ┬ ┬┌─┐ ╔╗ ┌─┐┬ ┬┌┐┌┬┐┬ ┬ ╦═╗┌─┐┌─┐┌─┐┬ ┬┬─┐┌─┐┌─┐┌─┐ | |
║║║╚╦╝ ╠╩╗│ ││ ┬ ╠╩╗│ ││ │││││ └┬┘ ╠╦╝├┤ └─┐│ ││ │├┬┘│ ├┤ └─┐ | |
╩ ╩ ╩ ╚═╝└─┘└─┘ ╚═╝└─┘└─┘┘└┘┴ ┴ ╩╚═└─┘└─┘└─┘└─┘┴└─└─┘└─┘└─┘ | |
// | |
()==========>>======================================-- | |
\\ | |
2FA Bypass |
{...register("email", { | |
required: "El Email es Obligatorio", | |
pattern: { | |
value: /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i, | |
message: 'Email No Válido' | |
} | |
})} |
Revision: 06.08.2023, https://compute.toys/view/407
fn sdSphere(p: vec3f, r: f32) -> f32 {
return length(p) - r;
}
################################################################################# | |
# INSTALL MAMBA ON GOOGLE COLAB | |
################################################################################# | |
! wget -O miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-py37_4.10.3-Linux-x86_64.sh | |
! chmod +x miniconda.sh | |
! bash ./miniconda.sh -b -f -p /usr/local | |
! rm miniconda.sh | |
! conda config --add channels conda-forge | |
! conda install -y mamba | |
! mamba update -qy --all |
/* Numerically solve for the time-dependent Schrodinger equation in 2D, | |
using the split operator method. To build and run, type: | |
rustc qm2d_split_op.rs | |
./qm2d_split_op | |
This will output a series of bmp images which show each frame of the | |
simulation. | |
References: |
Out of the box, my SMB performance on macOS 12.3.1 would top out at around 20MB/s in short ~5 second bursts, which was absolutely horrendous, slow to navigate in Finder and slugish to interact with.
Since making these changes, I now get sustained ~80-100MB/s+ and instant Finder navigation which is superb and how things should be out-of-the-box (OOTB)!
May 2023 update: As of Ventura, the SMB issues were just horribly inconsistent and hard to maintain. Something in the combination of Unraid, macOS and SMB just doesn't play nice. I ended up binning NFS/SMB all together and heading to a locally hosted Nextcloud instance for file syncing, then using SFTP/Ansible Git flow for editing files within appdata
.