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(i = 0; i < 1000000; i++) { | |
println("Hello world") | |
} |
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
File initialFile = new File("/home/dcheung/keycloak.json"); | |
InputStream targetStream = new FileInputStream(initialFile); | |
KeycloakInstalled keycloakInstalled = new KeycloakInstalled(targetStream); | |
System.out.println("-- Login in --"); | |
keycloakInstalled.loginCommandLine(); | |
System.out.println("-- Getting token --"); | |
System.out.println(keycloakInstalled.getTokenString()); | |
// Output |
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
import xml.etree.ElementTree as ET | |
import os | |
tree = ET.parse('config.xml') | |
root = tree.getroot() | |
slave = root.find('slaves') | |
ovirt_slaves = slave.findall('org.jenkinsci.plugins.ovirt.OVirtVMSlave') |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<persistence version="2.0" | |
xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> | |
<persistence-unit name="relationdbPU"> | |
<provider>org.hibernate.ejb.HibernatePersistence</provider> | |
<jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source> | |
<class>org.jboss.da.listings.api.model.WhiteArtifact</class> | |
<class>org.jboss.da.listings.api.model.BlackArtifact</class> | |
<properties> |
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.commonjava.maven.plugins.betterdep.impl; | |
import org.commonjava.maven.atlas.graph.RelationshipGraph; | |
import org.commonjava.maven.atlas.graph.ViewParams; | |
import org.commonjava.maven.atlas.graph.filter.ProjectRelationshipFilter; | |
import org.commonjava.maven.atlas.graph.mutate.ManagedDependencyMutator; | |
import org.commonjava.maven.atlas.graph.spi.neo4j.FileNeo4jConnectionFactory; | |
import org.commonjava.maven.atlas.ident.ref.ProjectVersionRef; | |
import org.commonjava.maven.cartographer.Cartographer; | |
import org.commonjava.maven.cartographer.CartographerBuilder; |
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
import com.google.gson.Gson; | |
import javax.servlet.ServletException; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.util.HashMap; | |
/** |
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
import java.util.*; | |
import java.util.concurrent.*; | |
public class Test { | |
public static void main(String[] args) { | |
ConcurrentHashMap<Integer, Long> map; | |
long[] array_key; | |
long[] array_value; | |
long avgHashMapTime; |
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
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
class WorkerThread implements Runnable { | |
private String command; | |
public WorkerThread(String s){ | |
this.command = s; | |
} |
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
<?xml version="1.0"?> | |
<metacity_theme> | |
<info> | |
<name>Adwaita</name> | |
<author>GNOME Art Team <art.gnome.org></author> | |
<copyright>Â Intel, Â Red Hat, Lapo Calamandrei</copyright> | |
<date>2012</date> | |
<description>Default GNOME 3 window theme</description> | |
</info> |
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
# keybindings to make resizing easier | |
bind -r C-h resize-pane -L | |
bind -r C-j resize-pane -D | |
bind -r C-k resize-pane -U | |
bind -r C-l resize-pane -R | |
# Set window notifications | |
setw -g monitor-activity on | |
set -g visual-activity on |
NewerOlder