Skip to content

Instantly share code, notes, and snippets.

View adding_new_stateless_tests.md

How to add test queries to ClickHouse CI

ClickHouse has a thousands of features.

The core functionality is well tested but some corner-cases, and different combinations of features can be uncovered with our CI.

Most of the bugs/regressions we see happen in that 'grey area' where tests coverarage is poor.

And we are very interested in covering most of possible scenarios and feature combinations used by real companies by tests.

@heygema
heygema / script.py
Created Oct 19, 2020
Python watchdog observer
View script.py
#!/usr/local/bin/python3
from watchdog.observers import Observer
import time
from watchdog.events import FileSystemEventHandler
import os
import json
class MyHandler(FileSystemEventHandler):
def on_modified(self, event):
@oopcoders
oopcoders / product-list.component.ts
Created Oct 19, 2020
45. Remove product using removeOne NGRX entity adapter method
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created Oct 19, 2020
Rimworld output log published using HugsLib
View output_log.txt
Log uploaded on Monday, October 19, 2020, 3:11:06 PM
Loaded mods:
Harmony(brrainz.harmony)[mv:1.0.4.0]: 0Harmony(2.0.2), HarmonyMod(1.0.4)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Color Coded Mood Bar(PorqueNoLosDos.ColorCodedMoodBar): ClassLibrary(0.0.0)
Replace Stuff(Uuugggg.ReplaceStuff): Replace_Stuff(1.0.0)
Dubs Mint Minimap(dubwise.dubsmintminimap)[mv:1.3.688]: 0Harmony(2.0.2), DubsMintMinimap(av:1.0.0,fv:1.0.0)
Simple Search Bar(gguake.ui.simplesearchbar): 0Harmony(av:2.0.2,fv:1.2.0.2), SimpleSearchBar(1.0.0.3)
Achtung!(brrainz.achtung)[mv:3.0.8.0]: 0Harmony(2.0.2), 0MultiplayerAPI(av:0.2.0,fv:0.1.0), AchtungMod(3.0.8)
@akirasy
akirasy / rsync-backup.sh
Created Oct 19, 2020
regular backup to server
View rsync-backup.sh
#!/usr/bin/env bash
# Define vars
rsync_options="--delete --archive --info=progress2 --human-readable"
prefix_source="/home/abah"
prefix_destination="/media/abah/WD-Blue-2T/abah/desktop"
# Define color codes
endcolor="\033[0m"
red="\033[0;31m"
View chart4.json
{
"hand": "left",
"onPeriodStart": {
"thumb": 31.8,
"pointing": 15.4,
"middle": 25.4,
"ring": 10.4,
"pinky": 15.4
},
"onPeriodEnd": {
View config.yml
version: 2.1
jobs:
build:
working_directory: ~/repo
docker:
- image: circleci/node:12-browsers
steps:
- checkout
- restore_cache:
keys:
@GoranGozo
GoranGozo / create-admin-user.php
Created Oct 19, 2020 β€” forked from wpscholar/create-admin-user.php
Create a new admin user in WordPress via code. Drop this file in the mu-plugins directory and update the variables, then load a page in WordPress to create the user. Remove the file when done.
View create-admin-user.php
<?php
add_action( 'init', function () {
$username = 'admin';
$password = 'password';
$email_address = 'webmaster@mydomain.com';
if ( ! username_exists( $username ) ) {
$user_id = wp_create_user( $username, $password, $email_address );
View CplusCmoins
import random
correct = random.randint(1, 100)
essais = 1
variable = 0
print("Rentrez un nombre entre 1 et 100 :")
while variable != correct:
variable = int(input())
if variable < correct:
essais += 1
print("c'est plus")
You can’t perform that action at this time.