Skip to content

Instantly share code, notes, and snippets.

View melastmohican's full-sized avatar

Mariusz Jurgielewicz melastmohican

View GitHub Profile
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.maventest</groupId>
<artifactId>lifecycle-test</artifactId>
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
<name>aproject</name>
<url>http://maven.apache.org</url>
<scm>
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.maventest</groupId>
<artifactId>lifecycle-test</artifactId>
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
<name>aproject</name>
<url>http://maven.apache.org</url>
<dependencies>
@melastmohican
melastmohican / vid360NoSound.sh
Created January 4, 2017 19:11
Script for removing sound from 360 degree video and copying metadata from original
#!/bin/bash
rm -f *-0.mp4*
rm -f *.xm*
for i in *.{MP4,mp4}
do
ffmpeg -i "$i" -vcodec copy -an "${i%.mp4}-0.mp4"
exiftool -xmp:all -X -w! xml "$i"
exiftool -TagsFromFile "${i%.mp4}.xml" "${i%.mp4}-0.mp4"
exiftool -o "${i%.mp4}.xmp" -xmp:all "$i"
exiftool -TagsFromFile "${i%.mp4}.xmp" "${i%.mp4}-0.mp4"
@melastmohican
melastmohican / jh.sh
Created February 15, 2017 04:47
Get Java Home location
/usr/libexec/java_home -v 1.8
echo test | sudo -S -u guest bash -c whoami
@melastmohican
melastmohican / zip-lrcat.sh
Last active March 1, 2017 05:12
Create multiple individual zip files
find . -type f -name "*.lrcat" -execdir zip '{}.zip' '{}' \;
"Hello world".inject("") { a, b -> b += a }​​​​​​​​​​
@melastmohican
melastmohican / ReverseString.java
Created March 2, 2017 05:06
Reverse string in Java 8
class ReverseString {
public static void main(String[] args) {
System.out.println("Hello World".chars().mapToObj(i -> Character.toString((char)i)).reduce("", (a, b) -> b + a));
}
}
#!/bin/bash
rm -rf ~/.Trash/*
rm -rfv /Volumes/*/.Trashes
@melastmohican
melastmohican / eclipse-cleanup.sh
Created March 3, 2017 19:42
Cleanup hanging Eclipse workspace
/Applications/dev/eclipse/jee-neon/Eclipse.app/Contents/MacOS/eclipse -clean -clearPersistedState
/Applications/dev/eclipse/jee-neon/Eclipse.app/Contents/MacOS/eclipse -clean -refresh