- 리소스 만들기를 통해 새 IoT Hub 서비스 생성
- IoT 허브에 접근하여, IoT Edge를 눌러 접근
- IoT Edge 디바이스 추가를 눌러 '대칭키'를 선택하고, 자동 키 생성을 통해 키 생성
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
{ | |
"FormattingOptions": { | |
"NewLine": "\n", | |
"UseTabs": false, | |
"TabSize": 2, | |
"IndentationSize": 2, | |
"SpacingAfterMethodDeclarationName": false, | |
"SpaceWithinMethodDeclarationParenthesis": false, | |
"SpaceBetweenEmptyMethodDeclarationParentheses": false, | |
"SpaceAfterMethodCallName": 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
# This is the default Xcode Server Apache configuration file. | |
# This file supports Apache 2.4 running in macOS. | |
# This configuration allows you run Xcode Server on *:80/xcode on your machine | |
# which is useful when you run Xcode Server on reverse proxy. | |
<VirtualHost *:80> | |
<IfModule !mod_deflate.c> | |
LoadModule deflate_module libexec/apache2/mod_deflate.so | |
</IfModule> |
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
typealias APICompletionHandler<T: Decodable> = ((Result<T, Error>) -> Void) | |
typealias ResultT<T> = (Result<T, Error>) | |
final class APIManager { | |
public static let shared = APIManager() | |
// TEMP URL!!! | |
private let stringURL = "https://api.cenox.co" | |
private let baseURL: URL |
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/sh | |
if [ "$#" -lt 1 ]; then | |
echo -e "$# is Illegal number of parameters.\n" | |
echo -e "Usage: $0 confluence-installed-dir\n" | |
echo "Example: $0 /var/atlassian/atlassian-confluence-6.7.0" | |
exit 1 | |
fi | |
CONF_DIR=$1 |
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 UIKit | |
/// Struct that contains current version and all past versions. | |
struct AppVersion: Codable { | |
var currentVersion: String | |
var pastVersions: [String] | |
} | |
class VersionManager { | |
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 | |
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 4 | head -n 1) | |
SERVER_NAME=vpn-$NEW_UUID | |
gcloud compute instances create $SERVER_NAME \ | |
--machine-type "e2-micro" \ | |
--image-family ubuntu-2004-lts \ | |
--image-project "ubuntu-os-cloud" \ | |
--boot-disk-size "10" \ | |
--boot-disk-type "pd-ssd" \ | |
--boot-disk-device-name "$NEW_UUID" \ |
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
enum Rank { | |
case top | |
case mid | |
case low | |
func whoIsHim() -> String { | |
if self == .top { return "GyungDal" } | |
return "I don't know" | |
} | |
} |
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
// | |
// main.swift | |
// TSSAPI | |
// | |
// Created by CenoX on 2018. 1. 12.. | |
// Copyright © 2018년 CenoX. All rights reserved. | |
// | |
import Foundation | |
import Dispatch |
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
class UILoadingAlertController: UIAlertController { | |
var activityIndicator: UIActivityIndicatorView! | |
let activityRect: CGRect = CGRect(x: 116, y: 60, width: 40, height: 40) | |
var isShowing: Bool = false | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
activityIndicator = UIActivityIndicatorView(frame: activityRect) |
NewerOlder