Skip to content

Instantly share code, notes, and snippets.

View 4unkur's full-sized avatar
🇰🇬
"Patrick"

Daiyrbek Artelov 4unkur

🇰🇬
"Patrick"
View GitHub Profile
function c {
git add --all
git commit -m $1
}
function p {
git add --all
git commit -m $1
@4unkur
4unkur / apache-nginx-ftp
Created June 9, 2021 07:24 — forked from solancer/apache-nginx-ftp
Correct permissions for /var/www/html
// Adding current user to www-data
sudo adduser $USER www-data
//change ownership to user:www-data and
sudo chown $USER:www-data -R /var/www/html
sudo chmod u=rwX,g=srX,o=rX -R /var/www/html
// change file permissions of existing files and folders to 755/644
sudo find /var/www/html -type d -exec chmod g=rwxs "{}" \;
@4unkur
4unkur / BlogController.php
Created March 29, 2016 14:24 — forked from tobysteward/BlogController.php
Laravel AJAX Pagination with JQuery
<?php
class BlogController extends Controller
{
/**
* Posts
*
* @return void
*/
public function showPosts()
@4unkur
4unkur / _ide_helper.php
Created January 14, 2016 14:55 — forked from barryvdh/_ide_helper.php
Laravel IDE Helper for Netbeans / PhpStorm / Sublime Text 2 CodeIntel, generated using https://github.com/barryvdh/laravel-ide-helper
<?php
/**
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.1.1 (LTS) on 2015-06-11.
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {