Note
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
# This template is inspired on https://github.com/basecamp/audits1984/blob/master/.rubocop.yml | |
# | |
# 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: https://gist.githubusercontent.com/lazaronixon/7815d84702f277ead5e89c9f2aa5581f/raw/rubocop.yml | |
# |
# Add the following records to your DNS config | |
## Mac: /etc/hosts | |
## Windows: C:\Windows\System32\drivers\etc\hosts | |
104.18.23.110 admin-stg.notion.so | |
104.18.23.110 aif.notion.so | |
104.18.23.110 analytics-iframe.notion.so | |
104.18.23.110 analytics.pgncs.notion.so | |
104.18.23.110 api.notion.so | |
104.18.23.110 api.pgncs.notion.so | |
104.18.23.110 dev.notion.so |
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 |
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 | |
adventure. | |
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 |
# .github/workflows/main.yaml | |
name: Main | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
# If you need DB like PostgreSQL, Redis then define service below. |
This tutorial is for Ubuntu & Squid3. Use AWS, Google cloud, Digital Ocean or any services with Ubuntu to follow this tutorial.
sudo apt-get update
sudo apt-get install squid3
sudo apt-get install apache2-utils
require 'net/http' | |
require 'uri' | |
require 'json' | |
require 'cgi' | |
def lcs(a, b) | |
lengths = Array.new(a.length) { Array.new(b.length, 0) } | |
greatest_length = 0 | |
output = '' | |
a.each_char.with_index do |x, i| |
require 'net/http' | |
require 'uri' | |
require 'json' | |
require 'cgi' | |
@mutex = Mutex.new | |
def query(query) | |
uri = URI.parse("https://www.amazon.de/gp/search-inside/service-data") | |
http = Net::HTTP.new(uri.host, uri.port) |
Fish is a smart and user-friendly command line (like bash or zsh). This is how you can instal Fish on MacOS and make your default shell.
Note that you need the https://brew.sh/ package manager installed on your machine.
brew install fish
gem "lograge" | |
gem "logstash-event" | |
gem "logstash-logger" |