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
services: | |
traefik: | |
privileged: true | |
image: 'traefik:2.9' | |
command: | |
- '--log.level=INFO' | |
- '--global.checkNewVersion=true' | |
- '--providers.docker=true' | |
- '--providers.docker.exposedbydefault=true' | |
- '--entrypoints.web.address=:80' |
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
embed-server --server-config=standalone-ha.xml | |
batch | |
# add informix jdbc driver | |
module add --name=com.informix.jdbc --resources=/tmp/informix-jdbc.jar --dependencies=javax.api,javax.transaction.api | |
# Create driver | |
/subsystem=datasources/jdbc-driver=informix:add( \ | |
driver-module-name=com.informix.jdbc, \ | |
driver-name=informix, \ |
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 org.keycloak.adapters.springboot.KeycloakSpringBootConfigResolver; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
@Configuration | |
public class KeycloakConfig { | |
@Bean | |
public KeycloakSpringBootConfigResolver keycloakConfigResolver() { |
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 | |
DOCKER_DEB=docker-engine-1.13.1.deb | |
OCP_TAR=openshift-origin-client-tools-v3.11.0.tar.gz | |
wget https://ftp.yandex.ru/mirrors/docker/pool/main/d/docker-engine/docker-engine_1.13.1-0~ubuntu-xenial_amd64.deb -O $DOCKER_DEB | |
wget https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz -O $OCP_TAR | |
sed -i 's/archive.ubuntu.com/free.nchc.org.tw/g' /etc/apt/sources.list |
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"> | |
<profiles> | |
<profile> | |
<id>jdk8-default</id> | |
<activation> | |
<jdk>1.8</jdk> | |
</activation> |
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
# <類型>(<更動範圍>): (類型的值見下面描述) <主題> (最多50個字) | |
# 解釋為什麼要做這些改動 | |
# |<---- 請限制每行最多72個字 ---->| | |
# 提供相關文章和其它資源的鏈接和關鍵字 | |
# 例如: Github issue #23 | |
# 如果是要關閉特定 Issue 或 Bug. 可以使用 Closes PROJECT-1 or Resolves PROJECT-1 or Fixes PROJECT-1 | |
# 具體參考 https://docs.gitlab.com/ee/user/project/integrations/jira.html |
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
export FrameworkPathOverride=/usr/local/Cellar/mono/5.4.1.6/lib/mono/4.6.1-api |
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
<PropertyGroup Condition=” ‘$(TargetFramework)’ == ‘net461’ “> | |
<FrameworkPathOverride>/usr/local/Cellar/mono/5.4.1.6/lib/mono/4.6.1-api</FrameworkPathOverride> | |
</PropertyGroup> |
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
public class WebApiApplication : System.Web.HttpApplication | |
{ | |
protected void Application_BeginRequest(Object sender, EventArgs e) | |
{ | |
if (!Request.IsLocal) | |
{ | |
switch (Request.Url.Scheme) | |
{ | |
case "http": | |
if (Uri.UriSchemeHttps != Request.Headers.Get("X-Forwarded-Proto")) |
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 * as React from 'react'; | |
import { Link, RouteComponentProps } from 'react-router-dom'; | |
import { connect } from 'react-redux'; | |
import { ApplicationState } from '../store'; | |
import * as WeatherForecastsState from '../store/WeatherForecasts'; | |
type StateToProps = WeatherForecastsState.WeatherForecastsState; | |
type DispatchToProps = typeof WeatherForecastsState.actionCreators; | |
interface WeatherComponentProps { | |
startDateIndex: string; |
NewerOlder