Skip to content

Instantly share code, notes, and snippets.

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

Serhii Pimenov olton

🏠
Working from home
View GitHub Profile
@olton
olton / metro4-template.html
Last active April 9, 2018 18:36
Metro 4 template
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<!-- Metro 4 -->
<link rel="stylesheet" href="https://cdn.metroui.org.ua/v4/css/metro-all.min.css">
</head>
@olton
olton / Metro 4 touchable carousel.html
Last active October 31, 2019 11:20
How to create touchable carousel in Metro 4
@olton
olton / Mina_Ubuntu_20.04.sh
Last active March 7, 2022 01:18
Install Mina on Ubuntu 20.04
# Create user
sudo adduser minauser
sudo usermod -aG sudo,adm,systemd-journal minauser
# Install required libs and enviroment
# Libs for Mina
cd
mkdir libs
cd libs
wget http://mirrors.kernel.org/ubuntu/pool/main/libf/libffi/libffi6_3.2.1-8_amd64.deb

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@olton
olton / letsencrypt.md
Last active July 24, 2022 07:03
Setup letsencrypt certificate

Setup SSL certificate from Let's Encrypt

Install dnsutils and certbot

sudo apt -y install dnsutils certbot

You can use command host from dnsutils to test your dns settings

@olton
olton / random_color_array.js
Created October 16, 2023 18:44 — forked from mucar/random_color_array.js
Javascript Random Color Array
var colorArray = ['#FF6633', '#FFB399', '#FF33FF', '#FFFF99', '#00B3E6',
'#E6B333', '#3366E6', '#999966', '#99FF99', '#B34D4D',
'#80B300', '#809900', '#E6B3B3', '#6680B3', '#66991A',
'#FF99E6', '#CCFF1A', '#FF1A66', '#E6331A', '#33FFCC',
'#66994D', '#B366CC', '#4D8000', '#B33300', '#CC80CC',
'#66664D', '#991AFF', '#E666FF', '#4DB3FF', '#1AB399',
'#E666B3', '#33991A', '#CC9999', '#B3B31A', '#00E680',
'#4D8066', '#809980', '#E6FF80', '#1AFF33', '#999933',
'#FF3380', '#CCCC00', '#66E64D', '#4D80CC', '#9900B3',
'#E64D66', '#4DB380', '#FF4D4D', '#99E6E6', '#6666FF'];