Skip to content

Instantly share code, notes, and snippets.

View antonyalkmim's full-sized avatar

Antony Alkmim antonyalkmim

View GitHub Profile
@antonyalkmim
antonyalkmim / README.md
Created September 14, 2021 19:21 — forked from progrium/README.md
Setting up M1 Macs for x86 development with Homebrew

Key Points

  • In general, binaries built just for x86 architecture will automatically be run in x86 mode
  • You can force apps in Rosetta 2 / x86 mode by right-clicking app, click Get Info, check "Open using Rosetta"
  • You can force command-line apps by prefixing with arch -x86_64, for example arch -x86_64 go
  • Running a shell in this mode means you don't have to prefix commands: arch -x86_64 zsh then go or whatever
  • Don't just immediately install Homebrew as usual. It should most likely be installed in x86 mode.

Homebrew

Not all toolchains and libraries properly support M1 arm64 chips just yet. Although

@antonyalkmim
antonyalkmim / cleanup.sh
Created October 9, 2020 12:21 — forked from Bunn/cleanup.sh
Cleanup space
#!/bin/bash
echo "Removing unavailable simulators..."
xcrun simctl delete unavailable
echo "Brew cleanup..."
brew cleanup
echo "Removing Xcode Caches..."
rm -rf ~/Library/Caches/com.apple.dt.Xcode
@antonyalkmim
antonyalkmim / gist:462abefc914a0db40ca1f384755819c3
Created November 12, 2019 12:11 — forked from steipete/ios-xcode-device-support.sh
Using iOS 13.2 devices with Xcode 11.1 (instead of Xcode 11.2) (also, Xcode 10.3)
// The trick is to link the DeviceSupport folder from the beta to the stable version.
// sudo needed if you run the Mac App Store version. Always download the dmg instead... you'll thank me later :)
// Support iOS 13.2 devices (Xcode 11.2) with Xcode 11.1:
sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/13.2 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
// Xcode 10.3 to Xcode 11
sudo ln -s /Applications/Xcode-11.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/13.0 /Applications/Xcode-10.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
// Then restart Xcode and reconnect your devices. You will need to do that for every beta of future iOS versions
@antonyalkmim
antonyalkmim / instantclientguide.md
Created September 12, 2017 14:55 — forked from plasx/instantclientguide.md
Installing instant client 12 on macOS Sierra
Lisa Dziuba [10:01]
@artnosenko hi, here is my list, which I used when started learning Swift
1. Apple guides :pray:
https://developer.apple.com/library/content/referencelibrary/GettingStarted/DevelopiOSAppsSwift/index.html#//apple_ref/doc/uid/TP40015214-CH2-SW1
2. Stanford lectures (free!) :
https://itunes.apple.com/in/course/developing-ios-10-apps-swift/id1198467120
3. raywenderlich.com tutorials
@antonyalkmim
antonyalkmim / zsh.md
Created February 20, 2017 13:27 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
@antonyalkmim
antonyalkmim / estados-cidades.json
Created October 20, 2016 16:07 — forked from letanure/estados-cidades.json
JSON estados cidades
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",
@antonyalkmim
antonyalkmim / mvvm
Created October 13, 2016 15:39 — forked from denisnazarov/mvvm
iOS ReactiveCocoa/MVVM Resources
## Collection of posts/videos I've found useful while researching mvvm
https://speakerdeck.com/jspahrsummers/code-reuse-with-mvvm
http://cocoasamurai.blogspot.com/2013/03/basic-mvvm-with-reactivecocoa.html
http://www.teehanlax.com/blog/model-view-viewmodel-for-ios/
http://martinfowler.com/eaaDev/PresentationModel.html
http://twocentstudios.com/blog/2014/06/08/on-mvvm-and-architecture-questions/
@antonyalkmim
antonyalkmim / Results+Rx.swift
Created July 24, 2016 05:11 — forked from fpillet/Results+Rx.swift
turn Realm auto-updating Results into an RxSwift Observable sequence
//
// Results+Rx.swift
//
// Make Realm auto-updating Results observable. Works with Realm 0.98 and later, RxSwift 2.1.0 and later.
//
// Created by Florent Pillet on 12/02/16.
// Copyright (c) 2016 Florent Pillet. All rights reserved.
//
import Foundation
@antonyalkmim
antonyalkmim / ADC.hpp
Last active June 13, 2016 23:26 — forked from anonymous/ADC.hpp
Arduino - Conversor Analogico/Digital
/*
* ADC.hpp
*
* Created on: 06/06/2016
* Author: puc
*/
#include <avr/io.h>