1036

Vim: Copy text into command mode

Copy the text as usual, then after you've pressed : you can type ctrl-R " to paste it there.

vim
1035

Vim: Local file completion from insert home

Start typing /home and the ctrl-x ctrl-f and it'll autocomplete it for you.

vim
1034

Keep an SSH connection alive

ServerAliveInterval 60 in your .ssh/config means the client will send packets to the server every 60 seconds to ensure the connection stays open.

unix
1033

Using gradle to download Jar dependencies only

This will download all the dependency jars (and in turn their dependencies too) into the current directory. You need to blank settings.gradle file in the same directory. It works with gradle 7.

apply plugin: 'application'

repositories {
  mavenCentral()
}

dependencies {
  implementation 'org.xerial:sqlite-jdbc:3.40.0.0'
}

task copyToLib(type: Copy) {
  into "."
  from configurations.runtimeClasspath
}

build.dependsOn(copyToLib)

Then run gradle build.

gradle java kotlin
Page 1 of 231
vimscript tut
plpgsql tut
nodejs tut
android   
unix   
java   
javascript   
swift  
vim  
kotlin  
ios  
swiftui  
css  
gradle  
maven  
sql
git
kmm
ant
awk
sed
elm
wip
csv
ML
ssh
xml
svg
I'm no longer visiting the Reddit tabloid. It's anger-inducing and divisive
I'm writing small thoughts here