Uninstall package
paru -R package
Uninstall package without its dependencies
paru -Rns package
package org.acme; | |
import com.microsoft.sqlserver.jdbc.SQLServerDriver; | |
import org.flywaydb.core.Flyway; | |
import org.hibernate.boot.MetadataSources; | |
import org.hibernate.boot.registry.StandardServiceRegistryBuilder; | |
import org.hibernate.tool.hbm2ddl.SchemaUpdate; | |
import org.hibernate.tool.schema.TargetType; | |
import org.reflections.Reflections; | |
import org.springframework.jdbc.datasource.SimpleDriverDataSource; |
Uninstall package
paru -R package
Uninstall package without its dependencies
paru -Rns package
goal +MESSAGE: | |
git pull --rebase --autostash | |
git commit --allow-empty -m "Goal: {{MESSAGE}}" | |
git push | |
done +MESSAGE: | |
git pull --rebase --autostash | |
git commit --allow-empty -m "{{MESSAGE}}" | |
git push |
# find pid that blocks the port | |
netstat -ano | findstr :<PORT> | |
# find name of that process | |
tasklist | findstr '<PID> | |
# kill the process | |
taskkill /PID <PID> /F |
mvn com.github.ferstl:depgraph-maven-plugin:aggregate -Dincludes=com.groupId -DcreateImage=true
dot -Tpng dependency-graph.dot > dependency-graph.png
jq -r '["Severity", "Type", "Rule", "File", "Line", "Description"], (.issues[] | [.severity, .type, .rule, .component, ((.textRange.startLine // ""|tostring) + "-" + (.textRange.endLine // ""|tostring)), .message]) | @csv' search.json |
#!/usr/bin/env bash | |
# start tdd in one command 'curl <link-to-raw> | bash -s <folder> | |
if [ $# -ge 1 ] | |
then | |
# jump to folder | |
target="$1" | |
mkdir -p "$target" | |
cd "$target" |
# GIT_EDITOR replaces the text editor that git would show to let you edit the commit message of the squash | |
# GIT_SEQUENCE_EDITOR replaces the text editor that lists the commits for a interactive rebase | |
# Assuming that you use the default mob.sh wip commit message "mob next [ci-skip]", | |
# this script runs an interactive rebase and squashes commits followed by a "wip commit", | |
# and then edits the commit messages to keep only those of non-wip commits. | |
# So you will end up with all manual commits having the changes of wip commits squashed into them. | |
# If you have only wip commits it might fail the rebase, so make sure there is a manual commit in the end. | |
# | |
# E.g.: | |
# manual-commit-2 |
#!/usr/bin/env bash | |
if [ $# -ge 1 ] | |
then | |
# jump to folder | |
target="$1" | |
mkdir -p "$target" | |
cd "$target" | |
fi |
import java.io.File | |
import java.time.Duration | |
import java.time.LocalDateTime | |
import java.time.format.DateTimeFormatter | |
val formatter: DateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSS") | |
fun main() { | |
File("log.txt") | |
.readLines() |