Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
#
# Originally from https://gist.github.com/IanVaughan/2902499
#
# authors: Ian Vaughan
# Jacob Zimmerman
#
# usage: uninstall_gems [<version> ...]
#
# examples:
@irbux
irbux / The Technical Interview Cheat Sheet.md
Created May 4, 2019 20:00 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

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.
@irbux
irbux / rbenv_usage_example.txt
Last active June 8, 2020 20:34
rbenv usage examples
$ sudo apt-get update
$ sudo apt install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm5 libgdbm-dev
$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
$ echo 'eval "$(rbenv init -)"' >> ~/.bashrc
$ source ~/.bashrc
$ type rbenv
$ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
$ rbenv install -l # show ruby list - latest stable releases for each Ruby implementation are shown
$ rbenv install --list-all # to show all local versions.
@irbux
irbux / install-docker.sh
Created February 4, 2019 10:50 — forked from dweldon/install-docker.sh
Install docker CE on Linux Mint 18.3
#!/usr/bin/env bash
# https://docs.docker.com/install/linux/docker-ce/ubuntu/
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
sudo apt-get update
sudo apt-get install docker-ce
# https://docs.docker.com/compose/install/
@irbux
irbux / postgresql_configuration_on_ubuntu_for_rails.md
Created October 17, 2018 19:47 — forked from p1nox/postgresql_configuration_on_ubuntu_for_rails.md
PostgreSQL configuration without password on Ubuntu for Rails

Abstract

You could have postgre installed on localhost with password (or without user or password seted after instalation) but if we are developing we really don't need password, so configuring postgre server without password for all your rails project is usefull.

Install Postgre packages

  • postgresql
  • postgresql-client
  • libpq-dev
@irbux
irbux / gist:5efab7577cd4673120cf1f0accc04068
Last active November 2, 2016 14:22
Quickstart ELK on local machine.
1) Download Kibana ( good versions for communication with elasticsearch 2.#, it is https://www.elastic.co/downloads/past-releases/kibana-4-3-3 or https://www.elastic.co/downloads/past-releases/kibana-4-4-2 )
2) Download Logstash we can use logstash 5.0.0 because version of logstash does not depend from version Kibana or ElasticSearch. You can download package from brew or archive from official elastic site.
3) Next step is a bind Kibana with elasticsearch. After you unpacked Kibana archive,
$ cd /kibana-4.3.3-darwin-x64/config
$ atom kibana.yml
And uncomment this line and save.
# The Elasticsearch instance to use for all your queries.
elasticsearch.url: "http://localhost:9200"