Skip to content

Instantly share code, notes, and snippets.

View acasaism's full-sized avatar
🦊

Antón acasaism

🦊
  • A Coruña / Galicia
View GitHub Profile
@kekeimiku
kekeimiku / mysql
Last active January 18, 2024 15:36
Dbeaver connect to docker database unable to export and import temporary solutions. mysql/postgres
#!/bin/sh
docker exec -i mysql /usr/bin/mysql $@ -p2325373912
@SabretWoW
SabretWoW / rspec_model_testing_template.rb
Last active September 23, 2024 03:01
Rails Rspec model testing skeleton & cheat sheet using rspec-rails, shoulda-matchers, shoulda-callbacks, and factory_girl_rails. Pretty much a brain dump of examples of what you can (should?) test in a model. Pick & choose what you like, and please let me know if there are any errors or new/changed features out there. Reddit comment thread: http…
# This is a skeleton for testing models including examples of validations, callbacks,
# scopes, instance & class methods, associations, and more.
# Pick and choose what you want, as all models don't NEED to be tested at this depth.
#
# I'm always eager to hear new tips & suggestions as I'm still new to testing,
# so if you have any, please share!
#
# @kyletcarlson
#
# This skeleton also assumes you're using the following gems:
@awidegreen
awidegreen / vim_cheatsheet.md
Last active August 19, 2024 12:23
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close