Skip to content

Instantly share code, notes, and snippets.

Issue

Git bash would automatically prefix POSIX path with "C:/Program Files/Git". This is problematic if we want to mount files into docker container that expects a POSIX path as the mount target.

Sometimes it will cause the command "$(pwd)" to return the path ending with "C;". E.g.

$ echo $(pwd)
C:\Users\user\data;C
@mjchi7
mjchi7 / sources.list
Created July 13, 2021 06:19 — forked from malikalichsan/sources.list
/etc/apt/sources.list for ubuntu 20.10
deb http://id.archive.ubuntu.com/ubuntu/ groovy main universe restricted multiverse
deb-src http://id.archive.ubuntu.com/ubuntu/ groovy main universe restricted multiverse
deb http://security.ubuntu.com/ubuntu groovy-security main universe restricted multiverse
deb-src http://security.ubuntu.com/ubuntu groovy-security main universe restricted multiverse
deb http://id.archive.ubuntu.com/ubuntu/ groovy-updates main universe restricted multiverse
deb-src http://id.archive.ubuntu.com/ubuntu/ groovy-updates main universe restricted multiverse
deb http://id.archive.ubuntu.com/ubuntu groovy-backports main restricted universe multiverse
deb-src http://id.archive.ubuntu.com/ubuntu groovy-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu groovy partner
deb-src http://archive.canonical.com/ubuntu groovy partner
@mjchi7
mjchi7 / AprConfiguration.java
Created June 26, 2021 04:51 — forked from andreldm/AprConfiguration.java
APR on Spring Boot
import org.apache.catalina.LifecycleListener;
import org.apache.catalina.core.AprLifecycleListener;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.embedded.EmbeddedServletContainerFactory;
import org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* NOTE: You also need to install APR on your system, on Arch Linux the package is called `tomcat-native`.
@mjchi7
mjchi7 / base.html
Created June 7, 2021 15:56 — forked from kapb14/base.html
Flask simplest realtime log file viewer
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" dir="ltr" class="uk-height-1-1">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>flasktest</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.1/css/bulma.min.css" />
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
</head>