This file contains hidden or 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
# Variables | |
SAW_PROTO='http' | |
SAW_SERVER='myobieeserver.foo.com' | |
SAW_PORT=7780 | |
BI_USER='Prodney' | |
BI_PW='Admin123' | |
# Libraries | |
import requests, re | |
try: |
This file contains hidden or 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 python | |
# coding: utf-8 | |
# In[301]: | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
import re |
This file contains hidden or 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
1) | |
select tr.txn_amount * rt.ccy_rate | |
from transactions tr, rates rt | |
where rt.ccy_code = 840 | |
and rt.report_date = (select max (rts.report_date) | |
from rates rts | |
where rts.report_date <= tr.report_date) | |
2) | |
select ll.*, kk.vsp_number last_vsp |
This file contains hidden or 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 | |
deb_pkg_name=$1 #получить имя пакета | |
apt-cache rdepends $deb_pkg_name > /tmp/list_dep.txt | |
while read LINE; | |
do | |
if [[ $LINE != $deb_pkg_name && $LINE != "Reverse Depends:" ]]; then | |
echo "sudo apt-get install $LINE" ; | |
fi | |
done < /tmp/list_dep.txt |
This file contains hidden or 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
http { | |
upstream example { | |
server localhost:8222; | |
} | |
server { | |
listen 80; | |
server_name subdomain.example.com/path; | |
rewrite ^ http://example.com/subdomain/path$request_uri? permanent; | |
location / { |
This file contains hidden or 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
^((8|\+\d{1,5})[\- ]?)?(\(?\d{3}\)?[\- ]?)?[\d\- ]{7,12}$ |