Skip to content

Instantly share code, notes, and snippets.

View liberlanco's full-sized avatar

Artem Alimov liberlanco

  • Nexenta by DDN
View GitHub Profile
# Prototype for new worker.json enabled: flag.
# https://jira.tegile.com/browse/FIR-698
# Currently it's simple: true/false
# With this implementation it will be something complex.
# It could be old true/false value
# But also some list of complex rules
# Rules is an array. They are processed one by one:
import Controller from '@ember/controller';
import { tracked } from '@glimmer/tracking';
import { action } from '@ember/object';
export default class ApplicationController extends Controller {
appName = 'test';
@tracked v1 = 1;
get computed() {
console.log("Computed called!");
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { action } from '@ember/object';
export default class extends Component {
@tracked value = '';
@tracked counter = 0;
@action submit() {
this.counter += 1;
@liberlanco
liberlanco / run-all-mint-tests.sh
Created March 16, 2020 12:56 — forked from antonfisher/run-all-mint-tests.sh
Run all minio/mint tests and do not fail on first failed test case
# by defailt mint tests fail on the first failed test case, to change it follow these steps:
git clone [email protected]:minio/minio.git
cd minio/mint
vim mint.sh +194 # comment "break" on string 194 to run all the tests and don't stop on the first fail
docker build --no-cache -t minio/mint:local . -f Dockerfile.dev
docker run \
--name mint \
--rm \
-it \
-e SERVER_ENDPOINT=10.3.199.254:9000 \
@liberlanco
liberlanco / add-test-options.diff
Created March 16, 2020 12:56 — forked from antonfisher/add-test-options.diff
Add BAIL and TEST_ONLY options to minio/mint tests runner
diff --git a/mint/mint.sh b/mint/mint.sh
index 5d9e997..952dc16 100755
--- a/mint/mint.sh
+++ b/mint/mint.sh
@@ -139,6 +139,7 @@ function main()
export ENABLE_VIRTUAL_STYLE
export GO111MODULE
export GOPROXY
+ export BAIL
@liberlanco
liberlanco / s3-test-mc.sh
Created March 16, 2020 12:56 — forked from antonfisher/s3-test-mc.sh
Simple S3 test using minio/mc client
#!/usr/bin/env bash
# setup:
# $ mkdir -p /tmp/s3 && cd /tmp/s3
# $ ~/js/nexenta/nef.extra/mc/test.sh 2>&1 | grep --color -E "^\+.+$|$"
set -x;
#set -e;
HOST="1.1.1.1:9000"
@liberlanco
liberlanco / s3-test-s3cmd.sh
Created March 16, 2020 12:56 — forked from antonfisher/s3-test-s3cmd.sh
Simple S3 test using s3cmd client
#!/usr/bin/env bash
# setup:
# $ mkdir -p /tmp/s3 && cd /tmp/s3
# $ ~/js/nexenta/nef/test.sh 2>&1 | grep --color -E "^\+.+$|$"
set -x;
#set -e;
HOST="1.1.1.1:9000"