Skip to content

Instantly share code, notes, and snippets.

View prysmakou's full-sized avatar

Aliaksandr Prysmakou prysmakou

View GitHub Profile
@charlietran
charlietran / TerminalVim.scpt
Last active June 19, 2024 09:37
Open file in iTerm vim for MacOS Sierra
-- TerminalVim.app
-- This creates a shim Application that will enable you to open files from the Finder in vim using iTerm
-- To use this script:
-- 1. Open Automator and create a new Application
-- 2. Add the "Run Applescript" action
-- 3. Paste this script into the Run Applescript section
-- 4. Save the application as TerminalVim.app in your Applications folder
-- 5. In the Finder, right click on a file and select "Open With". In that window you can set TerminalVim as a default
@kizbitz
kizbitz / dockerhub-v2-api-organization.sh
Last active June 13, 2024 02:57
Get the list of images and tags for a Docker Hub organization account
#!/bin/bash
# Example for the Docker Hub V2 API
# Returns all images and tags associated with a Docker Hub organization account.
# Requires 'jq': https://stedolan.github.io/jq/
# set username, password, and organization
UNAME=""
UPASS=""
ORG=""
@voelzmo
voelzmo / release_copy.rb
Last active September 4, 2018 11:07
bosh release copy script
#!/usr/bin/env ruby
require "cli"
require "cli/release"
require "cli/blob_manager"
require "blobstore_client"
require "cli/versions/versions_index"
require 'optparse'
@allomov
allomov / README.md
Last active August 29, 2015 14:20
Template for making jumpbox ansible playbook for different cases

Description

This gist is a template for making jumpbox ansible playbook for different cases This playbook is used for Ubuntu servers with ansible 1.9

How to use

Run with a simple command:

ansible-playbook jumpbox-playbook.yml -i hosts
@gramos
gramos / installing-cf-warden-on-debian.md
Last active December 19, 2015 15:38
Installing Cloud Foundry Warden on Debian

How warden installation works

First, lets try to understand what the rake setup does, it creates a basic linux system under /tmp/warden directory using 2 basic tools: debootstrap and chroot. Deboostrap is a tool that setup a basic debian OS, ubuntu is based on debian so that's the reason why we can use debootstrap to create ubuntu systems too, basically you run: debootstrap [OPTION...] SUITE TARGET [MIRROR [SCRIPT]] see (man deboostrap). After the installation you can use that system with chroot command to run commands or interactive shell with a special root directory (see man chroot).

@sgergely
sgergely / gist:3793166
Created September 27, 2012 09:43
Midnight Commander Keyboard Shortcuts for Mac OSX
----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
Switch between background command line and MC: Ctrl + o
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name