Skip to content

Instantly share code, notes, and snippets.

@1allen
1allen / arr.sh
Last active May 8, 2025 05:57
ARR app stack management script for PulsedMedia service, generated by AI.
#!/bin/bash
# Function to launch Jellyfin
jellyfin() {
tmux new-session -d -s "jellyfin" "export JELLYFIN_DATA_DIR=$HOME/.config/jellyfin && JELLYFIN_LOG_DIR=$HOME/.config/jellyfin/log && nice -n 19 sh -c $DOTNET_ROOT/dotnet\ $HOME/.bin/jellyfin/jellyfin.dll"
}
# Function to launch Sonarr
sonarr() {
tmux new-session -d -s "sonarr" "mono $HOME/.bin/Sonarr/Sonarr.exe --data=$HOME/.config/sonarr; exec $SHELL"
@1allen
1allen / fpm.conf
Created March 26, 2018 05:49
php-fpm opcache tweaked
php_admin_value[opcache.revalidate_freq] = 60
php_admin_value[opcache.max_accelerated_files] = 10000
php_admin_value[opcache.memory_consumption] = 1024
@1allen
1allen / nginx-xdebug-timeouts.conf
Created May 31, 2017 06:45
nginx timeouts for comfortable xdebug usage
# timeouts
# for comfortable xdebug usage
proxy_connect_timeout 600s;
proxy_send_timeout 600s;
proxy_read_timeout 600s;
fastcgi_connect_timeout 600s;
fastcgi_send_timeout 600s;
fastcgi_read_timeout 600s;

Keybase proof

I hereby claim:

  • I am 1allen on github.
  • I am 1allen (https://keybase.io/1allen) on keybase.
  • I have a public key whose fingerprint is E7EB 8364 273F A0DE A1C5 7B28 4172 3DCB 6997 9B21

To claim this, I am signing this object:

@1allen
1allen / gist:8019847
Created December 18, 2013 09:55
анимация, действие, анимация всё последовательно
$('#something')
.stop(true, true)
.fadeOut()
.queue(function(next){
$.noop(); // doing things there
next();
})
.fadeIn()
@1allen
1allen / ubuntu.sh
Last active July 18, 2023 14:06
ubuntu vps initial config
#!/bin/bash
# arrange sources.list if needed
# https://repogen.simplylinux.ch/
# cleanup & upgrade
sudo apt update
# in case of broken gpg keys
# W: GPG error: http://extras.ubuntu.com **** Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY <key id>