oc -n "${NAMESPACE}" delete secret "${SECRET_NAME}"
oc -n "${NAMESPACE}" create secret generic "${SECRET_NAME}" --from-env-file="secrets/${SECRET_NAME}.env"
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
<?php | |
function parseAttributes($text) { | |
$attributes = array(); | |
$pattern = '#(?(DEFINE) | |
(?<name>[a-zA-Z][a-zA-Z0-9-:]*) | |
(?<value_double>"[^"]+") | |
(?<value_single>\'[^\']+\') | |
(?<value_none>[^\s>]+) | |
(?<value>((?&value_double)|(?&value_single)|(?&value_none))) |
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
<?php | |
/** | |
* Smarty Whitespace Control | |
* | |
* {-tag} remove white space infront of tag up to the previous non-whitespace character or beginning of the line | |
* "text \n\n\t {-tag}" -> "text \n\n{tag}" | |
* "text \n\n\t text\t {-tag}" -> "text \n\n\t text{tag}" | |
* {--tag} remove white space infront of tag up to the previous non-whitespace character | |
* "text \n\n\t {--tag}" -> "text{tag}" |
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 <Foundation/Foundation.h> | |
#import <EXUpdates/EXUpdatesAppController.h> | |
#import <React/RCTBridgeDelegate.h> | |
#import <UIKit/UIKit.h> | |
#import <UMCore/UMAppDelegateWrapper.h> | |
@interface AppDelegate : UMAppDelegateWrapper <RCTBridgeDelegate, EXUpdatesAppControllerDelegate> | |
@end |
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
// https://coderwall.com/p/yzlqpq | |
(function($){ | |
function touch(event) { | |
event.preventDefault(); | |
var runFunc = $(this).data('activateRunFunc'); | |
runFunc && runFunc(); | |
} | |
function click(event) { | |
event.preventDefault(); |
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
const needsPolyfill = !window.Intl | |
/* eslint-disable import/no-webpack-loader-syntax */ | |
const intl = require('bundle-loader?lazy&name=intl!intl') | |
/* eslint-enable import/no-webpack-loader-syntax */ | |
const polyfilled = needsPolyfill && new Promise(resolve => { | |
intl(resolve) | |
}) |
This gist is based on Hosting An App on Your Servers in order to create standalone applications that contain all bundles and assets (that have not been expo publish
ed) and do not download over-the-air updates (OTA).
We needed APKs and IPAs for integration/end-to-end testing that would not pull the latest OTA updates, but rather run the code they were built with. We didn't want to expo publish
countless intermediate versions. We needed the ability to build different versions concurrently without one build interfering with the other.
change the values of manifestBaseUrl
and releaseChannel
in post-expo-export.ts
to suit your needs
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
➜ ./gradlew bundleRelease --console plain +? ✗ [git:build/daedalus] | |
Parallel execution with configuration on demand is an incubating feature. | |
> Configure project :@sentry_react-native | |
WARNING: The specified Android SDK Build Tools version (28.0.0) is ignored, as it is below the minimum supported version (28.0.3) for Android Gradle Plugin 3.3.2. | |
Android SDK Build Tools 28.0.3 will be used. | |
To suppress this warning, remove "buildToolsVersion '28.0.0'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools. | |
> Configure project :app | |
AWS Device Farm Plugin version 1.3 |
- Takes values from a text file and converts them into HTTP requests (against an echo service with a request execution time of 150ms - 200ms).
- splits the text file into chunks of
$CHUNKS
number of items which get executed in sequence by a singlecurl
invocation that reuses the connection (reducing TCP and TLS overhead) $PARALLEL
number of chunks are executed concurrently bysem
(of GNU parallel)
The demo generates 100
requests. Each request's response is stored to disk (because why not).
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
// https://github.com/bestiejs/platform.js | |
import platform from 'platform' | |
export const OS = (platform.os.family || '').toLowerCase() | |
export const ANDROID = OS === 'android' | |
export const IOS = OS === 'ios' | |
export const VERSION = parseFloat(platform.version) | |
export const MAJOR_VERSION = Math.floor(VERSION) |