Skip to content

Instantly share code, notes, and snippets.

Building @ejaro

Omar Bahareth obahareth

Building @ejaro
View GitHub Profile
alexrudall / #ChatGPT
Last active September 19, 2023 22:48
ChatGPT streaming with ruby-openai, Rails 7, Hotwire, Turbostream, Sidekiq and Tailwind!
View #ChatGPT
lazaronixon / rubocop.yml
Last active October 21, 2022 17:49
Basecamp Rubocop Template
View rubocop.yml
# This template is inspired on
# 1 - Add dependencies to group :development, :test
# gem "rubocop", "~> 1.26", require: false
# gem "rubocop-performance", require: false
# gem "rubocop-rails", require: false
# 2 - Create a file .rubocop.yml and add the lines below
# inherit_from:
markshust / hosts
Last active February 12, 2021 22:20
Notion DNS servers in the event of an outage...
View hosts
# Add the following records to your DNS config
## Mac: /etc/hosts
## Windows: C:\Windows\System32\drivers\etc\hosts
dhh / Gemfile
Created June 24, 2020 22:23
HEY's Gemfile
View Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers
View history.txt
I was drawn to programming, science, technology and science fiction
ever since I was a little kid. I can't say it's because I wanted to
make the world a better place. Not really. I was simply drawn to it
because I was drawn to it. Writing programs was fun. Figuring out how
nature works was fascinating. Science fiction felt like a grand
Then I started a software company and poured every ounce of energy
into it. It failed. That hurt, but that part is ok. I made a lot of
mistakes and learned from them. This experience made me much, much
ArturT / main.yaml
Last active November 9, 2022 06:10
GitHub Actions - how to run parallel tests in RSpec for Ruby on Rails project. See article how to run RSpec on GitHub Actions for Ruby on Rails app using parallel jobs or sign up at…
View main.yaml
# .github/workflows/main.yaml
name: Main
on: [push]
runs-on: ubuntu-latest
# If you need DB like PostgreSQL, Redis then define service below.
jackblk /
Last active September 12, 2023 07:30
Tutorial on how to setup a squid proxy with authentication.


This tutorial is for Ubuntu & Squid3. Use AWS, Google cloud, Digital Ocean or any services with Ubuntu to follow this tutorial.

Install squid & update

sudo apt-get update
sudo apt-get install squid3
sudo apt-get install apache2-utils
View stitcher.rb
require 'net/http'
require 'uri'
require 'json'
require 'cgi'
def lcs(a, b)
lengths = {, 0) }
greatest_length = 0
output = ''
a.each_char.with_index do |x, i|
View dumper.rb
require 'net/http'
require 'uri'
require 'json'
require 'cgi'
@mutex =
def query(query)
uri = URI.parse("")
http =, uri.port)
gagarine /
Last active September 21, 2023 22:07
Install fish shell on macOS Mojave with brew