Skip to content

Instantly share code, notes, and snippets.

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

Romualdas RomkaLTU

🏠
Working from home
View GitHub Profile
@RomkaLTU
RomkaLTU / index.html
Created June 26, 2021 13:04
AlpineJS Grid filtering with transitions
<div x-data="filter" class="h-screen flex flex-col items-center mt-8">
<ul class="-mx-5 flex flex-wrap justify-center space-x-8 text-14px font-josefin font-bold text-gray-2">
<li><a href="#" @click.prevent="selectColor()" class="text-gray-500">All</a></li>
<li><a href="#" @click.prevent="selectColor('red')" class="text-red-500">Red</a></li>
<li><a href="#" @click.prevent="selectColor('blue')" class="text-blue-500">Blue</a></li>
<li><a href="#" @click.prevent="selectColor('green')" class="text-green-500">Green</a></li>
</ul>
<div class="mt-8 max-w-md">
<ul class="sm:grid sm:grid-cols-2 sm:gap-x-6 sm:gap-y-4 sm:space-y-0 lg:grid-cols-3 lg:gap-x-4">
<template x-for="color in colors">
<?php
/**
* Checkout Form
*
* This template can be overridden by copying it to yourtheme/woocommerce/checkout/form-checkout.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Terminų valdymo sistema - UAB Ekometrija</title>
<link href="https://terms.srv1.single5.com/css/tailwind.css" rel="stylesheet" type="text/css">
<style>
body {
font-family: DejaVu Sans, sans-serif;
#!/bin/bash
error() {
printf '\E[31m'; echo "$@"; printf '\E[0m'
}
if [[ $EUID > 0 ]]; then
error "Run as root!"
exit 1
fi
@RomkaLTU
RomkaLTU / apache_2.4_PHP-FPM_multiple_versions
Last active July 23, 2018 13:45
Apache 2.4 + PHP-FPM multiple versions
Change x to match your PHP version
- apt install apache2
- systemctl start apache2.service
- systemctl enable apache2.service
- add-apt-repository ppa:ondrej/php
- apt update && apt upgrade -y
- apt-get install imagemagick
- apt install php7.2 php7.2-fpm php7.2-common php7.2-xml php7.2-mbstring php7.2-gd php7.2-imagick php7.2-curl php7.2-mysql php7.2-bcmath -y
@RomkaLTU
RomkaLTU / nginx_proxy_http2_centos7.txt
Last active July 24, 2018 19:08
Nginx as Proxy + http/2 on CentOS 7
yum install epel-release wget nano mc libtool perl-core zlib-devel yum-utils
yum group install “Development tools”
wget https://zlib.net/zlib-1.2.11.tar.gz
wget http://nginx.org/download/nginx-1.14.0.tar.gz
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.42.tar.gz
tar -xzvf nginx-1.14.0.tar.gz
tar -xzvf pcre-8.42.tar.gz
tar -xzvf zlib-1.2.11.tar.gz