In the root of your project, add .gitlab-ci.yml
with the configuration below.
image: node:latest
stages:
let check = function(strings, ...values) { | |
console.log(strings, values); | |
if (values[0] < 24) { | |
values[1] = 'awake'; | |
} | |
return `${strings[0]}${values[0]}${strings[1]}${values[1]}`; | |
}; | |
let message = check`Its ${new Date().getHours()} and Im ${'sleepy'}`; |
a[href^="http://"] { | |
/* fully valid URL, likely external link */ | |
} | |
a[href="http://google.com"] { | |
/* link to specific website */ | |
} | |
a[href^="/"], a[href^=".."] { | |
/* internal relative link */ |
FROM php:7-apache | |
RUN apt-get update | |
# Install Postgre PDO | |
RUN apt-get install -y libpq-dev \ | |
&& docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \ | |
&& docker-php-ext-install pdo pdo_pgsql pgsql |
/** | |
* declOfNum(['промо-код','промо-кода','промо-кодов'], 1) - промо-код | |
* declOfNum(['промо-код','промо-кода','промо-кодов'], 2) - промо-кода | |
* declOfNum(['промо-код','промо-кода','промо-кодов'], 5) - промо-кодов | |
* | |
* @return {string} { text of count } | |
*/ | |
export const declOfNum = (function(){ | |
let cases = [2, 0, 1, 1, 1, 2]; | |
let declOfNumSubFunction = function(titles, number){ |
100 - Extra Light or Ultra Light | |
200 - Light or Thin | |
300 - Book or Demi | |
400 - Normal or Regular | |
500 - Medium | |
600 - Semiblod or Demibold | |
700 - Bold | |
800 - Black, Extra Bold or Heavy | |
900 - Extra Black, Fat, Poster or Ultra Black |
/* | |
The MIT License (MIT) | |
Copyright (c) 2014 Ismael Celis | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
parted
: sudo pacman -S parted
/home
partition you should logout first, login as root and umount /home
partition: umount /home
[mezlogo@virtarch ~]$ sudo fdisk -l /dev/sda
Disk /dev/sda: 8 GiB, 8589934592 bytes, 16777216 sectors
Disk model: VBOX HARDDISK
#!/bin/bash | |
REPO_NAME="ryanoasis/nerd-fonts" | |
LATEST_RELEASE_VERSION=$(curl --silent "https://api.github.com/repos/$REPO_NAME/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') | |
sudo apt install fontconfig | |
cd ~ | |
wget https://github.com/$REPO_NAME/releases/download/$LATEST_RELEASE_VERSION/Meslo.zip | |
mkdir -p .local/share/fonts | |
# -o overwrite existing files without prompting. |