Skip to content

Instantly share code, notes, and snippets.

🐕

Sebastián sebastian-palma

🐕
Block or report user

Report or block sebastian-palma

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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
View kubectl_manager.rb
# frozen_string_literal: true
require 'open3'
require 'pry'
module Utils
class GemVerifier
def check_needed_gems
require 'tty-prompt'
rescue LoadError
View conda.md

For installing tensorflow-hub using Conda prefer the next way (it installs the 2.0.0 version):

$ conda install -c conda-forge/label/cf201901 tensorflow-hub 
You can’t perform that action at this time.