Skip to content

Instantly share code, notes, and snippets.

View hakanu's full-sized avatar
🎯
Focusing

Hakan hakanu

🎯
Focusing
View GitHub Profile
@heroheman
heroheman / ranger-cheatsheet.md
Last active November 26, 2025 16:03
Ranger Cheatsheet

Ranger Cheatsheet

General

Shortcut Description
ranger Start Ranger
Q Quit Ranger
R Reload current directory
? Ranger Manpages / Shortcuts
@antirez
antirez / lmdb.tcl
Created April 28, 2017 15:40
LMDB -- First version of Redis written in Tcl
# LVDB - LLOOGG Memory DB
# Copyriht (C) 2009 Salvatore Sanfilippo <antirez@gmail.com>
# All Rights Reserved
# TODO
# - cron with cleanup of timedout clients, automatic dump
# - the dump should use array startsearch to write it line by line
# and may just use gets to read element by element and load the whole state.
# - 'help','stopserver','saveandstopserver','save','load','reset','keys' commands.
# - ttl with milliseconds resolution 'ttl a 1000'. Check ttl in dump!
@machito
machito / social-meta-tags.html
Created March 29, 2017 13:31
Example of social meta tags for videos
<meta property="og:site_name" content="YouTube">
<meta property="og:url" content="https://www.youtube.com/watch?v=Gb9E60E3duU">
<meta property="og:title" content="#6: IBM Head of Design, Phil Gilbert, wields $100M and 1,300 designers to bring design back to IBM">
<meta property="og:image" content="https://i.ytimg.com/vi/Gb9E60E3duU/hqdefault.jpg">
<meta property="og:description" content="Phil Gilbert is the GM and Head of Design at IBM. In this episode, he discusses creating IBM&#39;s proprietary design thinking methodology, their own design scho...">
<meta property="al:ios:app_store_id" content="544007664">
<meta property="al:ios:app_name" content="YouTube">
<meta property="al:ios:url" content="vnd.youtube://www.youtube.com/watch?v=Gb9E60E3duU&amp;feature=applinks">
@BMeu
BMeu / raspbian-python3.5.rst
Created October 12, 2016 19:16
Installing Python 3.5 on Raspbian

Installing Python 3.5 on Raspbian

As of October 2016, Raspbian does not yet include the latest Python release, Python 3.5. This means we will have to build it ourselves, and here is how to do it.

  1. Install the required build-tools (some might already be installed on your system).
@hakanu
hakanu / setup_dev.sh
Last active September 3, 2017 14:00
Initial development environment setup for ubuntu after clean install
# curl https://gist.githubusercontent.com/hakanu/7a8a14f60bdc8478d194/raw/3c02c7c3f0c30cee4348016ceb6a6d528a6e86ac/setup_dev.sh | bash
# Base stuff.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -y install build-essential
sudo apt-get -y install git
sudo apt-get -y install screen
sudo apt-get -y install ruby
@todgru
todgru / starttmux.sh
Last active September 26, 2024 04:28
Start up tmux with custom windows, panes and applications running
#!/bin/sh
#
# Setup a work space called `work` with two windows
# first window has 3 panes.
# The first pane set at 65%, split horizontally, set to api root and running vim
# pane 2 is split at 25% and running redis-server
# pane 3 is set to api root and bash prompt.
# note: `api` aliased to `cd ~/path/to/work`
#
session="work"