Skip to content

Instantly share code, notes, and snippets.

View hintoz's full-sized avatar
🏠

Evgeny hintoz

🏠
  • Russia
View GitHub Profile
@hintoz
hintoz / LocalizationExtensions.swift
Created September 8, 2017 21:49
Localization Extensions
/*
* Copyright © 2017 Denis Shurygin. All rights reserved.
* Licensed under the Apache License, Version 2.0
*/
import Foundation
import UIKit
open class LocalizationExtensions {
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)
@hintoz
hintoz / XCODEBETAOS.sh
Last active April 24, 2019 12:50
Creates a link for iOS, tvOS, and WatchOS beta from the Xcode beta to the release Xcode. #Xcode #XcodeBeta #iOSBeta
#!/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/"
@hintoz
hintoz / InstallRustDesk.MACOS.sh
Last active July 2, 2026 17:02
A modified script for downloading and installing the latest version of RustDesk for macOS
#!/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
@hintoz
hintoz / InstallRustDesk.LINUX.sh
Created July 2, 2026 17:06
A modified script for downloading and installing the latest version of RustDesk for Linux
#!/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 #########################################
@hintoz
hintoz / InstallRustDesk.WIN.ps1
Created July 2, 2026 17:15
A modified script for downloading and installing the latest version of RustDesk for Windows
$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