Skip to content

Instantly share code, notes, and snippets.

View borisrorsvort's full-sized avatar

Boris Rorsvort borisrorsvort

View GitHub Profile
<mj-section background-color="#fff">
<mj-column>
<mj-text css-class="subtitle">
<%= @subtitle %>
</mj-text>
</mj-column>
</mj-section>
<mj-section background-color="#fff">
<mj-column>
@borisrorsvort
borisrorsvort / truly-ergonomic-combos
Created November 2, 2021 09:20
karabiner-custom-truly-ergonomic
{
"title": "Truly ergonomic bépo custom keys combo",
"rules": [
{
"description": "Undo",
"manipulators": [
{
"type": "basic",
"from": {
"modifiers": {
@borisrorsvort
borisrorsvort / bulk_api_example.rb
Last active June 17, 2022 10:56 — forked from dhh/gist:981520
Ruby snippets
# Bulk API design
#
# resources :posts
class PostsController < ActiveController::Base
# GET /posts/1,4,50,90
# post_url([ @post, @post ])
def show_many
@posts = Post.find(params[:ids])
end
### Keybase proof
I hereby claim:
* I am borisrorsvort on github.
* I am borisrorsvort (https://keybase.io/borisrorsvort) on keybase.
* I have a public key whose fingerprint is 7F14 8A73 0F88 1A55 2905 C38B 7EF3 9C1F BDEE E387
To claim this, I am signing this object:
cheat sheets.
$ command line ruby cheat sheets
PostgreSQL
----------
Create the filesystem
----
$ export PGROOT="/var/lib/postgres"
$ mkdir -p $PGROOT/data && chown postgres.postgres $PGROOT/data
Verifying that +borisrorsvort is my blockchain ID. https://onename.com/borisrorsvort