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 "{}" \;
To LEARN CSS there are:
MarkSheet - http://marksheet.io/ - HTML/CSS/Sass
CSS Fundementals - https://www.jqueryuk.com/2015/videos/mdo-ular-css - Conference Talk from Bootstrap creator
CSS Layout Basics - http://www.dontfeartheinternet.com/ - CSS Tutorial
CSS Sushi - https://flukeout.github.io/ - CSS Selector game
Flexbox Game - http://flexboxgame.com/ - Interactive CSS Flexbox Tutorial
Flexbox Froggies - https://flexboxfroggy.com/ - CSS Flexbox Game
Flexbox Tower Defence - http://www.flexboxdefense.com/ - CSS Flexbox Game
CSS Grid Garden - https://cssgridgarden.com/ - CSS Grids Game
Grid By Example - https://gridbyexample.com/video - CSS Grids Video Tutorials
@4unkur
4unkur / package-changelog-gitlab-rss.php
Created July 12, 2018 06:02
Package changelog generator from GitLab's RSS feed based on milestone
<?php
// paste rss url here and run the script
$rssUrl = '';
$xml = file_get_contents($rssUrl);
$data = simplexml_load_string($xml);
$html = <<<HTML
@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 {
@4unkur
4unkur / Intelliants Add JS.xml
Last active February 10, 2017 09:39
JS syntax highlight for Intelliants' {ia_add_js} tag
<?xml version="1.0" encoding="UTF-8"?>
<LanguageInjectionConfiguration>
<injection language="JavaScript" injector-id="smarty">
<display-name>Intelliants Add JS</display-name>
<place><![CDATA[smartyTag("ia_add_js")]]></place>
</injection>
</LanguageInjectionConfiguration>