Skip to content

Instantly share code, notes, and snippets.

View alphaolomi's full-sized avatar
🎯
Focusing

Alpha Olomi alphaolomi

🎯
Focusing
View GitHub Profile
@dhh
dhh / linux-setup.sh
Last active July 19, 2024 07:52
linux-setup.sh
# THIS LINUX SETUP SCRIPT HAS MORPHED INTO A WHOLE PROJECT: HTTPS://OMAKUB.ORG
# PLEASE CHECKOUT THAT PROJECT INSTEAD OF THIS OUTDATED SETUP SCRIPT.
#
#
# Libraries and infrastructure
sudo apt update -y
sudo apt install -y \
docker.io docker-buildx \
build-essential pkg-config autoconf bison rustc cargo clang \
@JustSteveKing
JustSteveKing / pint.json
Last active July 20, 2024 05:13
Laravel Pint configuration
{
"preset": "per",
"rules": {
"align_multiline_comment": true,
"array_indentation": true,
"array_syntax": true,
"blank_line_after_namespace": true,
"blank_line_after_opening_tag": true,
"combine_consecutive_issets": true,
"combine_consecutive_unsets": true,
@alphaolomi
alphaolomi / index.md
Last active January 24, 2024 05:32
Quote of the Day (QOTD) Protocol

Quote of the Day

from https://www.gkbrk.com/wiki/qotd_protocol/

Tags: networking protocol

Quote of the Day is a simple protocol that is used to deliver daily quotes. Although its usage is almost nonexistent these days, there are still a few public servers. The protocol is defined by RFC 865. According to the RFC, a QOTD server is run on port 17 for TCP and UDP connections.

The RFC recommends that;

@alphaolomi
alphaolomi / sql_server.md
Last active May 31, 2023 06:59
SQL Server for Linux(Debian/Ubuntu)

SQL Server

Install the SQL Server command-line tools

  • Import the public repository GPG keys.
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
@PurpleBooth
PurpleBooth / README.md
Last active September 8, 2023 20:52
A github workflow pipeline for rust that does test, build and deploy windows, linux and mac, creates releases, and does SemVer Versioning, and releases to a homebrew tap

Features

  • Automatically bump SemVer
  • Update a personal homebrew tap
  • Keep that pesky version in the Cargo.toml up to date
  • (From dependabot) Get new versions out as soon as possible

Assumptions

  • You don't want a changelog
@jamesfulford
jamesfulford / useTime.js
Last active December 13, 2022 09:07
useTime() React hook
//
// useTime hook
//
import { useEffect, useState } from 'react';
export const useTime = (refreshCycle = 100) => {
// Returns the current time
// and queues re-renders every `refreshCycle` milliseconds (default: 100ms)
const [now, setNow] = useState(getTime());
@alphaolomi
alphaolomi / setting_up_laravel_app.md
Last active October 6, 2019 18:11 — forked from JemCdo/setting_up_laravel_app.md
How to clone and set up a laravel app

Setting up a Laravel

Using a git repository

  • Step 1: Clone repository

    git clone https://....
  • Step 2: Install required dependecies

@JemCdo
JemCdo / setting_up_laravel_app.md
Last active April 20, 2020 17:24
How to clone and set up a laravel app

Step 1: Cloning the repository

git clone https://....

Step 2: Installing all required dependecies composer install

Step 3: Creating Database on phpMyAdmin

@alphaolomi
alphaolomi / awesome_laravel.md
Last active November 10, 2022 01:44
Curated List of Awesome Laravel
@alphaolomi
alphaolomi / infyom_generator_quick.md
Created September 20, 2019 07:41
Infyom Generator

Infyom Generator

Examples

php artisan infyom:api $MODEL_NAME

php artisan infyom:scaffold $MODEL_NAME

php artisan infyom:api_scaffold $MODEL_NAME