Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View ch3ll0v3k's full-sized avatar

Timoschenko Viacheslau ch3ll0v3k

View GitHub Profile
@ch3ll0v3k
ch3ll0v3k / SQL Cheat Sheet.md
Created July 28, 2023 07:16 — forked from janikvonrotz/SQL Cheat Sheet.md
SQL Cheat Sheet#SQL#Markdown

SQL languages

DDL is short name of Data Definition Language, which deals with database schemas and descriptions, of how the data should reside in the database.

DML is short name of Data Manipulation Language which deals with data manipulation, and includes most common SQL statements such SELECT, INSERT, UPDATE, DELETE etc, and it is used to store, modify, retrieve, delete and update data in database.

DCL is short name of Data Control Language which includes commands such as GRANT, and mostly concerned with rights, permissions and other controls of the database system.

Datatypes

Text types

<template>
<div class="m-4 max-w-lg rounded overflow-hidden shadow-lg bg-white">
<div class="p-4 max-w-xl" v-if="!connected" :key="updateModal">
<h2 class="text-xl pb-9">Select one of the bellow options to perform a cryptocurrency transation via the ethereum test network.</h2>
<div class="flex space-x-4">
<button @click="checkWalletConnected" class="py-2 px-8 rounded button-custom flex"><img src="@/assets/logos/metamask-logo.png" class="w-6 mr-3" alt=""> Metamask</button>
<button class="py-2 px-8 rounded button-custom disabled-custom flex"><img src="@/assets/logos/coinbase-logo.svg" class="w-6 mr-3" alt=""> Coinbase wallet</button>
</div>
</div>
@ch3ll0v3k
ch3ll0v3k / TexturedMeshSteps.md
Created October 25, 2022 17:13 — forked from shubhamwagh/TexturedMeshSteps.md
Steps to create textured mesh from point cloud using Meshlab

Steps to create Textured Mesh from Point Cloud using Meshlab

Get your PointCloud into MeshLab

  • Import the pointcloud file in ".ply" file format in Meshlab. Before importing make sure you do some pre-processing / cleaning on point cloud so as to ease the process of meshing.

Point Cloud Simplification and Normals Computation

  • Next we need to reduce the number of point samples for smooth meshing.
    • So go to Filters -> Point Set -> Point Cloud Simplification. Enter Number of samples circa 5% of original number of points. Make sure Best Sample Heuristic is checked.
  • After point cloud simplification, make sure to select Simplified point cloud in the Show Layer Dialog on the right hand side. If not visible, it can be opened by navigating to View -> Show Layer Dialog. Now we need to compute normals for point set.
  • So go to Filters -> Point Set -> Compute normals for point sets . Enter Neighbour num between 10 - 100. Initially try with 10 and
@ch3ll0v3k
ch3ll0v3k / reduce_faces.py
Created October 24, 2022 16:51 — forked from tylerlindell/reduce_faces.py
script for reducing faces programmatically with Meshlab's api
#!/usr/bin/env python
import sys
import os
import subprocess
# Script taken from doing the needed operation
# (Filters > Remeshing, Simplification and Reconstruction >
# Quadric Edge Collapse Decimation, with parameters:
# 0.9 percentage reduction (10%), 0.3 Quality threshold (70%)
@ch3ll0v3k
ch3ll0v3k / reduce_faces.py
Created October 24, 2022 16:51 — forked from awesomebytes/reduce_faces.py
Executing meshlab from commandline reduce faces of a mesh iteratively
#!/usr/bin/env python
import sys
import os
import subprocess
# Script taken from doing the needed operation
# (Filters > Remeshing, Simplification and Reconstruction >
# Quadric Edge Collapse Decimation, with parameters:
# 0.9 percentage reduction (10%), 0.3 Quality threshold (70%)
@ch3ll0v3k
ch3ll0v3k / 14ACN6-tlp1.4.md
Created October 23, 2022 01:03 — forked from stavros-k/14ACN6-tlp1.4.md
TLP 1.4 Test: Battery Care for Lenovo IdeaPad 5 Pro (AMD) 14'' Gen 6

SYSTEM

LENOVO IdeaPad 5 Pro 14ACN6 82L7

Enable conservation

Edit /etc/tlp.conf

~$ cat /etc/tlp.conf | grep STOP_CHARGE_THRESH_BAT0
STOP_CHARGE_THRESH_BAT0="1"
@ch3ll0v3k
ch3ll0v3k / .env
Created May 19, 2022 08:43 — forked from BlockmanCodes/.env
Get spot prices on Uniswap
INFURA_URL=<your_url>
ETHERSCAN_API_KEY=<your_api_key>
/*
MPU6050 Triple Axis Gyroscope & Accelerometer. Simple Accelerometer Example.
Read more: http://www.jarzebski.pl/arduino/czujniki-i-sensory/3-osiowy-zyroskop-i-akcelerometr-mpu6050.html
GIT: https://github.com/jarzebski/Arduino-MPU6050
Web: http://www.jarzebski.pl
(c) 2014 by Korneliusz Jarzebski
*/
#include <Wire.h>
#include <MPU6050.h>
@ch3ll0v3k
ch3ll0v3k / README.md
Created July 21, 2020 09:37 — forked from mrbar42/README.md
Secured HLS setup with Nginx as media server

Secured HLS setup with Nginx as media server

This example is part of this article.

This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:

  • Domain filtering
  • Referrer filtering
  • Embed buster