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
# | |
# systemd unit file for CentOS 7, Ubuntu 15.04 | |
# | |
# Customize this file based on your bundler location, app directory, etc. | |
# Put this in /usr/lib/systemd/system (CentOS) or /lib/systemd/system (Ubuntu). | |
# Run: | |
# - systemctl enable sidekiq | |
# - systemctl {start,stop,restart} sidekiq | |
# | |
# This file corresponds to a single Sidekiq process. Add multiple copies |
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
events { | |
worker_connections 1024; | |
use epoll; | |
} | |
http { | |
upstream app_proxy { | |
server lvh.me:3000; | |
} |
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
.container { | |
overflow-y: scroll; | |
scrollbar-width: none; /* Firefox */ | |
-ms-overflow-style: none; /* IE 10+ */ | |
} | |
.container::-webkit-scrollbar { /* WebKit */ | |
width: 0; | |
height: 0; | |
} |
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
checkSameReadandWrite = (software) =>{ | |
let { sodtwareList } = this.state | |
const writing = ['ClaroRead','Texthelp Read&Write','WordQ'] | |
let activeSoftNames = softwareList.filter(s => s.isActive).map(s => s.name) | |
if (writing.includes(software.name) && writing.some(s => activeSoftNames.includes(s))) { | |
//then it you show an error | |
} | |
} |
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 Modal from 'components/common/Modal/Modal' | |
import Button from 'components/common/Button/Button' | |
import './UpgradeModal.css' | |
const UpgradeModal = ({onButtonClick, ...props}) => { | |
return( | |
<Modal className='UpgradeModal' {...props}> | |
<div className='content main-bg-theme'> | |
<div className='images'> |
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 { connect } from 'react-redux' | |
import _UpgradeModal from 'components/UserPage/UpgradeModal/UpgradeModal' | |
import {closeUpgradeModal} from 'actions/UpgradeModal' | |
import {push} from 'connected-react-router' | |
import {SHOP} from 'constants/Location' | |
class UpgradeModal extends Component { | |
handleButtonClick = () => { | |
this.props.closeUpgradeModal() |
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
<div>×</div> |
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
^[\w]([A-Za-z0-9]|(\.)(?![._])|(_(?!\.))){2,28}([A-Za-z0-9]|(_(?!\.)))$ | |
[allow numbers, letters, '.' , '_'] | |
[3 - 30 characters] | |
[cant start with '.', can't have 2 dots one following another] | |
Examples: | |
lol.name [ok] | |
lol name [not ok] | |
lol,name [not ok ] |
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
location / { | |
proxy_pass http://localhost:8080; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
proxy_set_header Host $host; | |
} | |
# Usually it only needs to add these lines, as we probably have other ones been set | |
# |
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
# /etc/systemd/system/rails-puma.service | |
# rvm wrapper default systemd rails | |
# systemctl enable rails-puma | |
# systemctl start rails-puma | |
[Unit] | |
Description=Rails Puma Webserver | |
Wants=network-online.target | |
After=network.target network-online.target | |
NewerOlder