Skip to content

Instantly share code, notes, and snippets.

View amitozdeol's full-sized avatar
🐢
Focusing

Amitoz Deol amitozdeol

🐢
Focusing
View GitHub Profile
@amitozdeol
amitozdeol / va.css
Created January 21, 2018 19:22
Vertical align
.controller{
clear: both;
display: table;
}
//Everything inside the controller is vertically aligned
.controller *{
vertical-align: middle;
}

Blog - https://medium.com/@Clovis_app/configuration-of-a-beautiful-efficient-terminal-and-prompt-on-osx-in-7-minutes-827c29391961

Configuration of a beautiful (efficient) terminal and prompt on OSX in 7minutes Here at www.clovis.pro, we changed our prompt to a more functional one for a :

🎬 Better visualisation of git status 🏎️ Faster shell autocompletions 💮 Daily coding comfort

Obviously we didn’t want to spend hours with shell configuration and customization like many people do… That’s why we made this article !

<div class="container-1">
<div class="box-1">
<h3>Box One</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
<div class="box-2">
<h3>Box Two</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
<div class="box-3">
@amitozdeol
amitozdeol / Terminal_new.md
Created August 24, 2018 17:16
Terminal new commands

tldr > man

It's amazing that nearly every single command line tool comes with a manual via man , but navigating the man output can be sometimes a little confusing, plus it can be daunting given all the technical information that's included in the manual output.

htop > top

htop is an improvement on both regular top and crappy-mac top. Lots of colour coding, keyboard bindings and different views which have helped me in the past to understand which processes belong to which.

Handy key bindings include:

@amitozdeol
amitozdeol / SystemFont.css
Last active August 30, 2018 17:40
System font
div{
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}
@amitozdeol
amitozdeol / normalize.css
Created October 15, 2018 19:51
Normalize css file
/*! minireset.css v0.0.3 | MIT License | github.com/jgthms/minireset.css */
html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
@amitozdeol
amitozdeol / ValetSwitchPHP.md
Created December 21, 2018 15:42 — forked from bgarrant/ValetSwitchPHP.md
How to Switch PHP Version in Laravel Valet between PHP 7.1 and PHP 5.6

How to Switch PHP Version in Laravel Valet between PHP 7.1 and PHP 5.6

Valet switch PHP version with these commands

Install PHP 5.6 and switch Valet to PHP 5.6

valet stop
brew unlink php71
brew install php56
brew install php56-mcrypt
@amitozdeol
amitozdeol / cookie.js
Created December 27, 2018 16:24 — forked from bronson/cookie.js
Read and write cookies from javascript. Small and simple.
@amitozdeol
amitozdeol / gist:b8c723811f106e6eea577572e19ba786
Last active October 4, 2019 16:01
Change PHP version in homestead

Update the default php version to whatever version of php in homestead box

sudo update-alternatives --config php

@amitozdeol
amitozdeol / Elements.md
Last active April 22, 2019 14:52
10 rarely used HTML elements

blockquote - effectively all browsers (since IE6+, Firefox 2+, Chrome 1+ etc)

output - all (as far as w3schools goes)

picture - all except for IE11, Blackberry browser, IE Mobile and Opera Mini

progress - all ("iOS Safari does not support "indeterminate" elements.")

meter - all except for IE and IE Mobile