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 certbot certonly --webroot --webroot-path=/var/www/html -d example.com -d www.example.com |
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 | |
// Insert into the sheet | |
$options = array('valueInputOption' => 'RAW'); | |
$values = [ | |
["$email","$first_name","$last_name","$zip_code"] | |
]; | |
$body = new Google_Service_Sheets_ValueRange(['values' => $values]); | |
$result = $service->spreadsheets_values->append(SHEET_ID, 'A1:D', $body, $options); |
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
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
server_name somedomain.com www.somedomain.com; | |
return 301 https://$server_name$request_uri; | |
} | |
server { | |
listen 443 ssl http2 default_server; | |
listen [::]:443 ssl http2 default_server; |
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
import React from 'react' | |
import ReactDOM from 'react-dom' | |
import { Router, Route, IndexRoute, browserHistory } from 'react-router' | |
import Home from './components/Home' | |
import SomeComponent from './components/SomeComponent' | |
ReactDOM.render ( | |
<Router history={browserHistory}> | |
<Route path="/"> | |
<IndexRoute component={Home} /> |
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
import React from 'react' | |
import ReactDOM from 'react-dom' | |
import { BrowserRouter } from 'react-router-dom' | |
import App from './components/App' | |
ReactDOM.render ( | |
<BrowserRouter> | |
<App /> | |
</BrowserRouter>, | |
document.querySelector('.main') |
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
import React, { Component } from 'react' | |
import Home from './Home' | |
import About from './About' | |
import { Route } from 'react-router-dom' | |
require('./style') | |
export default class App extends Component { | |
render() { | |
return ( | |
<div className="app"> |
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
export default class ShippingInfo extends Component { | |
} |
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
// Immediately Invoked Function | |
$(function() { | |
let url = window.location.href | |
let extracted = url.slice(url.indexOf('#') + 1) | |
let isPresent = /review/.test(extracted) | |
if (isPresent) { | |
let customer, videoUrl, websiteUrl | |
extracted = extracted.slice(extracted.indexOf('-') + 1) |
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 | |
$get= $service->spreadsheets_values->get(SHEET_ID, 'A1:A'); | |
$emails = $get->values; | |
for($i = 0; $i < count($emails); $i++) { | |
if($emails[$i][0] === $email_two) { | |
$is_duplicate = true; | |
$range = "A".++$i.":H"; | |
break; |
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
var redux = { | |
tasks: [ | |
{ | |
id: 1, | |
task: 'Run a marathon.' | |
}, | |
{ | |
id: 2, | |
task: 'Make cupcakes.' | |
} |