Skip to content

Instantly share code, notes, and snippets.

View mikizdr's full-sized avatar

Мирослав Здравковић mikizdr

View GitHub Profile
@mikizdr
mikizdr / .htaccess
Created March 15, 2022 13:41
Change PHP version in .htaccess
<FilesMatch \.php$>
SetHandler "proxy:unix:/run/php/php7.4-fpm.sock|fcgi://localhost"
</FilesMatch>
@mikizdr
mikizdr / aliases.sh
Last active November 20, 2023 19:41
Short command aliases for git bach
# Some good standards, which are not used if the user
# creates his/her own .bashrc/.bash_profile
# --show-control-chars: help showing Korean or accented characters
alias ls='ls -F --color=auto --show-control-chars'
alias ll='ls -l'
# ----------------------
# Laravel artisan commands
# ----------------------
@mikizdr
mikizdr / set-upstream.txt
Created April 17, 2017 16:51
Make an existing git branch to track a remote branch
// if you are on local master branch
git branch --set-upstream-to=origin/master
// if you are on the local branch local_branch
git branch --set-upstream-to=origin/master local_branch
@mikizdr
mikizdr / 0_reuse_code.js
Created April 17, 2017 09:28
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Bootstrap 101 Template</title>
<!-- Bootstrap from CDN -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Page Title</title>
</head>
<body>