Open an ssl connection to site
openssl s_client -connect client-cert-missing.badssl.com:443
returns
.
.
.
---
| -- Find sum of value from an parent recursively | |
| with recursive head_balance(id, name, value, parent_id) as ( | |
| select id, name, value, parent_id from chart_of_account | |
| where id = 1 | |
| union | |
| select t1.id, t1.name, t1.value, t1.parent_id | |
| from chart_of_account as t1 | |
| join head_balance as t2 |
Open an ssl connection to site
openssl s_client -connect client-cert-missing.badssl.com:443
returns
.
.
.
---
| module.exports = { | |
| apps: [{ | |
| script: "node_modules/next/dist/bin/next", | |
| args: "start", | |
| exec_mode: "cluster", | |
| instances: "max", | |
| name: "ovi-app" | |
| }] | |
| } |
When backing up an entire microservices architecture, it is not possible to have both availability and consistency.
| // For Checking The amount of space occupied by schema | |
| select | |
| sum(bytes)/1024/1024 as size_in_mega, owner | |
| from | |
| dba_segments | |
| where owner = '<owner_name>' | |
| group by owner; |
| const b64toBlob = (b64Data, contentType = '', sliceSize = 512) => { | |
| const byteCharacters = atob(b64Data); | |
| const byteArrays = []; | |
| for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) { | |
| const slice = byteCharacters.slice(offset, offset + sliceSize); | |
| const byteNumbers = new Array(slice.length); | |
| for (let i = 0; i < slice.length; i++) { | |
| byteNumbers[i] = slice.charCodeAt(i); |
| import java.util.ArrayList; | |
| // Implementing runnable interface using WorkerThread Class | |
| // this example will sum up upto n values | |
| class WorkerThread implements Runnable { | |
| private Thread th; // Thread class reference (will be work as worker) | |
| private String name; | |
| private int startNum; | |
| private int end; |
| #!/usr/bin/env python | |
| # coding: utf-8 | |
| # In[2]: | |
| import pandas as pd | |
| import numpy as np | |
| import seaborn as sns |
| import React from 'react'; | |
| import Camera from './components/Camera'; | |
| class App extends React.Component { | |
| state = { | |
| showCamera: false | |
| } | |
| import face_recognition | |
| import cv2 | |
| import numpy as np | |
| def show_image(image): | |
| cv2.imshow("Image", cv2.cvtColor(image, cv2.COLOR_BGR2RGB)) | |
| cv2.waitKey(0) | |
| # Load a sample picture and learn how to recognize it. | |
| image = face_recognition.load_image_file("ovi4.jpg") |