Skip to content

Instantly share code, notes, and snippets.

View andriilive's full-sized avatar
👔
Open for hire

Andrii Iv. (@digitalandyeu) andriilive

👔
Open for hire
View GitHub Profile
@andriilive
andriilive / NOTES.md
Last active February 24, 2025 06:15
WooCommerce: setting product attributes and generating variations programmaticaly
@andriilive
andriilive / README.md
Last active February 26, 2025 22:16
Full-stack interview cheatsheet 2025 (React / TS)
@andriilive
andriilive / CatchAllPage.tsx
Created December 20, 2024 23:04
Next CatchAllPage bypassing static export errors
import type { Params } from 'next/dist/server/request/params'
import type { SearchParams } from 'next/dist/server/request/search-params'
import { cookies, headers } from 'next/headers'
import { CodeBlock } from '@/components/development'
export function generateStaticParams() {
return [{ path: ['path'] }]
}
export default async function CatchAllPage(
@andriilive
andriilive / README.md
Last active September 22, 2024 10:32
Warp dark theme

Warp term m1_dark_theme

StandWithUkraine

Download theme files and copy them to ~/.warp/themes location

CleanShot 2024-09-22 at 12 31 15@2x

The background image:

@andriilive
andriilive / README.md
Last active October 4, 2024 14:07
Self-hosted next.js on VPS: caddy & pm2 setup

Self-hosted next.js on VPS: caddy & pm2 setup

StandWithUkraine

Guide on simpliest ever self-hosted next.js on VPS configuration. Designed to run on a really weak hardware.

  • Auto HTTPS & certificates renewal with caddy
  • Production-ready aplication run process management with pm2
  • Go live in 5 minutes
@andriilive
andriilive / README.md
Last active September 22, 2024 05:20
Self-hosted with EasyPanel Next.js in Docker
@andriilive
andriilive / .bashrc
Last active September 6, 2024 02:55
BASH CONFIG
# ~/.bashrc: executed by bash(1) for non-login shells, see /usr/share/doc/bash/examples/startup-files
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# LOADS COMMON BASH ENV
[ -s "$HOME/.bashrc/0_common.sh" ] && \. "$HOME/.bashrc/0_common.sh"
# LOADS ENVIORMENT VARS IF PRESENTED
if [ -f "$HOME/.env" ]; then
@andriilive
andriilive / digitalocean-invoces.sh
Created August 21, 2024 03:47
Digitalocean CLI Download Invoices
counter=1
for invoice_id in $(doctl invoice list --format="Invoice UUID" --no-header); do
doctl invoice csv $invoice_id "${counter}__${invoice_id}.csv"
counter=$((counter + 1))
done
@andriilive
andriilive / REAMDE.md
Last active September 22, 2024 00:47
Renamer 7 MacOs app trial reset

Renamer 7 OSX app trial reset

StandWithUkraine

CleanShot 2024-08-15 at 21 25 26

com.incrediblebee.Renamer trial reset (tested up to 7.0.19)

Script