Skip to content

Instantly share code, notes, and snippets.

View innomatrix's full-sized avatar
💭
#lecimy....

Innomatrix innomatrix

💭
#lecimy....
View GitHub Profile
@innomatrix
innomatrix / production-web-server-setup-and-deployment-guide.md
Created January 30, 2024 07:55 — forked from journeymanavi/production-web-server-setup-and-deployment-guide.md
A runbook for setting up a Linux based secure, production web server, for serving static web content as well as deploying Node.js based web applications.
@innomatrix
innomatrix / P10k + oh-my-zsh.md
Last active January 29, 2024 08:44
P10k + oh-my-zsh
sudo apt update

sudo apt-get install fonts-powerline

sudo apt install zsh 
zsh --version
sudo chsh -s $(which zsh) $(whoami)
@innomatrix
innomatrix / Git-quick-stats.md
Last active January 23, 2024 14:01
Git-quick-stats
mkdir ~/source
cd ~/source
git clone https://github.com/arzzen/git-quick-stats.git
mkdir ~/bin
ln -s ~/source/git-quick-stats/git-quick-stats ~/bin/git-quick-stats
chmod +x ~/bin/git-quick-stats
export PATH=${PATH}:~/bin
@innomatrix
innomatrix / Calendar.php
Created December 29, 2023 09:59 — forked from nowendwell/Calendar.php
Laravel Livewire FullCalendar
<?php
namespace App\Http\Livewire;
use App\Models\Event;
use Livewire\Component;
use Illuminate\Support\Str;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Cache;
@innomatrix
innomatrix / deploy-keys.md
Last active May 8, 2023 16:57 — forked from holmberd/deploy-keys.md
Setup GitHub repository SSH deploy keys

Setup GitHub repository SSH deploy keys

  1. Create GitHub repository in github and save the SSH repository url

  2. Init git on server in code directory

  • git init
  1. Create SSH keys on the server
  • ssh-keygen -t rsa -b 4096 -C your@email.here
  • Rename the key that doesn't end with .pub to repo-name.deploy.pem
@innomatrix
innomatrix / pimcore-docker-dev.md
Last active February 21, 2023 21:42 — forked from VcodeMe/pimcore-docker-dev.md
Pimcore X - docker dev
  1. git clone https://github.com/dockerwest/compose-pimcore.git && cd compose-pimcore

  2. ./environment

  3. run up

  4. New shell window and ./environment shell

  5. create_db pimcore

PHP 8.2

sudo apt update
sudo apt install lsb-release ca-certificates apt-transport-https software-properties-common -y
sudo add-apt-repository ppa:ondrej/php

sudo apt update

sudo apt install php8.2
@innomatrix
innomatrix / area-polyfill.js
Created December 6, 2020 22:09 — forked from tnraro/area-polyfill.js
determine the area of a polygon. using shoelace formula algorithm.
Math.area = Math.area || function(polygon){
const length = polygon.length;
let sum = 0;
for(let i = 0; i < length; i += 2){
sum += polygon[i ] * polygon[(i + 3) % length]
- polygon[i + 1] * polygon[(i + 2) % length];
}
@innomatrix
innomatrix / nginx.conf
Created November 5, 2020 23:51 — forked from hernandev/nginx.conf
Vue.JS redirect history mode URL's to hash mode URL's. (Using Nginx)
server {
listen 80 default_server;
listen [::]:80 default_server;
root /web;
index index.html;
location / {
try_files $uri $uri/ @rewrites;