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
-- | |
-- ** setting up example tables and data ** | |
-- | |
-- | |
CREATE TABLE task ( | |
id BIGSERIAL , | |
name TEXT, | |
parent_id BIGINT REFERENCES task(id), | |
PRIMARY KEY (id) |
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 fi.markoa.proto.jersey2.jetty; | |
import org.eclipse.jetty.server.Server; | |
import org.eclipse.jetty.webapp.WebAppContext; | |
public class JettyWebApp { | |
public static void main(String ... args) throws Exception { | |
Server server = new Server(8090); | |
WebAppContext webapp = new WebAppContext(); | |
webapp.setContextPath("/app1"); |
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 fi.markoa.proto.jersey2.jetty; | |
import org.eclipse.jetty.server.Server; | |
import org.eclipse.jetty.webapp.Configuration; | |
import org.eclipse.jetty.webapp.WebAppContext; | |
public class JettyWebApp { | |
public static void main(String ... args) throws Exception { | |
Server server = new Server(8090); | |
Configuration.ClassList classlist = Configuration.ClassList.setServerDefault(server); |
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 fi.markoa.experiment.servlet3; | |
import javax.servlet.AsyncContext; | |
import javax.servlet.ServletException; | |
import javax.servlet.annotation.WebServlet; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import java.io.IOException; |
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 fi.markoa.experiment.servlet3; | |
import javax.servlet.AsyncContext; | |
import javax.servlet.ServletException; | |
import javax.servlet.annotation.WebServlet; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import java.io.IOException; |
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
#!/usr/bin/env python | |
import sys | |
import socket | |
sock = socket.socket() | |
sock.connect(("127.0.0.1", 26542)) | |
ss = sock.makefile() | |
for i in range(1, 5000000): |
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 fi.markoa.proto.libload; | |
import java.io.File; | |
import java.io.IOException; | |
import java.net.JarURLConnection; | |
import java.net.URL; | |
import java.util.ArrayList; | |
import java.util.Enumeration; | |
import java.util.List; | |
import java.util.jar.JarEntry; |
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
organization := "fi.markoa" | |
name := "sbt-demo" | |
version := "0.0.1" | |
scalaVersion := "2.11.7" | |
libraryDependencies += "org.foo" % "bar" % "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
#!/bin/bash | |
# | |
# requires CA.pl from OpenSSL: https://github.com/openssl/openssl/blob/master/apps/CA.pl.in | |
# | |
# generating CA.pl from OpenSSL source: | |
# /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" \ | |
# "-oMakefile" apps/CA.pl.in > "apps/CA.pl" | |
# sudo cp apps/CA.pl /usr/local/bin | |
# |
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
# initialize physical device to be used as a physical volume with LVM | |
# (below we assume the newly added block device was "/dev/sdb") | |
pvcreate /dev/sdb | |
# add physical volume to volume group | |
vgextend ubuntu-vg /dev/sdb | |
# extend logical volume and file system | |
lvextend -r /dev/ubuntu-vg/root /dev/sdb |
OlderNewer