Skip to content

Instantly share code, notes, and snippets.

View ahmetb's full-sized avatar
🛑
Slow to respond

Ahmet Alp Balkan ahmetb

🛑
Slow to respond
View GitHub Profile
@ahmetb
ahmetb / tmux.md
Created December 18, 2017 05:49 — 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

gkahuna@lmp-swarm-i-master:~$ cat docker-extension.log
[DockerExtension] 2015/07/09 15:02:14 ----------------------------------------
[DockerExtension] 2015/07/09 15:02:14 Extension handler launch args: "./bin/docker-extension install"
[DockerExtension] 2015/07/09 15:02:14 Status 'transitioning' not reported for operation 'Install Docker' (by design)
[DockerExtension] 2015/07/09 15:02:14 distro info: Ubuntu 14.04
[DockerExtension] 2015/07/09 15:02:14 using distro driver: driver.UbuntuUpstartDriver
[DockerExtension] 2015/07/09 15:02:14 user: root uid:0 gid:0
[DockerExtension] 2015/07/09 15:02:14 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
[DockerExtension] 2015/07/09 15:02:14 + starting: 'install'
[DockerExtension] 2015/07/09 15:02:14 ++ install docker
#!/bin/bash
set -e
image='tianon/speedtest'
layer='b31651d7665036bcf58a0b6b0d7aca173daff87b003ec50621cb0fde8d68864f'
# docker inspect b31651d7665036bcf58a0b6b0d7aca173daff87b003ec50621cb0fde8d68864f | grep '"Size"'
# "Size": 580580561,
# ("Content-Length: 228991341" though...)
token="$(curl -sSL -o /dev/null -D- -H 'X-Docker-Token: true' "https://index.docker.io/v1/repositories/$image/images" | awk -F ':[[:space:]]*|\r' '$1 == "X-Docker-Token" { print $2 }')"
#!/bin/bash
set -e
image='tianon/speedtest'
layer='b31651d7665036bcf58a0b6b0d7aca173daff87b003ec50621cb0fde8d68864f'
# docker inspect b31651d7665036bcf58a0b6b0d7aca173daff87b003ec50621cb0fde8d68864f | grep '"Size"'
# "Size": 580580561,
# ("Content-Length: 228991341" though...)
token="$(curl -sSL -o /dev/null -D- -H 'X-Docker-Token: true' "https://index.docker.io/v1/repositories/$image/images" | awk -F ':[[:space:]]*|\r' '$1 == "X-Docker-Token" { print $2 }')"
@ahmetb
ahmetb / tr.yml
Last active December 21, 2015 18:49 — forked from soffes/en.yml
roon.io Turkish strings
tr:
viewer:
comment_on_twitter: "Twitter'da Yorum Yaz"
older: 'Daha Eskiler'
newer: 'Daha Yeniler'
feed: 'Feed'
share: 'Paylaş'
next_post: 'Sonraki Yazı'
previous_post: 'Önceki Yazı'
no_posts: 'Henüz bir yazı yazılmamış.'
@ahmetb
ahmetb / hack.sh
Created March 31, 2012 11:24 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#