- Create an hetzner server using Ubuntu
- Go to the Hetzner's Server dashboard > Images
- Click on "Mount" over the
alpine-linux-extended.iso
image - Shutdown the server
- Start the server
- Click the "Console" icon from the dashboard to open an interactive terminal session
- Login is
root
- Configure the interface using the command
setup-interfaces
- Pick to setup default
eth0
- Custom config:
no
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
/** | |
* @usage: | |
* | |
* <RadioBox label="Foo" value="foo" v-model="MySelectedValue" /> | |
* <RadioBox label="Bar" value="bar" v-model="MySelectedValue" /> | |
* <RadioBox label="Baz" value="baz" v-model="MySelectedValue" /> | |
* | |
* data(){ | |
* return { | |
* MySelectedValue: "", |
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
/** | |
* @usage: | |
* | |
* <CheckBox label="Foo" value="foo" v-model="MySelectedValues" /> | |
* <CheckBox label="Bar" value="bar" v-model="MySelectedValues" /> | |
* <CheckBox label="Baz" value="baz" v-model="MySelectedValues" /> | |
* | |
* data(){ | |
* return { | |
* MySelectedValues: [], |
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
const BlobToBase64 = function(blob){ | |
let blobUrl = URL.createObjectURL(blob); | |
return new Promise((resolve, reject) => { | |
let img = new Image(); | |
img.onload = () => resolve(img); | |
img.onerror = err => reject(err); | |
img.src = blobUrl; | |
}).then(img => { | |
URL.revokeObjectURL(blobUrl); |
Find original instructions for your linux flavor here: (https://snapcraft.io/docs/installing-snapd)[https://snapcraft.io/docs/installing-snapd].
For ubuntu 18.04:
sudo apt install snapd
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
# Macros | |
ALL = program1 program2 program3 | |
SRCDIR = src/ | |
BINDIR = bin/ | |
EXT = cpp | |
CXX = g++ | |
CXXFLAGS = -std=c++14 -O3 -Wall -Wextra |
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
async function readlines(stream, callback, buffer_len = 16) { | |
const reader = stream.getReader() | |
const td = new TextDecoder('ascii') | |
let overflow = null | |
let buffer = [] | |
function flush_buffer() { | |
for (let b of buffer) { | |
callback(td.decode(b)) | |
} |
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
/** | |
* @usage: | |
* | |
* <ToggleSwitch :trueFalseLabels="['On','Off']" :trueFalseColors="['#1CD4A7','#ccc']" v-model="isOn" /> | |
* | |
* data() { | |
* return { | |
* isOn: false | |
* } | |
* } |
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
function CSVToMatrix(csv,delimiter){ | |
let matrix = []; | |
csv.split('\n').map( l => { l.trim() == "" ? 0 : matrix.push(l.trim().split(delimiter).map(v=>v.trim())) }) | |
return matrix | |
} | |
function MatrixToJSON(matrix,from,to){ | |
let jsonResult = []; from = from||0; | |
matrix.map((a,i) => { | |
let obj = Object.assign({}, ...matrix[0].map((h, index) => ({[h]: matrix[i][index]}))) |
NewerOlder