Skip to content

Instantly share code, notes, and snippets.

View ivanopcode's full-sized avatar

Ivan ivanopcode

View GitHub Profile
@ivanopcode
ivanopcode / AppearanceObserver.swift
Created February 21, 2025 02:01
Reacting to ScrollView offset
// Copyright (c) 2021-2025 Alexey Grigorev, Ivan Oparin
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
@ivanopcode
ivanopcode / URLEncodedFormEncoder.swift
Created December 6, 2024 23:17
Swift 6 URLEncodedFormEncoder
// Copyright (c) 2019 Alamofire Software Foundation (http://alamofire.org/)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// MIT License
//
// Copyright (c) 2024 Ivan Oparin
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@ivanopcode
ivanopcode / iOS Guide – Creating Unsigned iOS App Builds.md
Last active November 6, 2024 18:28
iOS Guide – Creating Unsigned iOS App Builds

Creating Unsigned iOS App Builds

⚠️ Warning: Unsigned builds are primarily for development/testing purposes and cannot be installed on physical devices.

Build Methods

Method 1: Command Line Approach (Recommended for CI/CD)

1. List Available Schemes

For .xcodeproj:

@ivanopcode
ivanopcode / mkipa
Last active November 6, 2024 18:17
A shell script to convert Xcode archives to iOS App Package (.ipa) files
#!/bin/zsh
# mkipa - iOS Archive to IPA Converter
# Copyright (c) 2024 Ivan Oparin
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
@ivanopcode
ivanopcode / OrderedStrictidSet
Created January 23, 2024 18:58
Swift OrderedStrictidSet data structure draft
// MIT License
//
// Copyright (c) 2024 Ivan Oparin
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@ivanopcode
ivanopcode / m3u8_primitive_swift_encoder_decoder.swift
Created August 18, 2023 15:55
primitive m3u8 encoder-decoder
// License: MIT
// 2023 Ivan Oparin
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
@ivanopcode
ivanopcode / Transcoder.swift
Created August 18, 2023 13:00
ffmpeg_swift_wrapper_transcode_hls_example
//
// Transcoder.swift
//
// Copyright (c) 2020 Changbeom Ahn, 2023 Ivan Oparin
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
@ivanopcode
ivanopcode / xcgen_perdux_module
Created July 10, 2023 23:26
xcgen_perdux_module script that generates named perdux module stub
#!/bin/zsh
# ---------------------------------------------------------------------------------
# Script Name: xcgen_perdux_module
# Version: 1.0.0+2023-06-10
# Author: Ivan Oparin <[email protected]>
#
# License:
# MIT License
#
@ivanopcode
ivanopcode / git-branch-cleanup
Created July 10, 2023 23:12
git-branch-cleanup shell script that deletes local branches
#!/bin/zsh
# ---------------------------------------------------------------------------------
# Script Name: git-branch-cleanup
# Version: 1.0.0+2023-06-11
# Author: Ivan Oparin <[email protected]>
#
# License:
# MIT License
#