Skip to content

Instantly share code, notes, and snippets.

View lex111's full-sized avatar
🇺🇦
Stand with Ukraine

Alexey Pyltsyn lex111

🇺🇦
Stand with Ukraine
View GitHub Profile
@swalkinshaw
swalkinshaw / tutorial.md
Last active October 24, 2025 14:52
Designing a GraphQL API
@patrickmaciel
patrickmaciel / phpinstall.sh
Last active February 23, 2023 15:57
PHP 7.4 Install Ubuntu 22.04 #php #apt #php #ubuntu
#!/bin/sh
# This command and the ppa and auto apt-get update after that
sudo env LC_ALL=C.UTF-8 add-apt-repository --yes ppa:ondrej/php
# Install PHP 7.2 and the most common extesions
sudo apt-get install php7.4-fpm php7.4-common php7.4-dev php7.4-curl php7.4-gd php7.4-json php7.4-mysql php7.4-odbc php7.4-pgsql php7.4-pspell php7.4-readline php7.4-sqlite3 php7.4-tidy php7.4-xml php7.4-xmlrpc php7.4-bcmath php7.4-bz2 php7.4-intl php7.4-mbstring php7.4-phpdbg php7.4-soap php7.4-zip php-imagick php-redis php-memcached
#! /bin/bash
NAME="Dean Hyde"
EMAIL="[email protected]"
DEV_TOOLS="php7.2 php7.2-mbstring git-core curl httpie vim unzip virtualbox"
# Helper functions
function title() {
echo -e "\e[92m${1}\e[0m"
}
@scriptburn
scriptburn / setup.sh
Last active February 18, 2020 13:57
Install php7.2 apache2 mysql pgsql debian 9
#!/usr/bin/env bash
cecho() {
declare -A colors
colors=(
['black']='\E[0;47m'
['red']='\E[0;31m'
['green']='\E[0;32m'
['yellow']='\E[0;33m'
#!/bin/bash
##########################################
# System install script for ubuntu 18.04 #
##########################################
### Google-chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update
#!/bin/bash
### FUNCTIONS ###
# Ask the user a simple yes/no question. Any response other than yes (no case)
# will lead to a negative answer
confirm() {
# Call this function with a prompt string (without y/N) or use the default
# prompt "Are you sure?"
@RafikFarhad
RafikFarhad / lemp_setup.sh
Created April 28, 2018 20:54
LEMP Stack for Ubuntu 18.04
#!/bin/bash
GREEN='\033[0;32m'
CYAN='\033[0;36m'
NC='\033[0m'
echo "${CYAN}Welcome to Easy LEMP Stack Setup${NC}"
echo "${CYAN}Ubuntu 18.04 Supported${NC}"
echo "${GREEN}Created By SUST CSE Developer Network (SCDN)\n${NC}"
echo "${GREEN}Maintained By Rafik Farhad\n${NC}"
@butschster
butschster / debian-laravel.sh
Last active April 17, 2025 07:16
LEMP server configured for Laravel (MySQL, NGINX, php7.2-fpm, Redis, Websocket server, MongoDB, Composer)
# ================================================
# PHP 7.2
#
# See https://www.colinodell.com/blog/201711/installing-php-72
# ================================================
apt-get install -y apt-transport-https lsb-release ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list
apt-get update
apt-get install -y php7.2-cli php7.2-gd php7.2-mbstring php7.2-curl php7.2-xml php7.2-zip
# ubuntu.daniguardiola.me - start
# fix for yarn global path
export PATH="$(yarn global bin):$PATH"
# fix ~/.local/bin path
export PATH="$HOME/.local/bin:$PATH"
# put android sdk tools on path