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 { connect } from "react-redux" | |
import { addItems } from "../../redux/actions/items" | |
const enhance = connect( | |
({ items }) => ({ items }), | |
{ addItems } | |
) | |
class ItemsList extends React.Component { |
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
2018/01/13 13:25:41 [error] 205#0: *40 client intended to send too large body: 765502933 bytes, client: 127.0.0.1, server: localhost, request: "POST /import.php HTTP/1.1", host: "localhost:306" | |
2018/01/22 15:20:31 [error] 256#0: *1963 client intended to send too large body: 22744960 bytes, client: 127.0.0.1, server: localhost, request: "POST /import.php HTTP/1.1", host: "localhost:306" | |
2018/01/22 15:42:06 [error] 88528#0: *2 FastCGI sent in stderr: "PHP message: PHP Warning: POST Content-Length of 22744960 bytes exceeds the limit of 8388608 bytes in Unknown on line 0" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "POST /import.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost:306" | |
2018/01/22 15:43:06 [error] 88528#0: *2 upstream timed out (60: Operation timed out) while reading upstream, client: 127.0.0.1, server: localhost, request: "POST /import.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost:306" | |
2018/01/22 19:51:36 [e |
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 ruby | |
# NOTE: Requires Ruby 2.1 or greater. | |
# This script can be used to parse and dump the information from | |
# the 'html/contact_info.htm' file in a Facebook user data ZIP download. | |
# | |
# It prints all cell phone call + SMS message + MMS records, plus a summary of each. | |
# | |
# It also dumps all of the records into CSV files inside a 'CSV' folder, that is created |
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, | |
Text, | |
TextInput, | |
TouchableOpacity } from 'react-native'; | |
// Validate.js validates your values as an object |
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
@extends('layouts.dashboard') | |
@section('content') | |
<div class="row"> | |
<div class="col-md-12"> | |
<div class="panel panel-default"> | |
<div class="panel-heading"> | |
<h3 class="panel-title">Manage Users</h3> |
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
-!- apache2/sites-available » sudo apt-get remove libapache2-mod-php7.1 100 ↵ | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
You might want to run 'apt-get -f install' to correct these: | |
The following packages have unmet dependencies: | |
libapache2-mod-php : Depends: libapache2-mod-php7.1 but it is not going to be installed | |
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). | |
-!- apache2/sites-available » apt-get -f install 100 ↵ |
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
# Adapted from https://petermolnar.net/database-backups-to-google-drive/ | |
# Works for linux systems | |
# | |
# 1. Install grive https://github.com/Grive/grive | |
# | |
# for ubuntu/debian use: | |
# $ sudo add-apt-repository ppa:nilarimogard/webupd8 | |
# $ sudo apt-get update | |
# $ sudo apt-get install grive | |
# |
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 | |
$query = 'ma'; | |
$names = ['Kevin', 'Michael', 'Joseph', 'Mark', 'Edward', 'Velma', 'William', 'Mary', 'Kimani']; | |
// $target = ['Mark', 'Mary', 'Michael', 'Kimani', 'Velma', 'William', 'Edward', 'Joseph', 'Kevin']; | |
// $result = ['Mark', 'Mary', 'Kimani', 'Michael', 'Velma', 'William', 'Edward', 'Kevin', 'Joseph']; | |
// the slight difference is because the longer words have more irrelevant characters | |
function weights($query) { // return weight of letters determined by their order of appearance | |
$query = strtolower($query); // eliminate case sensitivity |
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 | |
use Illuminate\Console\Command; | |
use Symfony\Component\Console\Input\InputOption; | |
use Symfony\Component\Console\Input\InputArgument; | |
class AppURL extends Command { | |
/** | |
* The console command name. |
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 | |
use Illuminate\Console\Command; | |
use Symfony\Component\Console\Input\InputOption; | |
use Symfony\Component\Console\Input\InputArgument; | |
class AppDebug extends Command { | |
/** | |
* The console command name. |
NewerOlder