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/local/lib/ruby/2.4.0/net/smtp.rb:539:in `initialize': execution expired (Net::OpenTimeout) | |
from /usr/local/lib/ruby/2.4.0/net/smtp.rb:539:in `open' | |
from /usr/local/lib/ruby/2.4.0/net/smtp.rb:539:in `tcp_socket' | |
from /usr/local/lib/ruby/2.4.0/net/smtp.rb:549:in `block in do_start' | |
from /usr/local/lib/ruby/2.4.0/timeout.rb:103:in `timeout' | |
from /usr/local/lib/ruby/2.4.0/net/smtp.rb:548:in `do_start' | |
from /usr/local/lib/ruby/2.4.0/net/smtp.rb:518:in `start' | |
from /usr/local/bundle/gems/mail-2.6.6/lib/mail/network/delivery_methods/smtp.rb:111:in `deliver!' | |
from /usr/local/bundle/gems/mail-2.6.6/lib/mail/message.rb:2149:in `do_delivery' | |
from /usr/local/bundle/gems/mail-2.6.6/lib/mail/message.rb:237:in `block in deliver' |
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
repoquery --whatprovides 'font(:lang=en)' | |
bpg-nateli-condenced-fonts-0:2.003-3.el7.noarch | |
thai-scalable-garuda-fonts-0:0.5.0-7.el7.noarch | |
khmeros-battambang-fonts-0:5.0-17.el7.noarch | |
ipa-pgothic-fonts-0:003.03-5.el7.noarch | |
stix-math-fonts-0:1.1.0-5.el7.noarch | |
google-crosextra-caladea-fonts-0:1.002-0.4.20130214.el7.noarch | |
thai-scalable-loma-fonts-0:0.5.0-7.el7.noarch | |
cjkuni-uming-fonts-0:0.2.20080216.1-53.el7.noarch | |
google-noto-cjk-fonts-0:1.004-7.el7.noarch |
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
FROM ubuntu:18.04 | |
MAINTAINER Pavel.Lobashov "[email protected]" | |
RUN apt-get update && apt-get install -y curl sudo | |
RUN sudo apt-get update && sudo apt-get install -y postgresql | |
RUN sudo apt-get -y install npm | |
RUN service postgresql start && \ | |
sudo -u postgres psql -c "CREATE DATABASE onlyoffice;" && \ |
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 |
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
#!/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
+ 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
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
#!/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
#!/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 |