Skip to content

Instantly share code, notes, and snippets.

@anoopd
anoopd / tmux.md
Created November 10, 2021 07:46 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

#Retrieve the name of the user running Apache with a command similar to this:
ps aux | grep apache # The username should be in the first column.
#Retrieve the groups this user is part of with the groups(1) command:
groups [USERNAME]
@anoopd
anoopd / composer.json
Created June 17, 2020 05:43
Magento_Theme_Composer
{
"name": "magento/theme-frontend-air",
"description": "N/A",
"require": {
"php": "~5.6.5|7.0.2|7.0.4|~7.0.6",
"magento/theme-frontend-blank": "100.1.*",
"magento/framework": "100.1.*"
},
"type": "magento2-theme",
@anoopd
anoopd / theme.xml
Created June 17, 2020 05:39
Magento_Theme
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
<title>Air</title>
<parent>Magento/luma</parent>
<media>
<preview_image>media/air.jpg</preview_image>
</media>
</theme>
<?php
/**
* * Copyright Magento, Inc. All rights reserved.
* * See COPYING.txt for license details.
* */
use \Magento\Framework\Component\ComponentRegistrar;
ComponentRegistrar::register(ComponentRegistrar::THEME, 'frontend/Sanda/air', __DIR__);
?>
set nocompatible
" Make backspace behave in a sane manner.
set backspace=indent,eol,start
" Switch syntax highlighting on
syntax on
" Enable file type detection and do language-dependent indenting.
filetype plugin indent on
@anoopd
anoopd / .tmux.conf
Created January 17, 2019 01:22 — forked from Nokogiri/.tmux.conf
# tmux config
# jwc
# see my blog post about tmux for more information
# http://blog.jwcxz.com/?p=517
set -g bell-action any
set -g default-terminal screen-256color
set -g display-panes-colour red
set -g message-bg cyan
set -g message-fg white
#!/bin/bash
iatest=$(expr index "$-" i)
#######################################################
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me
#######################################################
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
@anoopd
anoopd / media-queries.scss
Created January 24, 2017 03:34 — forked from chrisjlee/media-queries.scss
All Media Queries breakpoints
@media (min-width:320px) { /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */ }
@media (min-width:480px) { /* smartphones, Android phones, landscape iPhone */ }
@media (min-width:600px) { /* portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */ }
@media (min-width:801px) { /* tablet, landscape iPad, lo-res laptops ands desktops */ }
@media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ }
@media (min-width:1281px) { /* hi-res laptops and desktops */ }
@anoopd
anoopd / get_actions.php
Created February 7, 2016 03:22 — forked from JeffMatson/get_actions.php
Prints the actions fired in WordPress, and how many times
<?php
add_action( 'shutdown', function(){
foreach( $GLOBALS['wp_actions'] as $action => $count )
printf( '%s (%d) <br/>' . PHP_EOL, $action, $count );
});