Skip to content

Instantly share code, notes, and snippets.

View harini-ua's full-sized avatar
🏠
Working from home

Sergey Harini harini-ua

🏠
Working from home
View GitHub Profile
@BenSampo
BenSampo / deploy.sh
Last active July 16, 2024 07:53
Laravel deploy script
# Change to the project directory
cd $FORGE_SITE_PATH
# Turn on maintenance mode
php artisan down || true
# Pull the latest changes from the git repository
# git reset --hard
# git clean -df
git pull origin $FORGE_SITE_BRANCH
@tithonium
tithonium / .aliases
Created August 11, 2017 17:30
Aliases
alias ..="cd .."
alias cd..="cd .."
edit() {
$EDITOR $*
}
alias ff="find . -type f | grep -vF .git | grep -vF .DS_Store | grep -vF .keep | grep -vF /node_modules/"
alias faf="find . -type f"
alias fd="find . -type d | grep -vF .git"
@lukrizal
lukrizal / all.sh
Last active September 19, 2019 10:39
#!/bin/bash
echo "Downloading GetDeb and PlayDeb" &&
wget http://archive.getdeb.net/install_deb/getdeb-repository_0.1-1~getdeb1_all.deb http://archive.getdeb.net/install_deb/playdeb_0.3-1~getdeb1_all.deb
echo "Installing GetDeb" &&
sudo dpkg -i getdeb-repository_0.1-1~getdeb1_all.deb
echo "Installing PlayDeb" &&
sudo dpkg -i playdeb_0.3-1~getdeb1_all.deb &&
@f3l1x
f3l1x / aliases
Last active January 29, 2024 19:21
Docker - installation, tips, commands, aliases
# ------------------------------------
# Docker alias and function
# ------------------------------------
# Get latest container ID
alias dl="docker ps -l -q"
# Get container process
alias dps="docker ps"
@msurguy
msurguy / List.md
Last active April 30, 2024 15:14
List of open source projects made with Laravel

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):

@anaspk
anaspk / yii-rbac-tables-migration.php
Last active January 3, 2016 18:09
A Yii migration to create RBAC tables in the currently configured database.
<?php
class m140108_152635_create_rbac_tables extends CDbMigration {
public function up() {
$this->createTable('AuthItem', array(
'name' => 'string NOT NULL',
'type' => 'integer NOT NULL',
'description' => 'text',
'bizrule' => 'text',
@akuzemchak
akuzemchak / DeployCommand.php
Created July 8, 2013 17:20
Basic Laravel deployment script
<?php
// app/commands/DeployCommand.php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class DeployCommand extends Command
{
@ogrrd
ogrrd / dnsmasq OS X.md
Last active July 22, 2024 08:36
Setup dnsmasq on OS X

Never touch your local /etc/hosts file in OS X again

To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.

Requirements

Install