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 | |
#This script changes the database with the latest file in repo's !sql folder. This script is triggered by a manual step in bitbucket pipeline | |
cd !sqldump; | |
latest_sql_file=`ls -Art | tail -n 1`; | |
cd .. | |
#connect to devel database and | |
#1. drop the current database there | |
TABLES=$(mysql --host <host> -u <user> -p<pass> <db-name> -e 'show tables' | awk '{ print $1}' | grep -v '^Tables' ); |
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
#!/usr/bin/env bash | |
current_date=`date +%Y_%m_%d_%H_%M`; | |
cd /Users/richardzilahi/zilahir/tuts/wp/1/wordpress/!sqldump | |
mkdir -p "$current_date"; | |
mysqldump --net_buffer_length="83000" -u wp_user -pwp_password -h 0.0.0.0 -P 32770 --skip-extended-insert wordpress > /Users/richardzilahi/zilahir/tuts/wp/1/wordpress/!sqldump/"$current_date"/"$current_date".sql | |
cd /Users/richardzilahi/zilahir/tuts/wp/1/wordpress/!sqldump/"$current_date"; | |
echo "adding new sql file to repo" | |
cd /Users/richardzilahi/zilahir/tuts/wp/1/wordpress/ | |
git add /Users/richardzilahi/zilahir/tuts/wp/1/wordpress/!sqldump/"$current_date"/"$current_date".sql |
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
[ | |
{ | |
"url": "http://www.mfa.gov.hu/emb/helsinki/", | |
"title": "Magyar Nagykövetség, Helsinki", | |
"desc": "" | |
}, | |
{ | |
"url": "http://www.suomiunkari.fi/", | |
"title": "Suomi-Unkari Seura", | |
"desc": "Finn – Magyar baráti társaság" |
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 React, { Component } from 'react'; | |
import { StatusBar, Platform } from 'react-native'; | |
import { Provider, connect } from 'react-redux'; | |
import { ThemeProvider } from 'styled-components'; | |
import styled from 'styled-components/native'; | |
import { FormattedWrapper } from 'react-native-globalize'; | |
import firebase from 'firebase'; | |
import messages from './Messages'; | |
import store from './store'; | |
import { colors } from './utils/constants'; |
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 React, { Component } from 'react' | |
import { View, StyleSheet, Text, StatusBar, ActivityIndicator, LinearGradient, Image, NetInfo, Animated, Dimensions, Easing } from 'react-native' | |
import { connect } from 'react-redux' | |
import firebase from 'firebase' | |
import { Facebook } from 'expo' | |
import { TextField } from 'react-native-material-textfield' | |
import Button from '../../components/common/Button' | |
import { colors } from '../../styles/colors' | |
import Logo from '../../../assets/logo.png' | |
import { setUser } from "../../actions/setUser" |
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
/* eslint-disable */ | |
import React from 'react' | |
import PropTypes from 'prop-types' | |
import LibraryHeaderStyle from './LibraryHeader.module.scss' | |
const LibraryHeader = (props) => { | |
const { selectedTab } = props | |
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
server { | |
listen 80; | |
server_name 127.0.0.1; | |
root /var/www/html; | |
index index.php; | |
access_log /var/log/nginx/access.log; | |
error_log /var/log/nginx/error.log; |
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 React from "react"; | |
import { createAppContainer, createStackNavigator, createSwitchNavigator, createDrawerNavigator, createBottomTabNavigator } from "react-navigation" | |
import { Vibration, Text } from 'react-native' | |
import Icon from '@expo/vector-icons/Ionicons' | |
import IconBadge from 'react-native-icon-badge' | |
import { FontAwesome, MaterialCommunityIcons, MaterialIcons } from '@expo/vector-icons' | |
import UserWelsomeScreen from './screens/UserWelcomeScreen/UserWelcomeScreen' | |
import HistoryScreen from './screens/HistoryScreen/HistoryScreen' | |
import HomeScreen from './screens/Home/HomeScreen' | |
import QrReadScreen from "./screens/QrReadScreen/QrReadScreen" |
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/sh | |
branch="$(git rev-parse --abbrev-ref HEAD)" | |
if [ "$branch" = "master" ]; then | |
echo "You can't commit directly to master branch" | |
exit 1 | |
fi |