Skip to content

Instantly share code, notes, and snippets.

View mhebing's full-sized avatar

Marcel Hebing mhebing

View GitHub Profile
@mhebing
mhebing / .tmux.conf
Last active October 11, 2018 11:14
bind r source-file ~/.tmux.conf \; display "Reloaded!"
set -g mouse on
setw -g monitor-activity on
set -g visual-activity on
setw -g mode-keys vi
@mhebing
mhebing / .vimrc
Last active June 10, 2020 07:28
Basic .vimrc
" --- VUNDLE ---
set nocompatible " be iMproved, required
filetype off " required
" Set Vundle path + initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
@JosephPecoraro
JosephPecoraro / shell-execution.rb
Last active September 28, 2025 09:58
Shell Execution in Ruby
# Ways to execute a shell script in Ruby
# Example Script - Joseph Pecoraro
cmd = "echo 'hi'" # Sample string that can be used
# 1. Kernel#` - commonly called backticks - `cmd`
# This is like many other languages, including bash, PHP, and Perl
# Synchronous (blocking)
# Returns the output of the shell command
# Docs: http://ruby-doc.org/core/classes/Kernel.html#M001111