Skip to content

Instantly share code, notes, and snippets.

View jonian's full-sized avatar
🏠
Working from home

Jonian Guveli jonian

🏠
Working from home
View GitHub Profile
@jonian
jonian / arch-maintenance.md
Created December 17, 2023 09:52
Arch GNU/Linux maintenance

PostgreSQL Update

Move old databases and create required folders with permissions.

sudo mv /var/lib/postgres/data /var/lib/postgres/olddata
sudo mkdir /var/lib/postgres/data /var/lib/postgres/tmp
sudo chown postgres:postgres /var/lib/postgres/data /var/lib/postgres/tmp
@jonian
jonian / arch-gnome.md
Last active January 13, 2024 22:34
Arch GNU/Linux gnome installation extras

Arch Linux GNOME Guide

Extra packages and instructions for a complete GNOME installation on Arch Linux.

Install AUR helper

Download yay from here, extract the archive and open a terminal in the extracted folder.

makepkg -si
@jonian
jonian / delegator_scraper.rb
Last active May 1, 2019 22:05
SimpleDelegator for scraping data to create page objects out of Nokogiri nodesets
class ResultsPage < SimpleDelegator
def listings
css('li.product-item, [class*=product-listing-page__list-item]').map{|el| Listing.new el}
end
end
class Listing < SimpleDelegator
def brand
at('[class*=product__brand]').text.gsub(/ tire/i, '')
end
@jonian
jonian / arch-install.md
Last active January 28, 2023 12:26
Arch GNU/Linux installation steps

Quick guide to install Arch GNU/Linux

Download latest ISO from here and disable secure boot if you have an EFI motherboard.

Connect to internet

Start the iwd interactive prompt. he interactive prompt is then displayed with a prefix of [iwd]#.

iwctl

diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb
index 8c04cb5..132d803 100644
--- a/ext/openssl/extconf.rb
+++ b/ext/openssl/extconf.rb
@@ -104,6 +104,9 @@
have_func("SSLv2_method")
have_func("SSLv2_server_method")
have_func("SSLv2_client_method")
+have_func("SSLv3_method")
+have_func("SSLv3_server_method")