Skip to content

Instantly share code, notes, and snippets.

View createsites's full-sized avatar

Aleksandr Novoselov createsites

  • Buenos Aires
  • 05:42 (UTC -03:00)
View GitHub Profile
apt-get update && apt-get upgrade -y
apt-get install dialog apt-utils -y
apt-get install htop -y
apt-get --reinstall install bsdutils -y
apt-get install language-pack-ru -y
update-locale LANG=ru_RU.UTF-8
# php repo
apt-get install python-software-properties
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w$(git branch &>/dev/null; if [ $? -eq 0 ]; then echo " ($(git branch | grep '^*' |sed s/\*\ //))"; fi) \$\[\033[00m\] '
export LS_OPTIONS='--color=auto'
eval "`dircolors`"
alias ls='ls $LS_OPTIONS'
alias ll='ls -la'
export PATH=$PATH:/usr/sbin
# aliases for git
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
@createsites
createsites / ComposerPHPUnit.md
Created May 15, 2023 16:01 — forked from GaryRogers/ComposerPHPUnit.md
Getting Composer and PHPUnit to autoload namespaces

Getting Composer and PHPUnit to autoload namespaces.

Overview

Details

Project Structure

ProjectRoot
 src
@createsites
createsites / HorizonServiceProvider.php
Last active September 9, 2025 17:49
Horizon HTTP Basic auth
<?php
namespace App\Providers;
use Illuminate\Http\Response;
use Laravel\Horizon\Horizon;
use Laravel\Horizon\HorizonApplicationServiceProvider;
class HorizonServiceProvider extends HorizonApplicationServiceProvider
{