Skip to content

Instantly share code, notes, and snippets.

View xstasi's full-sized avatar

Alessandro Grassi xstasi

View GitHub Profile
@xstasi
xstasi / requirements-magenta-cpu-apple-m1-m2.txt
Created January 30, 2023 20:26
requirements.txt to install Magenta on Apple Silicon Mac m1/m2, with and without GPU acceleration
absl-py==1.2.0
apache-beam==2.40.0
appdirs==1.4.4
appnope==0.1.3
astroid==2.11.7
asttokens==2.2.1
astunparse==1.6.3
async-timeout==4.0.2
attrs==22.2.0
audioread==3.0.0
0.0.0.0 abtest.mistat.intl.xiaomi.com
0.0.0.0 abtest.mistat.xiaomi.com
0.0.0.0 ad1.xiaomi.com
0.0.0.0 adinfo.ra1.xlmc.sec.miui.com
0.0.0.0 ad.mi.com
0.0.0.0 adv.sec.miui.com
0.0.0.0 adv.sec.miui.com
0.0.0.0 ad.xiaomi.com
0.0.0.0 api.account.xiaomi.com
0.0.0.0 api.admob.xiaomi.com
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
set -g default-terminal screen-256color
# Use vi-style key bindings for copy mode and status prompt
@xstasi
xstasi / tmssh.sh
Created November 26, 2017 22:05
tmux-based mssh replacement
#!/bin/bash
# Avoid nesting tmuces
if [ -n "${TMUX}" ]; then
echo "Cannot run this inside tmux."
exit
fi
# Help
if [ -z "$1" ] ; then
@xstasi
xstasi / basic-apt-repository.sh
Last active December 31, 2015 06:29
Maintain a basic APT repository
#!/bin/bash
cd /var/www/repository
apt-ftparchive packages . > Packages
cat Packages|gzip -9 > Packages.gz
apt-ftparchive release . > Release
rm -f Release.gpg
gpg -abs -o Release.gpg Release
# Access the repository with: deb http://server.url/repository ./