Skip to content

Instantly share code, notes, and snippets.

View nair-ayush's full-sized avatar

Ayush Nair nair-ayush

View GitHub Profile
@nair-ayush
nair-ayush / css-media-queries-cheat-sheet.css
Created December 21, 2020 09:37 — forked from bartholomej/css-media-queries-cheat-sheet.css
CSS Media Query Cheat Sheet (with Foundation)
/*------------------------------------------
Responsive Grid Media Queries - 1280, 1024, 768, 480
1280-1024 - desktop (default grid)
1024-768 - tablet landscape
768-480 - tablet
480-less - phone landscape & smaller
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }
@media all and (min-width: 768px) and (max-width: 1024px) { }
@nair-ayush
nair-ayush / multi-git-win.md
Created June 6, 2019 10:09 — forked from rosswd/multi-git-win.md
Setting up a Github and Bitbucket account on the same computer on Mac OS. Now with a guide for Windows 10.

Setting up github and bitbucket on the same computer (Windows)

Guide for Windows

mix3d asked for some help using this guide with windows so here we go. This was tested with Windows 10. Run all commands in Git Bash once it's installed.

Github will be the main account and bitbucket the secondary.

Git for Windows

  • Download and install Git for Windows
  • In the installer, select everything but decide if you want a desktop icon (2nd step)
@nair-ayush
nair-ayush / swapChange.sh
Created April 4, 2019 05:40
Change swap space from Ubuntu 17.04 onwards
# Swap is a special area on your computer, which the operating system can use as additional RAM.
# Starting with Ubuntu 17.04, the swap partition was replaced by a swap file.
# The main advantage of the swap file is easy resizing.
# We’ll extend the swap space available in the /swapfile to 8 GB.
# Turn off all swap processes
sudo swapoff -a
# Resize the swap
@nair-ayush
nair-ayush / macSetup.md
Last active January 6, 2021 19:56
Mac Setup with Development Environment

This is a guide for setting up an Apple Mac for software development. Current versions of macOS have a fairly good default configuration for general-purpose use, but you do need to to adjust some of the security settings. In addition, you need to install several pieces of software in order to make the system useful for development.

DO This First!

Log in once, run Software Update, and ensure that the operating system is at the latest point release. After all of the updates have been applied, restart the computer.

Log in again and create an Admin user account for your use. If other people will be using the machine, create Standard accounts for them. Log out of the initial account, and log in to the Admin account that you have just created.

You should also find an external hard drive. Begin using Time Machine as soon as possible, as it provides the most easy method for backing up your system.