This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
jellyfin: | |
image: jellyfin/jellyfin:nightly | |
network_mode: "host" | |
volumes: | |
- /volume1/nasbox/Docker/jellyfin/config:/config | |
- /volume1/nasbox/Docker/jellyfin/cache:/cache | |
- /volume1/nasbox/Docker/jellyfin/media:/media |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#https://github.com/taskrabbit/elasticsearch-dump | |
#!/bin/sh | |
yum install -y gcc-c++ make | |
curl -sL https://rpm.nodesource.com/setup_12.x | bash - | |
yum install -y nodejs | |
npm install elasticdump -g --no-bin-link | |
export NODE_TLS_REJECT_UNAUTHORIZED=0 | |
echo "localhost:9200/index mapping|data" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for /r %%i in (*.png) do ( | |
ffmpeg.exe -loop 1 -t 3 -i %%i -c:v libx264 -pix_fmt yuv420p %%i_1.mp4 | |
) | |
del list.txt | |
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
git config -f .gitmodules --get-regexp '^submodule\..*\.path$' | | |
while read path_key path | |
do | |
url_key=$(echo $path_key | sed 's/\.path/.url/') | |
url=$(git config -f .gitmodules --get "$url_key") | |
git submodule add $url $path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Windows | |
cd %userprofile%/.ssh | |
ssh-keygen -t rsa -C "[email protected]" | |
clip < <key-name>.pub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install zsh | |
chsh -s $(which zsh) | |
apt install wget git | |
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh | |
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc | |
source ~/.zshrc | |
cd ~/.oh-my-zsh/themes/ | |
ls -a | |
nano ~/.zshrc | |
ZSH_THEME='agnoster' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
entity_id: media_player.tcl_tv | |
command: "am start -n com.tcl.tv/.TVActivity" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NodeJS | |
sudo apt-get update | |
sudo apt-get -f install | |
sudo apt-get install curl | |
sudo apt-get install build-essential | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash | |
nvm install --lts | |
nvm use --lts | |
echo "nvm use --lts" >> .bash_profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo apt update && | |
sudo apt -y upgrade && | |
#Install curl | |
sudo apt install curl && | |
#Install git | |
sudo apt install git && |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg | |
sudo install -o root -g root -m 644 packages.microsoft.gpg /usr/share/keyrings/ | |
sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list' | |
sudo apt-get install apt-transport-https | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
sudo apt-get install code # or code-insiders |