Skip to content

Instantly share code, notes, and snippets.

@release-please
release-please / download_neovim.sh
Created December 15, 2024 13:37
neovim latest wersion
#!/bin/bash
REPO_NAME="neovim/neovim"
PACKAGE_NAME="nvim-linux64.tar.gz"
LATEST_RELEASE_VERSION=$(curl --silent "https://api.github.com/repos/$REPO_NAME/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
wget https://github.com/$REPO_NAME/releases/download/$LATEST_RELEASE_VERSION/$PACKAGE_NAME
@release-please
release-please / intall_meslo_fonts.sh
Last active April 25, 2024 17:12 — forked from incogbyte/fonts.sh
Install Meslo Fonts Ubuntu Linux Mint and debians
#!/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.

How to shrink existed partition with ext4 file system AND encrypt the new one with LUKS

  1. As far as I know we should resize both: file system (ext4) AND partition:
  • install partition resizer parted: sudo pacman -S parted
  • if you're shrinking /home partition you should logout first, login as root and umount /home partition: umount /home
  • how it looks right now:
[mezlogo@virtarch ~]$ sudo fdisk -l /dev/sda
Disk /dev/sda: 8 GiB, 8589934592 bytes, 16777216 sectors
Disk model: VBOX HARDDISK
@release-please
release-please / Jest_GitLab_CI.md
Created November 9, 2021 08:48 — forked from rishitells/Jest_GitLab_CI.md
Setting up Jest tests and coverage in GitLab CI

Configuring Jest Tests in GitLab CI

1. Add GitLab CI configuration file in the root

In the root of your project, add .gitlab-ci.yml with the configuration below.

image: node:latest

stages:
/*
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
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
margin -1px;
border: 0;
padding: 0;
clip: rect(0 0 0 0);
overflow: hidden;
}
@release-please
release-please / font-weight.txt
Created August 27, 2018 08:14
CSS font-weight
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
/**
* 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){
@release-please
release-please / Dockerfile
Created January 27, 2018 17:52
Docker image: php + apache + postrgess connect
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
@release-please
release-please / StyleLinksDependingOnDestination.css
Created July 12, 2017 07:41
Style Links Depending on Destination
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 */