Skip to content

Instantly share code, notes, and snippets.

View gr8arty's full-sized avatar

Chuprin Artyom gr8arty

View GitHub Profile
@renatocarvalho
renatocarvalho / _media-queries.scss
Created June 19, 2012 23:34 — forked from anthonyshort/_media-queries.scss
Media Queries in Sass
// ---------------------------------------------------------------------------------
// Mixin for Media Queries
// ---------------------------------------------------------------------------------
// http://thesassway.com/intermediate/responsive-web-design-in-sass-using-media-queries-in-sass-32
// Device Dimensions inpired on: http://css-tricks.com/snippets/css/media-queries-for-standard-devices
// Usage
// --------------------------------------------------
// .profile-pic
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active November 25, 2025 19:14
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@jstrosch
jstrosch / gist:3190568
Created July 27, 2012 21:31
iptables - delete all rules/chains
#view current chains
$ iptables -L
#remove/flush all rules & delete chains
$ iptables -F
$ iptables -X
$ iptables -t nat -F
$ iptables -t nat -X
$ iptables -t mangle -F
$ iptables -t mangle -X
@Kartones
Kartones / postgres-cheatsheet.md
Last active November 25, 2025 21:32
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@tuxfight3r
tuxfight3r / vim-shortcuts.md
Last active November 3, 2025 20:23
VIM SHORTCUTS

VIM KEYBOARD SHORTCUTS

MOVEMENT

h        -   Move left
j        -   Move down
k        -   Move up
l        -   Move right
$        -   Move to end of line
0        -   Move to beginning of line (including whitespace)
@vektornsk
vektornsk / 1-list-of-plugin.js
Last active June 30, 2019 17:57
Сборка для gulp + плагины
'use strict';
var
gulp = require("gulp"),
wiredep = require("wiredep").stream, // авто прописывет файлы из bower
useref = require("gulp-useref"), // перемещает index.html
uglify = require("gulp-uglify"), // минимизирует js
clean = require("gulp-clean"), // удаление файлов, папок
gulpif = require("gulp-if"), // объединяет файлы в поток
filter = require("gulp-filter"), // фильтрует

This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet

Useful Spacemacs commands

  • SPC q q - quit
  • SPC w / - split window vertically
  • SPC w - - split window horizontally
  • SPC 1 - switch to window 1
  • SPC 2 - switch to window 2
  • SPC w c - delete current window
@mendeza
mendeza / .vimrc
Last active September 14, 2024 06:37
Simple .vimrc or init.vim for nvim (neovim)
" (N)Vim Configuration File
" vim : place in $HOME/.vimrc
" nvim : place in $HOME/.config/nvim/init.vim
" $ ln -s $HOME/.config/nvim/init.vim $HOME/.vimrc
" General settings
" https://learnvimscriptthehardway.stevelosh.com/
" ---------------------------------------------------------------------------
" drop vi support - kept for vim compatibility but not needed for nvim
" Probably not needed with Vim 8+
"set nocompatible
@neretin-trike
neretin-trike / pug.md
Last active November 20, 2025 19:36
Туториал по HTML препроцессору Pug (Jade)
@rnwolf
rnwolf / spacemacs-keybindings.md
Last active September 16, 2025 05:21 — forked from kiambogo/spacemacs-keybindings
spacemacs keybindings that i need to learn