Skip to content

Instantly share code, notes, and snippets.

View AndrienkoAleksandr's full-sized avatar

Oleksandr Andriienko AndrienkoAleksandr

View GitHub Profile
t1=$(date +%s) && sleep 1 && t2=$(date +%s) && echo $(( t2 - t1 ))
{
// Some sample Theia tasks
"tasks": [
{
"label": "[Task] short running test task (~3s)",
"type": "shell",
"cwd": "${workspaceFolder}/packages/task/src/node/test-resources/",
"command": "./task",
"args": [
"1",
kubectl scale deploy my-awesome-deployment --replicas=0
‘yarn’ command to build Theia uses lerna.js:
https://github.com/theia-ide/theia/blob/master/scripts/lerna.js
By default lerna uses 4 threads. But You could modify this script to use less threads. Simply Change:
```
require(lernaPath);
```
To:
```
process.argv.push('--concurrency=1');
@AndrienkoAleksandr
AndrienkoAleksandr / gist:2e590968f554c0384993846000ecd950
Created December 10, 2018 15:25
Remove all untagged docker images
docker rmi $(docker images | grep "^<none>" | awk "{print $3}")
# Compile stage
FROM golang:1.10.1-alpine3.7 AS build-env
ENV CGO_ENABLED 0
ADD . /go/src/github.com/ws-skeleton/che-machine-exec
# The -gcflags "all=-N -l" flag helps us get a better debug experience
RUN go build -gcflags "all=-N -l" -o /server/che-machine-exec github.com/ws-skeleton/che-machine-exec
# Compile Delve
RUN apk add --no-cache git
@AndrienkoAleksandr
AndrienkoAleksandr / installing-node-with-nvm.md
Created January 3, 2019 08:25 — forked from d2s/installing-node-with-nvm.md
Installing Node.js for Linux & macOS with nvm
export THEIA_DEFAULT_PLUGINS=local-dir:../../plugins && theia start
{
"id": "che7-preview",
"creator": "ide",
"name": "Che 7 Theia dev",
"description": "Development Theia as IDE, CHE-Theia, Theia plugins or plugin api.",
"scope": "general",
"tags": [
"ws.next",
"Theia",
"Node.JS",
@AndrienkoAleksandr
AndrienkoAleksandr / Travis CI local install
Created February 18, 2019 13:05 — forked from jarun/Travis CI local install
How to install Travis CI locally on Ubuntu 16.04
sudo apt install ruby ruby-dev
sudo gem install travis
# install path: /var/lib/gems/