Skip to content

Instantly share code, notes, and snippets.

View ecdundar's full-sized avatar

ecdundar

View GitHub Profile
@ecdundar
ecdundar / CustomClientFactory
Last active September 8, 2021 14:06
React Native HTTPS Certificate Error Problem - Trust All Certificates
package com.myapplication.extensions;
import android.util.Log;
import com.facebook.react.modules.network.OkHttpClientFactory;
import com.facebook.react.modules.network.OkHttpClientProvider;
import com.facebook.react.modules.network.ReactCookieJarContainer;
import java.security.SecureRandom;
import java.security.cert.CertificateException;
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableHighlight,
NativeAppEventEmitter,
NativeEventEmitter,
NativeModules,
@ecdundar
ecdundar / copymysql.sh
Last active January 9, 2024 18:09
Copy MySQL Database One Server (Remote) To Another (Local) Server
#!/bin/bash
# copymysql.sh
# GENERATED WITH USING ARTUR BODERA'S SCRIPT
# Source script at: https://gist.github.com/2215200
MYSQLDUMP="/usr/bin/mysqldump"
MYSQL="/usr/bin/mysql"