Skip to content

Instantly share code, notes, and snippets.

Avatar
🐕

Sebastián sebastian-palma

🐕
View GitHub Profile
View main.log
version:1
:debug:sysinfo macOS 10.14 (darwin/18.6.0) arch i386
:debug:sysinfo MacPorts 2.6.3
:debug:sysinfo Xcode none
:debug:sysinfo SDK 10.14
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 10.14
:debug:main Found Dependency: path: /usr/bin filename: git regex: ^git$
:debug:main epoch: in tree: 0 installed: 0
:debug:main sbcl 2.0.6_0 exists in the ports tree
:debug:main sbcl 2.0.6_0 +fancy is the latest installed
View sudo_port_install_www_Nyxt.txt
version:1
:debug:sysinfo macOS 10.14 (darwin/18.6.0) arch i386
:debug:sysinfo MacPorts 2.6.2
:debug:sysinfo Xcode none
:debug:sysinfo SDK 10.14
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 10.14
:warn:main The macOS 10.14 SDK does not appear to be installed. Ports may not build correctly.
:warn:main You can install it as part of the Xcode Command Line Tools package by running `xcode-select --install'.
:debug:main Found Dependency: path: /usr/bin filename: git regex: ^git$
:msg:main ---> Computing dependencies for Nyxt:info:main .:debug:main Nyxt has no conflicts
View index_by_bm.md

Warming up -------------------------------------- Array#each 45.102k i/100ms Hash::[] 36.133k i/100ms Enumerable#map 38.767k i/100ms Enumerable#each_with_object 42.234k i/100ms Object#tap 42.185k i/100ms Enumerable#to_h 44.715k i/100ms Enumerable#index_by 41.212k i/100ms Calculating -------------------------------------

View asyncapi01.yml
asyncapi: 2.0.0
info:
title: Streetlights API
version: '1.0.0'
description: |
The Smartylighting Streetlights API allows you to remotely manage the city lights.
### Check out its awesome features:
* Turn a specific streetlight on/off 🌃
@sebastian-palma
sebastian-palma / tmux-copy-mode-osx.md
Created Apr 24, 2020 — forked from brendanhay/tmux-copy-mode-osx.md
Tmux, copy-mode, and OSX shenanigans.
View tmux-copy-mode-osx.md

Copy, with line wrapping!

If you've been trying to copy/paste text from a multi-pane tmux session with the mouse, you've probably been pretty pissed at the blissful ignorance a terminal application has of the rodent in your hand.

The alternative, which is quote-unqoute native copy/pasting using copy-mode takes a bit to get used to. So this is one solution for copying and pasting lines from a session with correct line wrapping behaviour, albeit keyboard only.

Disclaimer

Since copy-mode has similar concepts of marks, regions, and temp buffers to Emacs .. you'll probably find it straight forward if you're familar with Emacsen. For people using vi-mode in tmux, the same still applies but obviously the default key bindings will differ alot from what I show below.

View pending-muts.md

https://steamcommunity.com/sharedfiles/filedetails/?id=203505605 | Steam Workshop :: M202 Rocket Launcher
http://killingfloor.ru/xforum/threads/m202a1-flash.2654/ | M202A1 Flash | Killing Floor - русский форум
http://killing-floor.ru/weapons/41-oruzhie-ognennaya-vzryvchatka-.html | Weapons [Fire Explosives] »Killing-Floor.ru - Site on the theme of the game Killing Floor
http://killing-floor.ru/weapons/188-signalnyy-pistolet-ili-zhe-svetomet.html | Сигнальный пистолет или же Светомёт » Killing-Floor.ru - Сайт на тему игры Killing Floor
http://killing-floor.ru/weapons/182-metatelnyy-topor-dlya-berserkera.html | Throwing ax for a berserker »Killing-Floor.ru - Site on the theme of the game Killing Floor
http://killing-floor.ru/mutator/181-mutator-pokazyvaet-nanesenyy-uron.html | Mutator shows damage done »Killing-Floor.ru - Site on the theme of the game Killing Floor
http://killing-floor.ru/mutator/170-redaktirovanie-posledney-volny-s-patriarhom.html | Редактирование последней волны с патр

View looking_for_vowels_in_a_string.md
THE_ILIAD = <<-THE_ILIAD
BOOK I

Sing, O goddess, the anger of Achilles son of Peleus, that brought
countless ills upon the Achaeans. Many a brave soul did it send hurrying
down to Hades, and many a hero did it yield a prey to dogs and vultures,
for so were the counsels of Jove fulfilled from the day on which the
son of Atreus, king of men, and great Achilles, first fell out with
one another. 
View vim-cljs-fireplace.md

Create a new project with lein and figwheel:

$ lein new figwheel <project-name>
$ cd <project-name>

Add cider/piggieback to your project profiles dev dependencies:

View jsonbtest.md
                                                              Table "public.posts"
   Column    |              Type              | Collation | Nullable |              Default              | Storage  | Stats target | Description
-------------+--------------------------------+-----------+----------+-----------------------------------+----------+--------------+-------------
 id          | bigint                         |           | not null | nextval('posts_id_seq'::regclass) | plain    |              |
 information | jsonb                          |           |          |                                   | extended |              |
 created_at  | timestamp(6) without time zone |           | not null |                                   | plain    |              |
 updated_at  | timestamp(6) without time zone |           | not null |                                   | plain    |              |
Indexes:
View mysql_limit_revert.md
$ bundle exec rails db:migrate
== 20191101233132 ExtendExecutionDatetimePrecision: migrating =================
-- change_column(:executions, :order_insert_time, :datetime, {:limit=>6})
   -> 0.0912s
== 20191101233132 ExtendExecutionDatetimePrecision: migrated (0.0913s) ========

➜  stack git:(master) ✗ bin/rails db -p
Reading table information for completion of table and column names
You can’t perform that action at this time.