This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ork.kkarad.examples; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.context.annotation.Import; | |
import org.springframework.context.support.GenericApplicationContext; | |
import org.springframework.mock.env.MockPropertySource; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for every directory run multiple commands | |
find . -maxdepth 1 -type d -exec sh -c "cd {} && mvn clean && cd -" \; | |
#when disk is out of space identify directory which occupies most space | |
df -h | |
du -s * | sort -r -n | head -n 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tail -f fix.log | tr '\1' '|' | grep "whatever" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface Identifiable<T> { | |
T getId(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Foo { | |
public static void main(String[] args) { | |
System.out.println(sun.net.InetAddressCachePolicy.get()); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PanelViewer { | |
public static void main(String[] args) { | |
JFrame frame = new JFrame("Gui Test"); | |
frame.getContentPane().setLayout(new FlowLayout()); | |
//frame.add(new PerspectivePanel()); | |
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | |
frame.pack(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.kkarad; | |
import java.io.File; | |
import java.io.IOException; | |
import java.net.URISyntaxException; | |
import java.net.URL; | |
import java.net.URLClassLoader; | |
import java.util.Enumeration; | |
import java.util.jar.JarEntry; | |
import java.util.jar.JarFile; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
less -M -e file.log file.log.? file.log.?? | |
cat file.log file.log.? file.log.?? | less -M -N | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
host% cd /path/to/the/parent/tree | |
host% du -sk * | sort -rn | |
hotst%df -h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set branch=main | |
set workspace=C:\workspace\ | |
set depot=//depot/my-project/ | |
p4 diff -se | p4 -x - edit | |
p4 diff -sd | p4 -x - delete | |
dir C:\workspace /b /s /a-d | p4 -x - add | |
dir %workspace%%branch%\project-x /b /a-d | p4 -x - add |
NewerOlder