Skip to content

Instantly share code, notes, and snippets.

Avatar

Morgan Gangwere indrora

View GitHub Profile
@JakeWharton
JakeWharton / build.gradle
Last active Mar 18, 2020
Prevent wildcard versions in your Gradle project. These undermine deterministic and hermetic builds and are generally considered bad practice.
View build.gradle
allprojects {
afterEvaluate { project ->
project.configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.version.contains('+')) {
throw new GradleException("Wildcard dependency forbidden: ${requested.group}:${requested.name}:${requested.version}")
}
}
}
@csivanich
csivanich / lock.sh
Last active Sep 15, 2020
i3 Blurred Lock Screen
View lock.sh
#!/bin/bash
# i3lock blurred screen inspired by /u/patopop007 and the blog post
# http://plankenau.com/blog/post-10/gaussianlock
# Timings are on an Intel i7-2630QM @ 2.00GHz
# Dependencies:
# imagemagick
# i3lock
You can’t perform that action at this time.