https://gist.github.com/tjluoma/70c936b36d099e37ed9bf64c1df8debe
https://www.brunerd.com/blog/2021/08/24/automating-automatic-login-for-macos/
from ctypes import CDLL, byref, c_uint32 | |
Security = CDLL('/System/Library/Frameworks/Security.framework/Versions/Current/Security') | |
kcallerSecuritySession = c_uint32(-1) | |
my_session = c_uint32(0) | |
session_bits = c_uint32(0) | |
result = Security.SessionGetInfo(kcallerSecuritySession, byref(my_session), byref(session_bits)) | |
flags = session_bits.value |
#!/bin/bash | |
VER="0.94.2"; | |
SCRIPTTITLE="PV - HVM - version $VER"; | |
RED=$(tput setaf 1) | |
GREEN=$(tput setaf 2) | |
NORMAL=$(tput sgr0) | |
# Configure logging | |
tmp="/tmp" | |
logfile="$tmp/$(basename $0).$$.log" |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: Extreme Performance Tuning Benchmark Environment | |
Parameters: | |
AmiId: | |
Type: AWS::SSM::Parameter::Value<AWS::EC2::Image::Id> | |
Default: '/aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2' |
FROM php:8.2-fpm-alpine | |
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ | |
RUN \ | |
chmod +x /usr/local/bin/install-php-extensions \ | |
&& install-php-extensions \ | |
apcu bcmath bz2 ldap pdo_mysql pdo_pgsql exif sysvsem smbclient intl imap pcntl soap imagick gmp gd zip |
#!/bin/bash | |
set -e | |
# https://github.com/orgs/amazonlinux/repositories | |
# https://github.com/amzn/amzn-drivers/issues/241#issuecomment-1282274014 | |
# https://www.artembutusov.com/how-to-rebuild-amazon-linux-kernel-in-amazon-linux | |
# https://docs.aws.amazon.com/linux/al2023/ug/kernel-hardening.html | |
# https://kspp.github.io/ | |
# https://github.com/a13xp0p0v/linux-kernel-defence-map | |
#https://github.com/a13xp0p0v/kernel-hardening-checker/ |
!#/bin/bash | |
SRC_DIR=/Volumes/storage/Media/Movies | |
DST=rsync://<server>:30026/movies | |
EXCLUDE_FILE=.rsync_exclude | |
if [ "$1" == "test" ]; then | |
RSYNC_START="/opt/homebrew/bin/rsync --dry-run" | |
else | |
RSYNC_START="/opt/homebrew/bin/rsync" |
FROM --platform=$BUILDPLATFORM alpine:latest | |
WORKDIR / | |
RUN \ | |
apk --no-cache add \ | |
ca-certificates \ | |
tzdata \ | |
shadow \ | |
su-exec |
Experimental but very promising pip
replacement that handles package managing as well as virtual environments and Python version management.
uv
comes included with uvx
, an alias for uv tool run
. uvx
allos you to install and execute command-line tools on an ephemeral environment.
Note that you don't have to actively install a Python version! uv
will automatically fetch the required Python version for your project.
This guide describes how to create a local PyPI mirror for use in isolated networks without internet access. We'll use bandersnatch to dump packages, a web server to serve them, and devpi to enable search functionality.
This is possible using devpi, web server, bandersnatch and volume to store the packages.