Skip to content

Instantly share code, notes, and snippets.

View showthreadx's full-sized avatar
😎
On vacation

showthreadx showthreadx

😎
On vacation
  • SOFTSWISS
  • Poland, Warsaw
View GitHub Profile
@showthreadx
showthreadx / iterm2.md
Created March 25, 2021 19:39 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@showthreadx
showthreadx / gist:8140a64ac1442f7e4eb775a537884928
Created November 12, 2020 08:20 — forked from ytbryan/gist:4c4db2f12f2a06b698df
fixing PG::ConnectionBad: FATAL: password authentication failed for user "postgres"
#go to hb_hba.conf
local all postgres ident
#go to psql
sudo -u postgres psql
#enter the following command to set or change the password
ALTER USER postgres PASSWORD 'actual_password';
#go to hb_hba.conf to change this line back
@showthreadx
showthreadx / imagemagick6_arch
Created March 23, 2020 07:51
install imagemagick 6 on arch
# This code can resolve errors while installing rmagick gem using imagemagick7 library
# First, remove imagemagick, if installed
sudo pacman -R imagemagick
# Then install imagemagick6
sudo pacman -S libmagick6
PKG_CONFIG_PATH=/usr/lib/imagemagick6/pkgconfig gem install rmagick
@showthreadx
showthreadx / capybara cheat sheet
Created November 28, 2019 09:44 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')