Skip to content

Instantly share code, notes, and snippets.

View cstroe's full-sized avatar
🐔

Cosmin Stroe cstroe

🐔
View GitHub Profile
@cstroe
cstroe / gist:3324cb932cd6f866ca82
Created February 5, 2015 21:05
Set the format of the default formatter for java.util.logging messages
-Djava.util.logging.SimpleFormatter.format="%1$tc %2$s%n%4$s: %5$s%6$s%n"
@cstroe
cstroe / Pair.java
Created August 30, 2015 06:50
Comparable Pair with generics
// adapted from http://stackoverflow.com/a/3646398/1591777
public class Pair<FIRST extends Comparable<FIRST>, SECOND extends Comparable<SECOND>> implements Comparable<Pair<FIRST, SECOND>> {
public final FIRST first;
public final SECOND second;
private Pair(FIRST first, SECOND second) {
this.first = first;
this.second = second;
}
@cstroe
cstroe / fuse.md
Last active April 23, 2024 09:13
FUSE on Ubuntu

FUSE on Ubuntu

It seems that Fuse is compiled into the Ubuntu kernel by default.

To test you can use sshfs:

sudo apt-get install sshfs
mkdir tmp
sshfs localhost:/tmp ./tmp

ls tmp

* [ffmpeg bindings](https://github.com/giorgisio/goav)
* [Reading from a webcam](https://github.com/blackjack/webcam)
@cstroe
cstroe / OpenSourceCRM.rst
Last active November 13, 2024 13:24
A distilled list of open-source CRM software
@cstroe
cstroe / linux-mint-mate-20.2-install-docker.md
Last active October 21, 2024 07:39
Install Docker on Linux Mint 20.2 Mate Edition

Install Docker on Linux Mint 20.2 Mate Edition

Using the Graphical User Interface (GUI)

  1. Click the Linux Mint Menu Button at the bottom left of the screen to open the Linux Mint Menu.
  2. Under the "System" section, click "Software Manager".
  3. In the Software Manager window, use the search box at the top right and search for "docker".
  4. Click on "Docker.io - Linux Container Runtime".
  5. Click the green "Install" button at the top right. Enter your administrator password when prompted.
  6. Open the Linux Mint Menu again (see step 1), search for "Users and Groups", and click it to open the "User Settings".