Skip to content

Instantly share code, notes, and snippets.

View hintoz's full-sized avatar
🏠
Working from home

Evgeny Dats hintoz

🏠
Working from home
  • 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 <[email protected]>
#
# 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.sh
Last active November 1, 2024 16:56
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)
# Set or change the password
set_rustdesk_pw=false
# Get your config string from your Web portal and Fill Below
# Use a reverse Base64 string in the format {"host":"HOSTADDRESS","relay":"","api":"","key":"HOSTKEY"}