Skip to content

Instantly share code, notes, and snippets.

View tlatsas's full-sized avatar

Tasos Latsas tlatsas

View GitHub Profile
@mislav
mislav / _readme.md
Last active April 1, 2026 07:38
tmux-vim integration to transparently switch between tmux panes and vim split windows

I use tmux splits (panes). Inside one of these panes there's a Vim process, and it has its own splits (windows).

In Vim I have key bindings C-h/j/k/l set to switch windows in the given direction. (Vim default mappings for windows switching are the same, but prefixed with C-W.) I'd like to use the same keystrokes for switching tmux panes.

An extra goal that I've solved with a dirty hack is to toggle between last active panes with C-\.

Here's how it should work:

@quchen
quchen / trolling_haskell
Last active May 21, 2026 05:56
Trolling #haskell
13:15 <xQuasar> | HASKELL IS FOR FUCKIN FAGGOTS. YOU'RE ALL A BUNCH OF
| FUCKIN PUSSIES
13:15 <xQuasar> | JAVASCRIPT FOR LIFE FAGS
13:16 <luite> | hello
13:16 <ChongLi> | somebody has a mental illness!
13:16 <merijn> | Wow...I suddenly see the error of my ways and feel
| compelled to write Node.js!
13:16 <genisage> | hi
13:16 <luite> | you might be pleased to learn that you can compile
| haskell to javascript now
@karma86
karma86 / Drupal site install in seconds.md
Last active December 17, 2015 12:09
Drupal site install in seconds

Using drush with .make files

Drush make file is a plain-text file, which describes the components of a drupal installation. Drush can use it to create ready-to-use drupal sites, pulling sources from various locations. It does this by parsing a makefile and downloading the sources it describes. In practical terms, this means that it is possible to distribute a complicated Drupal distribution as a single text file.

Using a .make generator

  • Select the version of drupal you want to install
  • Select the modules you want
  • Select the libaries you want to use
@nicolashery
nicolashery / solarized-dark.css
Last active March 25, 2026 19:32 — forked from scotu/solarized.css
Solarized theme stylesheets for Jekyll and Pygments
/* Solarized Dark
For use with Jekyll and Pygments
http://ethanschoonover.com/solarized
SOLARIZED HEX ROLE
--------- -------- ------------------------------------------
base03 #002b36 background
base01 #586e75 comments / secondary content
@tlatsas
tlatsas / pkg.md
Last active December 19, 2015 07:29
package managers cheatsheet (work in progress)

install

action rpm based debian based pacman
install pkgname yum install pkgname apt-get install pkgname pacman -S pkgname
install pkgfile rpm -ivh pkgfile dpkg -i pkgfile
apt-get install -f
pacman -U pkgfile

remove

@jbenet
jbenet / simple-git-branching-model.md
Last active April 15, 2026 22:32
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

@wsargent
wsargent / docker_cheat.md
Last active May 27, 2026 15:46
Docker cheat sheet
@joyrexus
joyrexus / README.md
Last active September 29, 2025 05:43
Perl one-liners

Hi:

perl -e 'print "hello world!\n"'

A simple filter:

perl -ne 'print if /REGEX/'

Filter out blank lines (in place):

@nvie
nvie / ormtools.py
Created November 29, 2013 08:59
Really useful helper that I use constantly to force myself to write more efficient Django queries.
from contextlib import contextmanager
from django.conf import settings
from django.db import connection
@contextmanager
def no_queries_allowed():
"""This is a helper method that makes it easier during development, by
throwing an exception when any queries are made within its block. Using