Skip to content

Instantly share code, notes, and snippets.

View ay589's full-sized avatar
๐ŸŒŠ
Focusing

Ay ay589

๐ŸŒŠ
Focusing
View GitHub Profile
@ay589
ay589 / tmux.md
Created March 24, 2017 15:04 — 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

@ay589
ay589 / tmux-cheatsheet.markdown
Created March 24, 2017 09:31 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@ay589
ay589 / 00.howto_install_phantomjs.md
Created March 13, 2017 10:38 — forked from julionc/00.howto_install_phantomjs.md
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
@ay589
ay589 / mysql.md
Last active March 21, 2017 09:37
How to Back Up and Restore a MySQL Database

Back up From the Command Line (using mysqldump)

$ mysqldump -u root -p -h 127.0.0.1 --database Users --add-drop-database > ~/users_backup.sql

Back up your MySQL Database with Compress

$ mysqldump -u root -p -h 127.0.0.1 --database Users --add-drop-database | gzip -9 > ~/users_backup.sql.gz
@ay589
ay589 / gitcheats
Last active May 19, 2017 11:59 — forked from chrismccoy/gitcheats.txt
git cheats
# shortform git commands
alias g='git'
# push changes to an empty git repository for the first time
git push --set-upstream origin master
# remove untracked files in a git repository
git status -su | cut -d' ' -f2- | tr '\n' '\0' | xargs -0 rm
# get most modified files and counts
@ay589
ay589 / yardoc_cheatsheet.md
Last active March 1, 2017 11:14 — forked from chetan/yardoc_cheatsheet.md
YARD cheatsheet

YARD CHEATSHEET http://yardoc.org

cribbed from http://pastebin.com/xgzeAmBn

Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.

Modules

Namespace for classes and modules that handle serving documentation over HTTP

@ay589
ay589 / The Technical Interview Cheat Sheet.md
Last active November 22, 2018 19:36 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet.

Data Structure Basics

Array

Definition

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
  • They are one of the oldest, most commonly used data structures.

What you need to know:

  • Optimal for indexing; bad at searching, inserting, and deleting (except at the end).