This file contains 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 | |
# Function to check if SIP is enabled | |
check_sip() { | |
if [[ $(csrutil status) == *"enabled"* ]]; then | |
echo "Warning: System Integrity Protection (SIP) is enabled." | |
echo "Some signing operations may fail. You might need to:" | |
echo "1. Restart in Recovery Mode (Command + R during startup)" | |
echo "2. Run 'csrutil disable'" | |
echo "3. Restart your Mac" |
This file contains 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 java.io.BufferedReader | |
import java.io.File | |
import java.io.InputStreamReader | |
import kotlin.concurrent.thread | |
// This script will determine the framework used to build an iOS app. | |
// Compile: kotlinc FrameworkFinder.kt -include-runtime -d FrameworkFinder.jar | |
// Usage: java -jar FrameworkFinder.jar <path-to-app-bundle> | |
// Example: java -jar FrameworkFinder.jar /Users/username/Desktop/MyApp.app |
This file contains 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
apply from: 'versions.gradle' | |
android { | |
defaultConfig { | |
versionName VERSION_NAME | |
versionCode VERSION_CODE.toInteger() | |
} | |
buildTypes { | |
release {} |
This file contains 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 java.io.IOException; | |
import okhttp3.HttpUrl; | |
import okhttp3.Interceptor; | |
import okhttp3.OkHttpClient; | |
import okhttp3.Request; | |
/** An interceptor that allows runtime changes to the URL hostname. */ | |
public final class HostSelectionInterceptor implements Interceptor { | |
private volatile String host; |
This file contains 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
package com.inperson.android.utils.leastview; | |
import android.content.Context; | |
import android.support.v7.widget.GridLayoutManager; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.View; | |
import android.view.ViewGroup; | |
public class WrappableGridLayoutManager extends GridLayoutManager { |