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
| sudo apt update && sudo apt upgrade | |
| sudo apt install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms | |
| sudo modprobe -r b44 b43 b43legacy ssb brcmsmac bcma | |
| modprobe wl |
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
| fastlane gym --workspace "app.xcworkspace" --scheme "app" --clean |
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 | |
| # rodar no diretório raiz onde estão os diretórios dos repos | |
| OLD_IP="0.0.0.0" | |
| NEW_IP="gitlab.constoso.cloud" | |
| find * -maxdepth 0 -type d \( ! -name . \) -print | while read dir | |
| do | |
| cd ${dir} | |
| CURRENT_URL=$(git remote get-url --all origin) | |
| NEW_URL="${CURRENT_URL/$OLD_IP/$NEW_IP}" | |
| echo "change -> ${CURRENT_URL} to ${NEW_URL}" |
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
| openssl x509 -text -inform DER -in bitz_me.cer -pubkey -noout | openssl pkey -pubin -outform der | openssl dgst -sha256 -binary | openssl enc -base64 |
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 | |
| # build-phases.sh | |
| # Formalizador | |
| # | |
| # Created by Tiago Oliveira on 06/06/20. | |
| # Copyright © 2020 Formalizar. All rights reserved. | |
| buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${PROJECT_DIR}//${INFOPLIST_FILE}") | |
| buildNumber=$(($buildNumber + 1)) |
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 | |
| OLD_IP="OLD_DNS" | |
| NEW_IP="NEW_DNS" | |
| find * -maxdepth 0 -type d \( ! -name . \) -print | while read dir | |
| do | |
| cd ${dir} | |
| CURRENT_URL=$(git remote get-url --all origin) | |
| NEW_URL="${CURRENT_URL/$OLD_IP/$NEW_IP}" | |
| echo "change -> ${CURRENT_URL} to ${NEW_URL}" | |
| git remote set-url origin $NEW_URL |
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
| // | |
| // Diagnostics.swift | |
| // Bitz | |
| // | |
| // Created by Tiago Almeida de Oliveira on 14/01/22. | |
| // Copyright © 2022 Bitz. All rights reserved. | |
| // | |
| import os | |
| import FirebaseCrashlytics |
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
| // https://docs.swift.org/swift-book/LanguageGuide/Properties.html#ID617 | |
| public typealias Bindable = ObservableProperty | |
| @propertyWrapper | |
| public final class ObservableProperty<Input> { | |
| public typealias BindableHandler = (Input) -> Void | |
| public var wrappedValue: Input { | |
| didSet { |
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
| var app = "1.10.0-1" | |
| var min = "1.10.0-1" | |
| func convertToInt(version: String) -> Int { | |
| var vnum = 0 | |
| for i in 0..<version.count { | |
| let index = version.index(version.startIndex, offsetBy: i) | |
| let char = version[index] | |
| if char.isNumber, let num = char.wholeNumberValue { | |
| vnum = vnum * 10 + num |
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
| import UIKit | |
| class Master { | |
| var name: String | |
| private(set) var tables: [Table] = [] | |
| private(set) var players: [Player] = [] | |
| init(name: String) { |