import React, { Component } from 'react';
import { TouchableWithoutFeedback, View, TextInput } from 'react-native';
import dismissKeyboard from 'react-native/Libraries/Utilities/dismissKeyboard';
export default class LoginForm extends Component {
constructor(props) {
This file contains hidden or 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
| // Go to post page -> click show popup people like post -> run script | |
| // 04/06/2017 | |
| var keepContinue = 0; | |
| var cancel = setInterval(function(){ | |
| keepContinue++; | |
| var seeMore = document.getElementsByClassName('pam uiBoxLightblue uiMorePagerPrimary'); | |
| if(seeMore.length == 1) { | |
| seeMore[0].click(); | |
| } else { | |
| inviteAll(); |
This file contains hidden or 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
| // Backup | |
| mysqldump -u root -p databasename | gzip > databasename.sql.gz | |
| // Restore | |
| zcat databasename.sql.gz | mysql -u root -p databasename |
This file contains hidden or 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
| sudo tar -zcvf xxx.tar.gz /var/xxx/ | |
| sudo tar -xzvf xxx.tar.gz |
This file contains hidden or 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
| [program:laravel-worker] | |
| process_name=%(program_name)s_%(process_num)02d | |
| command=php /var/www/xxx/artisan queue:work redis --timeout=0 --tries=8 | |
| autostart=true | |
| autorestart=true | |
| numprocs=8 | |
| redirect_stderr=true | |
| stdout_logfile=/var/www/xxx/worker.log |
This file contains hidden or 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
| RewriteBase /laravel-site |
This file contains hidden or 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
| CREATE DATABASE xxxDatabase; | |
| CREATE USER 'xxxUser'@'localhost' IDENTIFIED BY 'xxxPassword'; | |
| GRANT ALL PRIVILEGES ON xxxDatabase.* TO 'xxxUser'@'localhost'; | |
| FLUSH PRIVILEGES; |
This file contains hidden or 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
| location ^~ /xxx { | |
| alias /var/www/xxx/public; | |
| try_files $uri $uri/ @xxx; | |
| location ~* \.php { | |
| fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; | |
| fastcgi_split_path_info ^(.+\.php)(.*)$; | |
| include fastcgi_params; | |
| fastcgi_param SCRIPT_FILENAME /var/www/xxx/public/index.php; | |
| } |
This file contains hidden or 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 | |
| try | |
| { | |
| $conn = new PDO ("sqlsrv:server=(local);Database=DatabaseName", "user", "password"); | |
| $conn->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION ); | |
| // Param | |
| $idReturn = 0; // Param Out | |
| $name = 'Name'; // Pram In |
OlderNewer