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
diff -uNr apache-log4cxx-0.10.0/config.guess edited/config.guess | |
--- apache-log4cxx-0.10.0/config.guess 2005-10-25 15:14:37.000000000 +0900 | |
+++ edited/config.guess 2020-01-22 21:49:49.647262463 +0900 | |
@@ -1,13 +1,12 @@ | |
#! /bin/sh | |
# Attempt to guess a canonical system name. | |
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | |
-# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. | |
+# Copyright 1992-2019 Free Software Foundation, Inc. | |
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 <iostream> | |
#include <fstream> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <fcntl.h> | |
#include <cstring> | |
#include <cstdio> | |
#include <sys/stat.h> | |
using namespace std; |
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
/* | |
* Copyright (c) 2020 KangDroid, aka Jason.HW.Kang[HyunWoo Kang] | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, version 3. | |
* | |
* This program is distributed in the hope that it will be useful, but | |
* WITHOUT ANY WARRANTY; without even the implied warranty of | |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
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
FROM mcr.microsoft.com/windows/servercore:ltsc2019 | |
RUN powershell (new-object System.Net.WebClient).Downloadfile('https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u282-b08/OpenJDK8U-jdk_x64_windows_hotspot_8u282b08.msi', 'C:\jre-8u91-windows-x64.msi') | |
RUN powershell (new-object System.Net.WebClient).Downloadfile('https://github.com/git-for-windows/git/releases/download/v2.30.1.windows.1/MinGit-2.30.1-64-bit.zip', 'C:\git.zip') | |
RUN powershell Expand-Archive 'C:\git.zip' -DestinationPath 'C:\git' | |
RUN powershell $env:PATH = 'C:\git\cmd;C:\git\mingw64\bin;C:\git\usr\bin;{0}' -f $env:PATH ; \ | |
[Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine) | |
RUN powershell msiexec.exe /i 'C:\jre-8u91-windows-x64.msi' INSTALLLEVEL=3 /quiet | |
CMD ["powershell"] |
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 com.example.demo.domain | |
import com.mongodb.client.result.UpdateResult | |
import org.springframework.beans.factory.annotation.Autowired | |
import org.springframework.data.mongodb.core.MongoTemplate | |
import org.springframework.data.mongodb.core.aggregation.* | |
import org.springframework.data.mongodb.core.query.Criteria | |
import org.springframework.data.mongodb.core.query.Query | |
import org.springframework.data.mongodb.core.query.Update | |
import org.springframework.stereotype.Repository |
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
FROM adoptopenjdk:11-jdk-hotspot | |
RUN apt update | |
RUN apt install git -y | |
RUN git clone https://github.com/Navi-Cloud/Navi-Server /root/Navi-Server | |
CMD ["/bin/bash"] |
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
## | |
# You should look at the following URL's in order to grasp a solid understanding | |
# of Nginx configuration files in order to fully unleash the power of Nginx. | |
# https://www.nginx.com/resources/wiki/start/ | |
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/ | |
# https://wiki.debian.org/Nginx/DirectoryStructure | |
# | |
# In most cases, administrators will remove this file from sites-enabled/ and | |
# leave it as reference inside of sites-available where it will continue to be | |
# updated by the nginx packaging team. |
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 | |
BASE_FILE=$1 # Base File | |
# Global New File | |
NEW_FILE=/tmp/newServer.jar | |
# Metadata for Set one | |
SET_ONE_NAME="Navi-Set1" | |
SET_ONE_PORT=8080 |
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 | |
# Run Server with nohup | |
nohup /opt/mssql/bin/sqlservr --accept-eula & | |
# Sleep for 5 seconds.. | |
sleep 5 | |
# Setup default db | |
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P testPassword@ -Q "CREATE DATABASE [kdr-test]" |
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 room = await database.ChatRooms | |
.Include(r => r.Participants) | |
.ThenInclude(p => p.Chatbot) | |
.FirstOrDefaultAsync(r => | |
r.Participants.Count(p => p.ChatbotId == botId || p.UserId == user.Id) == 2 && | |
r.Participants.Count == 2); | |
// '채팅방 참여자 정보'를 채팅방 정보에서 불러오기[ | |
// 해당 코드는 데이터베이스에서 이루어지는 코멘트가 아닌 LINQ 쿼리입니다!] |
OlderNewer