This file contains 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
// https://github.com/sidorares/node-mysql2/issues/677 | |
const mysql = require("mysql2/promise"); | |
const stream = require("stream"); | |
const dbconn = mysql.createPool({ | |
connectionLimit: 10, | |
host: "127.0.0.1", | |
user: "user", | |
password: "password", | |
database: "database", |
This file contains 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
@ApiProperty({ type: [Number] }) | |
@ArrayMinSize(2) | |
@ArrayMaxSize(2) | |
@Type(() => Number) | |
@IsArray() | |
@IsNumber({}, { each: true }) | |
public entityIds: number[]; |
This file contains 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
with whmcs as (select distinct datas.* | |
from temp_segment, | |
json_to_recordset(temp_segment.data::json) | |
as datas(user_id bigint, | |
service_id bigint, | |
tunnel character varying, | |
segment_sync_id character varying) | |
where segment_sync_id = '19fe2cf3-1967-4f27-be5a-3d3753b56ae2'), | |
swsdk as (select distinct datas.* | |
from temp_segment, |
This file contains 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
for repo in $(curl -s --header "PRIVATE-TOKEN: *PRIVATE_TOKEN_FROM_GITLAB*" https://*HOST*/api/v4/groups/*GROUPID* | jq ".projects[].ssh_url_to_repo" | tr -d '"'); do git clone $repo; done; |
This file contains 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
//========For this response: | |
/* | |
{ | |
"trackingId": "11111111-22222222-3333-4444-555555555555", | |
"status": "Ok", | |
"payload": { | |
"percentile": 6666666.77777777, | |
"history": [ | |
{ | |
"ts": "2021-10-08 00:00:00", |
This file contains 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 | |
set -e | |
if [ -d ~/.local/share/JetBrains/Toolbox ]; then | |
echo "JetBrains Toolbox is already installed!" | |
exit 0 | |
fi | |
echo "Start installation..." |
This file contains 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
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy import create_engine | |
from sqlalchemy import Column, Integer, String | |
from sqlalchemy.orm import sessionmaker | |
from sqlalchemy import ForeignKey | |
from sqlalchemy.orm import relationship, backref | |
from kivy.graphics import Rectangle | |
from kivy.uix.boxlayout import BoxLayout | |
from kivy.uix.label import Label | |
from kivy.uix.widget import Widget |