Skip to content

Instantly share code, notes, and snippets.

View djbe's full-sized avatar

David Jennes djbe

View GitHub Profile
@djbe
djbe / AtlantisHTTPClient.swift
Last active July 13, 2022 23:47
MitM for Vapor
#if canImport(Atlantis)
import Atlantis
#endif
import Vapor
#if canImport(Atlantis)
extension Application.Clients.Provider {
static var atlantis: Self {
.init { application in
application.clients.use {
@djbe
djbe / migrate-alamofire5.sh
Created September 29, 2021 23:57
Migrate Alamofire5
#!/bin/bash
set -Eeuo pipefail
shopt -s extglob
update_swift_files() {
find . -name '*.swift' -print0 -o -type d \( -path .git -o -name Pods -o -name .build -o -name build -o -name Rome -o -name fastlane -o -name Generated \) -prune | xargs -0 perl -0pi -e "$@"
}
fix_dataresponse() {
@djbe
djbe / Lottie.stencil
Last active August 27, 2020 04:22
SwiftGen template for Lottie animations
// Generated using SwiftGen — https://github.com/SwiftGen/SwiftGen
{% if files %}
{% set accessModifier %}{% if param.publicAccess %}public{% else %}internal{% endif %}{% endset %}
{% set documentPrefix %}{{param.documentName|default:"Document"}}{% endset %}
import Lottie
import UIKit
// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length
{
"name": "MobileVLCKit",
"version": "2.2.1",
"summary": "MobileVLCKit is an Objective-C wrapper for libvlc's external interface on iOS.",
"homepage": "https://wiki.videolan.org/VLCKit/",
"license": {
"type": "LGPLv2.1",
"file": "MobileVLCKit-binary/COPYING.txt"
},
"authors": [
Pod::Spec.new do |s|
s.name = 'libffi'
s.version = '3.0.13'
s.license = 'MIT'
s.summary = 'A portable foreign-function interface library.'
s.homepage = 'http://sourceware.org/libffi/'
s.author = { 'Anthony Green' => 'green@moxielogic.com',
'Raffaele Sena' => 'aff367@gmail.com',
'Jon Beniston' => 'jon@beniston.com',
'Bo Thorsen' => 'bo@suse.de',
Pod::Spec.new do |s|
s.name = 'AHValidation'
s.version = '0.0.1'
s.summary = 'An extensible validation library for Cocoa.'
s.homepage = 'https://github.com/warrenm/AHValidation'
s.author = 'Auerhaus Development'
s.source = {
:git => 'https://github.com/warrenm/AHValidation.git'
}
s.platform = :ios, '5.0'
Pod::Spec.new do |s|
s.name = 'MHProgressView'
s.version = '0.0.1'
s.summary = 'A simple progressview indicator that looks like the progressview in Instagram.'
s.homepage = 'https://github.com/michaelhenry/MHProgressView'
s.author = 'Michael Henry Pantaleon', 'michaelhenry119@yahoo.com.ph'
s.source = {
:git => 'https://github.com/michaelhenry/MHProgressView.git'
}
s.platform = :ios, '5.0'
Pod::Spec.new do |s|
s.name = 'MHFacebookImageViewer'
s.version = '0.0.1'
s.summary = 'A new Image Viewer inspired by Facebook.'
s.homepage = 'https://github.com/michaelhenry/MHFacebookImageViewer'
s.author = 'Michael Henry Pantaleon', 'michaelhenry119@yahoo.com.ph'
s.source = {
:git => 'https://github.com/michaelhenry/MHFacebookImageViewer.git'
}
s.platform = :ios, '5.0'
Pod::Spec.new do |s|
s.name = 'DCTCoreDataStack'
s.version = '1.0.2'
s.summary = 'Easily sets up a read to use core data stack.'
s.homepage = 'https://github.com/danielctull/DCTCoreDataStack'
s.license = { :type => 'BSD', :file => 'Readme.textile' }
s.author = 'Rolandas Razma'
s.source = { :git => 'https://github.com/danielctull/DCTCoreDataStack.git' }
s.platform = :ios, '5.1'
Pod::Spec.new do |s|
s.name = 'RRBaseInternationalization'
s.version = '0.0.1'
s.summary = 'iOS6 Base Internationalization backport to iOS5.'
s.homepage = 'https://github.com/RolandasRazma/RRBaseInternationalization'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = 'Rolandas Razma'
s.source = { :git => 'https://github.com/RolandasRazma/RRBaseInternationalization.git' }
s.platform = :ios, '5.1'