Skip to content

Instantly share code, notes, and snippets.

export TERM="xterm-256color"
export EDITOR='nvim'
export PATH=/usr/local/bin:$PATH
export PATH=/usr/local/sbin:$PATH
export ZSH="/Users/meisinger/.oh-my-zsh"
POWERLEVEL9K_MODE='nerdfont-complete'
ZSH_THEME="powerlevel9k/powerlevel9k"
plugins=(
set encoding=utf-8
set termencoding=latin1
set nocompatible
call plug#begin('~/.vim/plugged')
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'flazz/vim-colorschemes'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
set -g default-terminal xterm-256color
set -g history-limit 10000
set-option -g prefix C-a
unbind C-b
bind-key C-a send-prefix
bind r source-file ~/.tmux.conf \; display "Reloaded!"
bind h select-pane -L
bind j select-pane -D
version: '3'
services:
redis:
image: 'redis'
ports:
- '6379'
core:
build: ./core-api
extra_hosts:
- 'core.meisinger.com:196.168.1.10'
@meisinger
meisinger / hex_commands.py
Last active February 12, 2020 21:45
Given a file, generates the HEX equivalent byte array
def parse_commands(commands):
hex_commands = []
for command in commands:
item = command.strip()
hex_value = ' '.join([str(hex(ord(i)))[2:4] for i in item])
hex_commands.append(item + ' = ' + '"' + hex_value + '"')
return hex_commands
def read_commands():
with open('commands.txt', 'r') as file:
@meisinger
meisinger / setup-android-react-native.md
Last active February 19, 2020 02:21
Fun with Android, React-Native and Arch Linux

Install the android sdk, platform tools and build tools

yaourt -S android-sdk android-sdk-platform-tools android-sdk-build-tools

Android SDK

Was asked which JDK should be installed: opted for the default (jdk-openjdk)