Skip to content

Instantly share code, notes, and snippets.

View bineshtj's full-sized avatar
🎯
Focusing

Binesh T John bineshtj

🎯
Focusing
  • Manchester, United Kingdom
View GitHub Profile
@bineshtj
bineshtj / DisableBitcode.txt
Created June 6, 2020 16:46
Disabling bitcode using bitcode_strip command
Some frameworks don't have bitcode enabled but may contain bitcode markers.
So they can't be used with apps with bitcode enabled.
If we don't have the source of these libraries we can still remove the bitcode
entirely (using -r option) or just leaving the marker (use -m option).
An example of how to do this using bitcode_strip command inside a Podfile:
__________________________________________________________________________
source 'https://github.com/twilio/cocoapod-specs'
@bineshtj
bineshtj / CreateLinuxBootableOnMac.txt
Created September 25, 2019 13:06
Steps to create a linux bootable flash drive on macOS
#1. Convert .iso to .dmg or .img. (On new macOS .dmg is created without specifying the target extension.)
hdiutil convert /path/to/downloaded.iso -format UDRW -o /path/to/newimage
#2. Write image to USB
A) List all disks:
diskutil list
B) Unmount the particular USB disk (Here it is disk3):
diskutil unmountDisk /dev/disk3
C) Write the image to your USB
sudo dd if=/path/to/newimage.dmg of=/dev/disk3 bs=1m
ACTION = build
AD_HOC_CODE_SIGNING_ALLOWED = NO
ALTERNATE_GROUP = staff
ALTERNATE_MODE = u+w,go-w,a+rX
ALTERNATE_OWNER = grantdavis
ALWAYS_SEARCH_USER_PATHS = NO
ALWAYS_USE_SEPARATE_HEADERMAPS = YES
APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer
APPLE_INTERNAL_DIR = /AppleInternal
APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation
@bineshtj
bineshtj / delete_git_submodule.md
Last active March 30, 2020 05:04 — forked from myusuf3/delete_git_submodule.md
How to effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule