Skip to content

Instantly share code, notes, and snippets.

View gintsgints's full-sized avatar
🏠
Working from home

Gints gintsgints

🏠
Working from home
  • Balcia SIA
  • Riga, Latvia.
View GitHub Profile

NanoPI setup instructions

Login to your new installed NanoPI with username pi password pi.

ssh pi@node1
# use same password - pi

Then continue with setup:

Nano PI Kubernetes install

Nano PI as base

http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO2#UbuntuCore_16.04

Follow instructions to download image - nanopi-neo2_sd_friendlycore-xenial_4.14_arm64_20181011.img

Write it to SD card (8 GB Min) with Win32 disk imager and put it into NanoPi. Connect to network, boot up and login with root/fa

I do not like root with known password

How to connect Linux (CentOS) host as Docker machine

Configure buildmachine to access host

At remote machine create gitlab-runner user.

sudo useradd gitlab-runner
sudo passwd gitlab-runner

Nano PI Kubernetes install

Nano PI as base

http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO2#UbuntuCore_16.04

Follow instructions to download image - nanopi-neo2_sd_friendlycore-xenial_4.14_arm64_20181011.img

Write it to SD card (8 GB Min) with Win32 disk imager and put it into NanoPi. Connect to network, boot up and login with root/fa

I do not like root with known password

Prepeare

Create user:

sudo adduser username

Add user to ssh users

SELECT "Task".* FROM (
(
select * from ( SELECT "id", "title", "createdAt", "updatedAt", "UserId"
FROM "Tasks" "Task"
WHERE "Task"."UserId" = 2 AND ROWNUM <= 2
ORDER BY "Task"."title") ) UNION ALL (
select * from ( SELECT "id", "title", "createdAt", "updatedAt", "UserId"
FROM "Tasks" "Task"
WHERE "Task"."UserId" = 2 AND ROWNUM <= 2
ORDER BY "Task"."title") )
@gintsgints
gintsgints / gist:704ba90cdbdd5a92ac4e
Created August 23, 2015 16:43
This is how Typescript generate supper call
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
var Person = (function () {
function Person(name, age) {
this.name = name;
this.age = age;