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 | |
wget https://zoom.us/client/latest/zoom_amd64.deb -O /tmp/zoom_amd64.deb | |
sudo dpkg -i /tmp/zoom_amd64.deb | |
rm /tmp/zoom_amd64.deb |
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 -y update | |
sudo apt dist-upgrade | |
sudo apt autoremove | |
sudo snap refresh | |
flatpak update |
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 | |
KODI_BACKUP_FILE='' | |
echo 'gpu_mem=256' | sudo tee -a /boot/config.txt | |
sudo raspi-config nonint do_boot_wait 0 | |
# Restore kodi backup |
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/bash | |
DATE=$(date '+%Y-%m-%d-%H-%M-%S') | |
BACKUP_NAME=kodi-backup-$DATE.tar.gz | |
TEMP_BACKUP_LOCATION=/tmp/backups/kodi | |
BACKUP_DIR=/home/pi/.kodi | |
ARCHIVE_DIR=/media/routher_share/Backup/kodi | |
mkdir -pv $TEMP_BACKUP_LOCATION | |
chmod 777 $TEMP_BACKUP_LOCATION |
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 | |
# https://gist.github.com/ShockwaveNN/a04d3419c3956aec556f759283a1556e/edit | |
master_branch_exists=$(git ls-remote --heads origin master) | |
if [[ -z ${master_branch_exists} ]]; then | |
git checkout main | |
else | |
git checkout master | |
fi |
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
docker pull onlyoffice/documentserver | |
docker run -itd -p 80:80 --name ds-release onlyoffice/documentserver | |
sleep 90 | |
docker exec ds-release bash -c "dpkg -l | grep only" | |
docker exec ds-release supervisorctl start all | |
xdg-open http://localhost | |
docker stop ds-release | |
docker rm ds-release | |
docker rmi onlyoffice/documentserver |
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
+ set -e | |
+ . /usr/share/debconf/confmodule | |
+ [ ! 1 ] | |
+ [ -z ] | |
+ exec | |
+ [ ] | |
+ exec | |
+ DEBCONF_REDIR=1 | |
+ export DEBCONF_REDIR | |
+ DIR=/var/www/onlyoffice/documentserver |
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 | |
wget --content-disposition https://nct.onlyoffice.com/sh/Xsy # Hello world image | |
wget http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.107-1.el7_6.noarch.rpm | |
wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-19.03.5-3.el7.x86_64.rpm | |
wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-cli-19.03.5-3.el7.x86_64.rpm | |
wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-selinux-17.03.3.ce-1.el7.noarch.rpm | |
wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm | |
sudo systemctl restart network # Just for test purposes | |
sudo rpm -i container-selinux-2.107-1.el7_6.noarch.rpm |
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 ruby | |
require 'securerandom' | |
`docker ps --format '{{.Names}}' | grep "^DocumentServer" | awk '{print $1}' | xargs -I {} docker stop {}` | |
container_name = "DocumentServer#{SecureRandom.uuid}" | |
`docker run -itd -p 80:80 -v /usr/share/fonts:/usr/share/fonts/custom --name #{container_name} onlyoffice/4testing-documentserver-ee:#{ARGV[0]}` | |
sleep 90 | |
`docker exec -it #{container_name} supervisorctl start all` | |
print "\a" |
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
//192.168.1.1/My_Book /media/routher_share cifs rw,username=guest,password=,noperm,iocharset=utf8,file_mode=0777,dir_mode=0777,vers=1.0 0 0 |
NewerOlder