This file contains hidden or 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 © 2017 Denis Shurygin. All rights reserved. | |
| * Licensed under the Apache License, Version 2.0 | |
| */ | |
| import Foundation | |
| import UIKit | |
| open class LocalizationExtensions { | |
This file contains hidden or 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 BorderedLabel: UILabel { | |
| @IBInspectable var topInset: CGFloat = 0.0 | |
| @IBInspectable var bottomInset: CGFloat = 0.0 | |
| @IBInspectable var leftInset: CGFloat = 5.0 | |
| @IBInspectable var rightInset: CGFloat = 5.0 | |
| @IBInspectable var color: UIColor = .white | |
| override func drawText(in rect: CGRect) { | |
| let insets = UIEdgeInsets.init(top: topInset, left: leftInset, bottom: bottomInset, right: rightInset) |
This file contains hidden or 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 | |
| # --------------------------------------------------------------------- | |
| # Copyright (C) 2019 Evgeny Dats <hintoz@gmail.com> | |
| # | |
| # This file is free software; as a special exception the author gives | |
| # unlimited permission to copy and/or distribute it, with or without | |
| # modifications, as long as this notice is preserved. | |
| # --------------------------------------------------------------------- | |
| XCODEPATH="/Applications/Xcode.app/Contents/Developer/Platforms/OSREPLACE/DeviceSupport/" |
This file contains hidden or 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 | |
| # Assign the value random password to the password variable | |
| rustdesk_pw=$(openssl rand -hex 4) | |
| # Provide a link to your script. | |
| # If you use the script to host it on your server and run it through 'curl -sL https://domain.ru/script.sh | bash' | |
| script_url="" | |
| # Get your config string from your Web portal and Fill Below |
This file contains hidden or 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 | |
| # Assign a random value to the password variable | |
| rustdesk_pw=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1) | |
| # Get your config string from your Web portal and Fill Below | |
| rustdesk_cfg="configstring" | |
| ################################## Please Do Not Edit Below This Line ######################################### |
This file contains hidden or 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
| $ErrorActionPreference= 'silentlycontinue' | |
| # Assign the value random password to the password variable | |
| $rustdesk_pw=(-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_})) | |
| # Provide a link to your script. | |
| # If you use the script to host it on your server and run it through 'curl -sL https://domain.ru/script.sh | bash' | |
| $script_url="" | |
| # Get your config string from your Web portal and Fill Below |