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
" 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) |
After migrating from heroku to dokku, we had to also chance codeship so we deploy to dokku. I followed the following steps to successfully deploy to dokku.
cat /tmp/codeship_projectname.pub | ssh root@yourdokkuinstance "sudo sshcommand acl-add dokku [description]"
#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; |
// Playing around with sysv message queue | |
// This program will | |
// 1. Create a sysv message queue | |
// 2. Send messages | |
// 3. Receive messages | |
// How to run | |
// touch /tmp/c.txt <- this file is necessary for ftok to run. | |
// gcc -o mq message_queue.c | |
// ./mq send <- sends random long each time it is executed | |
// ./mq receive <- receives the values in the queue and displays them one at a time, oldest first. |
Install notes for Manjaro
sudo mhwd -i linux58
sudo pacman -S linux58-headers
sudo pacman -S broadcom-wl-dkms