Skip to content

Instantly share code, notes, and snippets.

View ezhov-da's full-sized avatar
🙈
Work

Denis ezhov-da

🙈
Work
View GitHub Profile
@ezhov-da
ezhov-da / Восстановление дропнутых таблиц в Oracle.md
Last active September 6, 2023 11:22
Восстановление дропнутых таблиц в Oracle

В случае, если в БД были удалены таблицы, это удаление можно отменить. Для этого:

  1. Получить список дропнутых таблиц, которые нужно восстановить:
SELECT 
  ORIGINAL_NAME, 
  DROPTIME 
FROM 
  user_recyclebin 
WHERE 
<?xml version="1.0" encoding="UTF-8"?>
<!--https://github.com/liquibase/liquibase/blob/master/liquibase-standard/src/main/resources/www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.2.xsd-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
elementFormDefault="qualified">
<xsd:simpleType name="propertyExpression" id="propertyExpression">
<xsd:restriction base="xsd:string">
<xsd:pattern value="$\{[\w\.]+\}"/>
Function EXTRACT_CODE(cell)
Dim result As String
Dim allMatches As Object
Dim RE As Object
Set RE = CreateObject("vbscript.regexp")
RE.Pattern = "[0-9]{6}"
RE.Global = True
RE.IgnoreCase = True
Set allMatches = RE.Execute(cell)
close, closes, closed, fix, fixes, fixed, resolve, resolves, resolved
Пример: close #48 #38
Sub DownloadAttachmentsOfSelectedEmails()
Const XLSX_EXTENSION_PATTERN As String = "xlsx" 'расширение для вложения
Const XLS_EXTENSION_PATTERN As String = "xls" 'расширение для вложения
Const PATH As String = "C:\Users\DEzhov\Attachments\" 'папка для сохранения
Dim myOlExp As Outlook.Explorer
Dim myOlSel As Outlook.Selection
Dim mySender As Outlook.AddressEntry
Dim oMail As Outlook.MailItem
@ezhov-da
ezhov-da / ParseRSAKeys.java
Created February 27, 2022 11:07 — forked from destan/ParseRSAKeys.java
Parse RSA public and private key pair from string in Java
import java.io.IOException;
import java.net.URISyntaxException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.security.KeyFactory;
import java.security.NoSuchAlgorithmException;
import java.security.PrivateKey;
import java.security.interfaces.RSAPublicKey;
import java.security.spec.InvalidKeySpecException;
import java.security.spec.PKCS8EncodedKeySpec;
@ezhov-da
ezhov-da / Dockerfile
Created October 13, 2021 08:12 — forked from rosskevin/Dockerfile
nginx envsubst escape $
FROM nginx:alpine
# https://thepracticalsysadmin.com/templated-nginx-configuration-with-bash-and-docker/
ENV LISTEN_PORT=80 \
NGINX_ENV=production \
SERVER_NAME=_ \
RESOLVER=8.8.8.8 \
UPSTREAM_API=api:3000 \
UPSTREAM_API_PROTO=http \
WORKDIR=/www \
@ezhov-da
ezhov-da / gist:396bc36d0860bc18ec2d68cd9a4344ff
Created October 9, 2021 20:53 — forked from cjaoude/gist:fd9910626629b53c4d25
Test list of Valid and Invalid Email addresses
Use: for testing against email regex
ref: http://codefool.tumblr.com/post/15288874550/list-of-valid-and-invalid-email-addresses
List of Valid Email Addresses
email@example.com
firstname.lastname@example.com
email@subdomain.example.com
firstname+lastname@example.com
Win + G