Skip to content

Instantly share code, notes, and snippets.

@nbodev
nbodev / uninstall_pkg_macos.sh
Created June 28, 2017 07:08
uninstall pkg from mac os
#!/bin/bash
#date: 28/06/2017, author: nbodev
#remove package from mac os
# tested on mac os Sierra
#steps
#pkgutil --pkgs # list all installed packages
#pkgutil --files the-package-name.pkg # list installed files for a given package
#pkgutil --pkg-info the-package-name.pkg # check the location of a given package
#cd / # assuming the package is rooted at /...
@nbodev
nbodev / TestGlob
Last active November 16, 2017 07:45
import java.io.IOException;
import java.nio.file.FileSystems;
import java.nio.file.FileVisitResult;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.PathMatcher;
import java.nio.file.Paths;
import java.nio.file.SimpleFileVisitor;
import java.nio.file.attribute.BasicFileAttributes;