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"?> | |
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<servers> | |
<server> | |
<!-- Link this id here to the repo ID in the mirror section --> | |
<id>repo</id> | |
<username>deployment</username> | |
<password>password</password> |
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
#include <apr.h> | |
#include <apr_general.h> | |
#include <apr_pools.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <apr_strings.h> | |
#include <apr_time.h> | |
/* Compile this beast with | |
* $> export APR_LIBS="`apr-1-config --cflags --cppflags --includes --ldflags --link-ld --libs`" |
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
FacesContext context = FacesContext.getCurrentInstance(); | |
FlowHandler handler = context.getApplication().getFlowHandler(); | |
handler.transition(context, null, handler.getFlow(context, "", FLOW_NAME), null, ""); | |
return FLOW_NAME; |
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
#!/bin/sh | |
TARGET=/opt/roller | |
TARGET_TMP=${TARGET}/tmp | |
DBNAME="rollerdb" | |
DBUSER="roller" | |
DBPASSWORD="roller" | |
echo "Switching to postgres ..." | |
echo "I hope you created the rollerdb before ..." |
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
#!/bin/sh | |
TARGET=/opt/roller | |
TARGET_TMP=${TARGET}/tmp | |
UPLOADS=$TARGET/uploads | |
THEMES=$TARGET/themes | |
PLANET_CACHE=$TARGET/planetcache | |
SEARCH_INDEX=$TARGET/searchindex | |
KEY1="coffeeCrewSetupKey1" | |
KEY2="coffeeCrewSetupKey2" |
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
root@sigusr1:$ | |
TARGET=/opt/roller | |
TARGET_TMP=${TARGET}/tmp | |
UPLOADS=$TARGET/uploads | |
THEMES=$TARGET/themes | |
PLANET_CACHE=$TARGET/planetcache | |
SEARCH_INDEX=$TARGET/searchindex | |
#ROLLER_FILENAME="apache-roller-4.0.1-snapshot-20080211.tar.gz" | |
ROLLER_FILENAME="apache-roller-4.1-snapshot-m1.tar.gz" | |
CTX_ROOT="blogs" |
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
#!/bin/sh | |
# Script to periodically synchronize a remote directory with your | |
# local QNAP storage. | |
# Source folders/user on remote machine | |
BACKUP_SOURCE_USER="backup-user" | |
BACKUP_SOURCE_HOST="backuphost.example.com" | |
BACKUP_SOURCE_FOLDER="/backup/subdir" |
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.coffeecrew.examples.enumeration; | |
public class Main { | |
public static void main(String[] args) { | |
for (ProgrammingLanguage pl: ProgrammingLanguage.values()) { | |
printProgrammingLanguage(pl); | |
printMoreAdjacent(ProgrammingLanguage.C, pl); | |
} | |
} |
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.coffeecrew.examples.enumeration; | |
/** | |
* This enumeration describes the hardware adjacency | |
* of the specified programming languages. | |
* @author j | |
*/ | |
public enum ProgrammingLanguage { | |
/* ASM is hardware ;) */ |
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
@ApplicationScoped @Path("/") @Produces(MediaType.TEXT_HTML) | |
public class Index { | |
@GET @Path("/{any : .*}") | |
public Response root() { | |
return Response.ok().entity("<!DOCTYPE html>\n" + | |
"<html>\n" + | |
" <head>\n" + | |
" <title>Response</title>\n" + | |
" </head>\n" + |
NewerOlder