You're probably using development keys in production. Switch to use production keys!
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
function timeElapsedString($ptime) | |
{ | |
$etime = time() - $ptime; | |
if ($etime < 1) | |
{ | |
return '0 seconds'; | |
} | |
$a = array( 12 * 30 * 24 * 60 * 60 => 'år,år', |
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 { withRouter } from 'react-router-dom'; // <--- import `withRouter`. We will use this in the bottom of our file. | |
class ContactForm extends Component { | |
submitForm (e) { | |
e.preventDefault() | |
this.props.history.push('/thank-you'); // <--- The page you want to redirect your user to. | |
} |
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
> cat /etc/bluetooth/main.conf | |
ControllerMode = bredr | |
Disable=Headset | |
AutoConnect=true | |
Also: | |
https://askubuntu.com/questions/689281/pulseaudio-can-not-load-bluetooth-module-15-10-16-04-16-10 |
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 { Redirect } from 'react-router-dom'; | |
import { ApolloProvider } from 'react-apollo'; | |
import { InMemoryCache } from 'apollo-cache-inmemory'; | |
import ApolloClient from 'apollo-client'; | |
import { setContext } from 'apollo-link-context'; | |
import { WebSocketLink } from 'apollo-link-ws'; | |
import { HttpLink } from 'apollo-link-http'; | |
import { split } from 'apollo-link'; |
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
function escapeNewLines(str: string) { | |
return str.replace(/\n/g, '\\n'); | |
} | |
function fixOpenAiNewLineResponse(str: string) { | |
return str | |
.split('"') | |
.map((chunk, index) => { | |
// Only replace \n inside the JSON string values, which are in every other index after splitting by " | |
if (index % 2 === 1) { |
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
#!/bin/bash | |
# URL containing the list of domains and dates | |
URL="https://data.internetstiftelsen.se/bardate_domains.txt" | |
echo "Starting script..." | |
echo "Downloading domain list from $URL..." | |
# Download the file and sort the entries by date | |
sorted_entries=$(curl -s "$URL" | sort) |