Skip to content

Instantly share code, notes, and snippets.

mysql2 gem + mariadb + Alpine Linux

tl;dr Use mariadb-dev. In case of Alpine Linux 3.8, 3.9, use mysql2 >= 0.4.10.

Starting with Alpine Linux 3.8 there are basically 2 options to install the mysql2 gem:

1.sh:

@codezninja
codezninja / tmux-cheatsheet.markdown
Created March 22, 2021 21:13 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
# User Inputs
input n = 10;
# Internal Script Reference
script LinePlot {
input BarID = 0;
### Keybase proof
I hereby claim:
* I am bondezbond on github.
* I am ezjacob (https://keybase.io/ezjacob) on keybase.
* I have a public key ASBdIcueeUxpsltApTbg1UNyRSAXzc3UA5ayJPJ_S8Pc2go
To claim this, I am signing this object:
@codezninja
codezninja / increment_version
Created June 9, 2017 18:51
Simple Bash Script using Semantic Versioning terminology
#!/bin/bash
# Increment a version string using Semantic Versioning terminology.
# Parse command line options.
while getopts ":Mmp" Option
do
case $Option in
M ) major=true;;
#Delete local tags.
git tag -l | xargs git tag -d
#Fetch remote tags.
git fetch
#Delete remote tags.
git tag -l | xargs -n 1 git push --delete origin
#Delete local tasg.
git tag -l | xargs git tag -d

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@codezninja
codezninja / gist:37dbc8a4cbde34de11c4
Created May 5, 2015 16:32
Bash Required Commands Function
#Required commands
CMDS='pushd popd php /etc/init.d/apache2';
for i in $CMDS
do
# command -v will return >0 when the $i is not found
command -v $i >/dev/null && continue || { echo "$i command not found."; exit 1; }
done