Skip to content

Instantly share code, notes, and snippets.

View ecdundar's full-sized avatar

ecdundar

View GitHub Profile
@ecdundar
ecdundar / sites.cleanup
Last active August 29, 2015 14:27 — forked from yurifedoseev/sites.cleanup
Delete all sites from IIS express configuration
appcmd.exe list site /xml | appcmd delete site /in
@ecdundar
ecdundar / copymysql.sh
Last active September 12, 2024 16:18
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"
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json.Linq;
namespace MyProject.Controllers
{
@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;
+ <meta-data android:name="com.google.firebase.messaging.default_notification_icon" android:resource="@mipmap/ic_notif"/>
+ <service android:name="com.evollu.react.fcm.MessagingService" android:enabled="true" android:exported="true">
+ <intent-filter>
+ <action android:name="com.google.firebase.MESSAGING_EVENT"/>
+ </intent-filter>
+ </service>
+ <service android:name="com.evollu.react.fcm.InstanceIdService" android:exported="false">
+ <intent-filter>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.VIBRATE" />
<application>
<receiver android:name="com.evollu.react.fcm.FIRLocalMessagingPublisher"/>
<receiver android:enabled="true" android:exported="true" android:name="com.evollu.react.fcm.FIRSystemBootEventReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<action android:name="android.intent.action.QUICKBOOT_POWERON"/>
@ecdundar
ecdundar / build.gradle
Created February 18, 2019 06:32
react-native-maps node modules build.gradle
apply plugin: 'com.android.library'
apply from: 'gradle-maven-push.gradle'
android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
minSdkVersion 16
targetSdkVersion 27
import React from 'react';
import { TouchableOpacity, Text, StyleSheet } from 'react-native';
const BBButon = props => {
return (
<TouchableOpacity style={styles.button} onPress={props.itemClick}>
<Text style={styles.text}>{props.title}</Text>
</TouchableOpacity>
);
};
@ecdundar
ecdundar / BBText.js
Created February 25, 2019 07:24
BBText
import React from 'react';
import { TouchableHighlight, Text, StyleSheet } from 'react-native';
const BBText = props => {
return <Text style={styles.text}>{props.text}</Text>;
};
const styles = StyleSheet.create({
text: {
color: '#111825',
import React from 'react';
import { View, TextInput } from 'react-native';
const BBTextInput = props => {
return (
<View
style={{
marginLeft: 35,
marginRight: 35,
marginTop: 10,
borderColor: '#007FFF',