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
{ | |
'localToRemoteUrlAccessEnabled' : true, | |
'webSecurityEnabled' : false | |
} |
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
The string "boo:and:foo", for example, yields the following results with these parameters: | |
Regex Limit Result | |
o 5 { "b", "", ":and:f", "", "" } | |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>pro.wulfgar.net.on.users</groupId> | |
<artifactId>postgres-jdbc</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<dependencies> | |
<dependency> | |
<groupId>org.apache.felix</groupId> |
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
karaf@root> list | grep -i spring | |
ID State Blueprint Spring Level Name | |
[ 78] [Active ] [ ] [ ] [ 60] activemq-spring (5.5.1) | |
[ 79] [Active ] [ ] [ ] [ 60] Apache XBean :: Spring (3. | |
7) | |
[ 94] [Active ] [ ] [ ] [ 50] camel-spring (2.8.5) | |
karaf@root> list | grep -i cxf | |
[ 150] [Active ] [Created ] [ ] [ 50] camel-cxf (2.8.5) |
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 | |
iptables --flush | |
iptables --table nat --flush | |
iptables --delete-chain | |
iptables --table nat --delete-chain | |
iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE | |
iptables --append FORWARD --in-interface eth0 -j ACCEPT | |
echo 1 > /proc/sys/net/ipv4/ip_forward |
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
var Person = function(name) { | |
if(name) this.name = name; | |
}; | |
Person.prototype.name = 'No name'; | |
Person.prototype.setName = function(name) { | |
this.name = name; | |
}; | |
Person.prototype.getName = function() { | |
return this.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
private def setupBoard() { | |
// generate board based on observed patterns (see readme) | |
(1..4).each( { | |
if(it == 1) { | |
(minX..maxX).each( { | |
if(it == minX) { | |
board.put("${it},${minY}", ["NORTH":true,"SOUTH":false,"EAST":true,"WEST":false]) | |
} else if(it == maxX) { | |
board.put("${it},${minY}", ["NORTH":true,"SOUTH":false,"EAST":false,"WEST":true]) | |
} else |
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
docker ps -a | awk '{ print $1 }' | xargs -I {} docker rm -f {} |
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"?> | |
<kml xmlns="http://www.opengis.net/kml/2.2"> | |
<Folder> | |
<name>Network Links</name> | |
<visibility>0</visibility> | |
<open>0</open> | |
<description>Network link example 1</description> | |
<NetworkLink> | |
<name>Random Placemark</name> | |
<visibility>0</visibility> |
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/python | |
import random | |
lat_a = random.randrange(35, 40) | |
lon_a = random.randrange(-120, -112) | |
lat_b = random.randrange(35, 40) | |
lon_b = random.randrange(-120, -112) | |
kml = ( |