Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View daggerok's full-sized avatar

Maksim Kostromin daggerok

View GitHub Profile

Example of jatJar task using Gradle Kotlin DSL:

val mainClass = "com.github.daggerok.Main" // replace it!

tasks {
  register("fatJar", Jar::class.java) {
    archiveClassifier.set("all")
    duplicatesStrategy = DuplicatesStrategy.EXCLUDE
 manifest {
@daggerok
daggerok / install-mac-ports-no-root.bash
Last active December 27, 2023 06:50
Install MacPorts 2.5.3 without sudo / root privileges
# install
mkdir ~/macports
cd ~/macports
curl -O https://distfiles.macports.org/MacPorts/MacPorts-2.5.3.tar.bz2
tar xf MacPorts-2.5.3.tar.bz2
cd MacPorts-2.5.3/
./configure --enable-readline --prefix=$HOME/macports --with-no-root-privileges
make && make install

Keybase proof

I hereby claim:

  • I am daggerok on github.
  • I am daggerok (https://keybase.io/daggerok) on keybase.
  • I have a public key ASD2BJOwnIJGyOhOunelECN8tYXgMdVGnFaSNAxz6i4y-Qo

To claim this, I am signing this object:

@daggerok
daggerok / docker-ce-ubuntu-17.10.md
Created November 10, 2017 19:55 — forked from levsthings/docker-ce-ubuntu-17.10.md
Install Docker CE on Ubuntu 17.10

Installing Docker CE on Ubuntu 17.10 Artful Aardvark

As of 20/10/2017, a release file for Ubuntu 17.10 Artful Aardvark is not available on Download Docker.

If you are used to installing Docker to your development machine with get-docker script, that won't work either. So the solution is to install Docker CE from the zesty package.

sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
@daggerok
daggerok / 0_reuse_code.js
Created March 31, 2017 09:54
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console