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
# Lists all remote repositories | |
git remote -v | |
# Adds a new remote repsitory | |
git remote add koshuke git://github.com/kohsuke/hudson.git | |
# Removes a remote repository | |
git remote rm koshuke | |
# Fetches all commits from a remote |
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 |
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
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
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
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
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
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
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
tail -f fix.log | tr '\1' '|' | grep "whatever" |
OlderNewer