-
Install
TeamCity.conf
andTeamCityAgent.conf
in /etc/init/ -
Create TeamCity in /etc/default/TeamCity
-
Make sure TEAMCITY_DATA_PATH and TEAMCITY_SERVER_PATH are owned by www-data
-
Start TeamCity
sudo service TeamCity start
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 | |
# | |
# this script will attempt to detect any ephemeral drives on an EC2 node and create a RAID-0 stripe | |
# mounted at /mnt. It should be run early on the first boot of the system. | |
# | |
# Beware, This script is NOT fully idempotent. | |
# | |
METADATA_URL_BASE="http://169.254.169.254/2012-01-12" |
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
<%@ tag import="java.util.Formatter" | |
%><%@ tag import="java.security.MessageDigest" | |
%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" | |
%><%@ attribute name="email" required="true" type="java.lang.String" | |
%><%@ attribute name="sz" required="false" type="java.lang.Integer" | |
%><c:if test="${empty sz}"><c:set var="sz">20</c:set></c:if><c:choose | |
><c:when test="${empty email}"><c:set var="hash">00000000000000000000000000000000</c:set></c:when><c:otherwise | |
><c:set var="hash"><%=javax.xml.bind.DatatypeConverter.printHexBinary(MessageDigest.getInstance("MD5").digest(email.toLowerCase().trim().getBytes("UTF-8"))).trim().toLowerCase()%></c:set></c:otherwise | |
></c:choose><img class="gravatarimg${sz}" src="http://www.gravatar.com/avatar/${hash}?s=${sz}&d=mm" alt=""> |
Before upgrading, make sure you are allowing insecure registry access, or your newer docker won't be able to talk to the Deis registry:
sudo bash -c 'mkdir -p /etc/systemd/system/docker.service.d/; cat <<EOF > /etc/systemd/system/docker.service.d/50-insecure-registry.conf
[Service]
Environment="DOCKER_OPTS=--insecure-registry 10.0.0.0/8 --insecure-registry 172.16.0.0/12 --insecure-registry 192.168.0.0/16"
EOF
'
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.io.{DataOutputStream, ByteArrayOutputStream, StringReader} | |
import java.security.interfaces.{ECPublicKey, DSAParams, DSAPublicKey, RSAPublicKey} | |
import java.security._ | |
import java.security.spec.X509EncodedKeySpec | |
import org.apache.commons.codec.binary.Base64 | |
import org.bouncycastle.openssl.{PEMKeyPair, PEMParser} | |
object genPubSSHKey { | |
/** |
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 | |
# | |
# this script will attempt to detect any ephemeral drives on an EC2 node and create a RAID-0 stripe | |
# mounted at /mnt. It should be run early on the first boot of the system. | |
# | |
# Beware, This script is NOT fully idempotent. | |
# | |
METADATA_URL_BASE="http://169.254.169.254/2012-01-12" |
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 javax.net.ssl.SSLParameters; | |
import javax.net.ssl.SSLSocket; | |
import javax.net.ssl.SSLSocketFactory; | |
import java.io.*; | |
/** Establish a SSL connection to a host and port, writes a byte and | |
* prints the response. See | |
* http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services | |
*/ | |
public class SSLPoke { |
ESXi 6.5 | ESXi 6.7 | VMware Fusion 11 | Guest Description |
---|---|---|---|
CRXPod1-64 | VMware CRX Pod 1 | ||
CRXSys1-64 | VMware CRX Sys 1 | ||
amazonlinux2-64 | Amazon Linux 2 or higher, 64-Bit | ||
asianux3Guest | asianux3Guest | asianux3 | Asianux Server 3 |
asianux3_64Guest | asianux3_64Guest | asianux3-64 | Asianux Server 3, 64-Bit |
asianux4Guest | asianux4Guest | asianux4 | Asia Linux 4 |
asianux4_64Guest | asianux4_64Guest | as |
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 python2 | |
import SimpleHTTPServer | |
import SocketServer | |
import logging | |
PORT = 8000 | |
class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): |
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"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<!-- | |
Documented at | |
http://linux.die.net/man/5/fonts-conf | |
To check font mapping run the command at terminal | |
$ fc-match 'helvetica Neue' |
OlderNewer