Skip to content

Instantly share code, notes, and snippets.

View pheew's full-sized avatar

Niek Bruins pheew

  • Bruins Zachtgoed B.V.
  • Netherlands
View GitHub Profile
import * as React from 'react'
import { Persistor, persistStore } from 'redux-persist'
import { PersistGate } from 'redux-persist/integration/react'
const WithPersistGate = (Component) => (props) => {
if (!props.store.persistor) {
props.store.persistor = persistStore(props.store)
}
return (
#!/bin/sh
#
# redis - this script starts and stops the redis-server daemon
#
# chkconfig: - 85 15
# description: Redis is a persistent key-value database
# processname: redis-server
# config: /etc/redis/redis.conf
# config: /etc/sysconfig/redis
# pidfile: /var/run/redis.pid