I hereby claim:
- I am olegbuevich on github.
- I am obuevich (https://keybase.io/obuevich) on keybase.
- I have a public key ASDbQbeXTGHIVaIkcqw2-FKcIi6b7jAZ1T-GF_yT1smfbgo
To claim this, I am signing this object:
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: ${{app_name}} | |
# Required-Start: ${{start_facilities}} | |
# Required-Stop: ${{stop_facilities}} | |
# Default-Start: ${{start_runlevels}} | |
# Default-Stop: ${{stop_runlevels}} | |
# Short-Description: ${{descr}} | |
### END INIT INFO |
# a2enmod proxy_wstunnel | |
RewriteEngine On | |
RewriteCond %{HTTP:Upgrade} websocket [NC] | |
RewriteCond %{QUERY_STRING} transport=websocket [NC] | |
RewriteRule ^(.*) ws://localhost:10081/$1 [P] | |
RewriteRule ^(.*) http://localhost:10081/$1 [P] |
I hereby claim:
To claim this, I am signing this object:
description "rocketchat application server" | |
# Wait for mongod before starting rocketchat app·· | |
start on (started mongod) | |
stop on runlevel [!2345] | |
# Automatically attempt to restart with finite limits | |
respawn | |
respawn limit 99 5 |
# pip install python-telegram-bot | |
from telegram import bot | |
# example values | |
BOT_TOKEN='123456789:jhsagdhg_sakjdKHGKuyasgdkhsabdas' | |
CHAT_ID='7125376' | |
tbot = bot.Bot(BOT_TOKEN) | |
tbot.send_message(chat_id=CHAT_ID, text='Message from python') |
sudo cat /etc/letsencrypt/live/<hostname>/privkey.pem | ssh <router> "cat > /etc/key.pem" | |
sudo cat /etc/letsencrypt/live/<hostname>/fullchain.pem | ssh <router> "cat > /etc/cert.pem" | |
ssh <router> service restart_httpd |
#!/bin/sh | |
# | |
# /etc/init.d/tomcat8 -- startup script for the Tomcat 8 servlet engine | |
# | |
# Written by Miquel van Smoorenburg <[email protected]>. | |
# Modified for Debian GNU/Linux by Ian Murdock <[email protected]>. | |
# Modified for Tomcat by Stefan Gybas <[email protected]>. | |
# Modified for Tomcat6 by Thierry Carrez <[email protected]>. | |
# Modified for Tomcat7 by Ernesto Hernandez-Novich <[email protected]>. | |
# Additional improvements by Jason Brittain <[email protected]>. |
# install needed packages | |
yum install librsync-devel python-devel | |
# remove old version | |
yum remove duplicity.x86_64 | |
wget http://savannah-nongnu-org.ip-connect.vn.ua/duplicity/duplicity-0.7.11.tar.gz | |
tar -zxvf duplicity-0.7.11.tar.gz | |
cd duplicity-0.7.11/ | |
python setup.py install |
start on runlevel [2345] | |
stop on runlevel [016] | |
respawn | |
limit nofile 50000 50000 | |
chdir /opt/mattermost | |
exec su -c bin/platform mattermost |
SELECT query, calls, total_time, rows, 100.0 * shared_blks_hit / | |
nullif(shared_blks_hit + shared_blks_read, 0) AS hit_percent | |
FROM pg_stat_statements ORDER BY total_time DESC LIMIT 5; |