Given
a1, b1, c1, d1, e1
a2, b2, c2, d2, e2
I could do :g/,/normal 2nd$ to delete everything from second , onwards to give sth like
#!/usr/bin/env ruby | |
# These environment variables are available: | |
# KAMAL_RECORDED_AT | |
# KAMAL_PERFORMER | |
# KAMAL_VERSION | |
# KAMAL_HOSTS | |
# KAMAL_COMMAND | |
# KAMAL_SUBCOMMAND | |
# KAMAL_ROLE (if set) |
FROM rubydata/datascience-notebook | |
RUN rm /home/jovyan/.gemrc |
# Update: Use this repo instead https://github.com/bibstha/twilio-certbot-autoupdater/ | |
# | |
# Make sure you create an api token to be used to auto add temporary TXT entries to your | |
# cloudflare DNS using certbot automatically. | |
# in Cloudflare: My Profile > API Tokens > Create Token | |
# Permission required: domain-name - DNS:Edit | |
# Copy token and replace the XXXX below | |
echo "dns_cloudflare_api_token = XXXXXX" > /tmp/cloudflare.ini | |
# This folder is where certbot downloads files. We will mount it to the certbot docker container later. |
" VimPlug for plugin management | |
" Treesitter + VimMatchup improves start-end matching significantly | |
call plug#begin() | |
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} | |
Plug 'andymass/vim-matchup' | |
call plug#end() | |
lua <<EOF |
# if you haven't cloned rubyfmt yet | |
git clone git@github.com:fables-tales/rubyfmt.git | |
cd rubyfmt | |
# update ruby submodule if previously checked in | |
cd librubyfmt/ruby_checkout/ | |
git reset --hard HEAD | |
cd .. | |
git submodule update | |
# now build ruby | |
cd ruby_checkout |
wget -O /dev/null -q --show-progress http://speedtest.newark.linode.com/100MB-newark.bin |
let g:test#ruby#rails#executable = 'docker compose run -ti --rm backend-test rails test' | |
# Replace backend-test with the name of the service. | |
You wouldn't want to run it in the main service because it ends up using the resetting development database. |
Given
a1, b1, c1, d1, e1
a2, b2, c2, d2, e2
I could do :g/,/normal 2nd$ to delete everything from second , onwards to give sth like
# find sorbet strictly typed files that are not tests and also instantiate instance variables | |
ag '@.+=.+' $(ag -G '.*/?!.*(test)/somepath/.*.rb' 'typed: strict' -l) |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/stat.h> | |
#include <sys/sem.h> | |
#include <unistd.h> | |
union semun { /* Used in calls to semctl() */ | |
int val; | |
struct semid_ds * buf; | |
unsigned short * array; |