Skip to content

Instantly share code, notes, and snippets.

View bymathias's full-sized avatar

Mathias Brouilly bymathias

View GitHub Profile
@Starefossen
Starefossen / tmux-cheats.md
Last active June 18, 2025 18:41
My personal tmux cheat sheet for working with sessions, windows, and panes. `NB` I have remapped the command prefix to `ctrl` + `a`.

Sessions

New Session

  • tmux new [-s name] [cmd] (:new) - new session

Switch Session

  • tmux ls (:ls) - list sessions
  • tmux switch [-t name] (:switch) - switches to an existing session
@lambdalisue
lambdalisue / README.md
Last active October 7, 2023 12:27
Download and Compile and Install latest Vim on Debian
@jareware
jareware / SCSS.md
Last active July 17, 2025 02:22
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso

@madrobby
madrobby / gist:4161897
Created November 28, 2012 15:16
Retina screen media query
@media (min--moz-device-pixel-ratio: 1.5),
(-o-min-device-pixel-ratio: 3/2),
(-webkit-min-device-pixel-ratio: 1.5),
(min-device-pixel-ratio: 1.5),
(min-resolution: 144dpi),
(min-resolution: 1.5dppx) {
/* Retina rules! */
}
@awidegreen
awidegreen / vim_cheatsheet.md
Last active July 10, 2025 04:42
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@jcanfield
jcanfield / install.sh
Created July 26, 2012 23:46
Install Ruby and Homebrew on Mac OSX 10.7.3
#!/bin/bash
# We are going to install the latest version of Ruby on OSX
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
# Now load RVM into your shell
cd ~/
sudo vim .bash_profile
@seyDoggy
seyDoggy / install-git-completion.sh
Created July 26, 2012 15:41 — forked from johngibb/install-git-completion.sh
Mac OS X - Install Git Completion
#!/bin/bash
# get Xcode git version
GIT_VERSION=`xcrun git --version | awk '{print $3}'`
URL="https://raw.github.com/git/git/v$GIT_VERSION/contrib/completion/git-completion.bash"
PROFILE="$HOME/.bash_profile"
@johnmoxon-snippets
johnmoxon-snippets / jquery.boilerplate.js
Created July 25, 2012 07:10
jQuery plugin boilerplate
/*
* Project:
* Description:
* Author:
* License:
*/
// the semi-colon before function invocation is a safety net against concatenated
// scripts and/or other plugins which may not be closed properly.
;(function ( $, window, undefined ) {
@BronsonQuick
BronsonQuick / remove_unwanted_menu_and_toolbar_items_wordpress.php
Created July 25, 2012 05:49
Remove unwanted menu items from the Menu Bar and Toolbar in WordPress
<?php
/* Remove unwanted menus in WordPress e.g. Posts, Comments and Links */
/* Inspired by http://wordpress.org/extend/plugins/white-label-cms/ */
function ctm_remove_admin_menus() {
global $menu, $submenu;
$exclude[0] = '';
array_push($exclude,__('Posts','default'));
array_push($exclude,__('Comments','default'));
array_push($exclude,__('Links','default'));
unset($exclude[0]);
@froloff7
froloff7 / async_loader.js
Created July 16, 2012 23:21 — forked from Joe8Bit/async_loader.js
Asynchronous Javascript/CSS loader.
AL = function(type, url, callback) {
var el, doc = document;
switch(type) {
case 'js':
el = doc.createElement('script');
el.src = url;
el.type = 'text/javascript';
el.async = true;
break;