Skip to content

Instantly share code, notes, and snippets.

@oliver-norden
oliver-norden / App.js
Created July 20, 2023 08:04
React cookie consent component
import logo from './logo.svg';
import './App.css';
import CookieConsent from './components/CookieConsent';
function App() {
let currentLocale = 'sv';
return (
<div className="App">
@oliver-norden
oliver-norden / .env
Created March 14, 2022 10:04
Checkproof mailhog
MAIL_DRIVER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
@oliver-norden
oliver-norden / .env
Last active March 15, 2021 10:44
Silverstripe mailtrap configuration
# .env
MAILTRAP_USER="<Mailtrap SMTP username>"
MAILTRAP_PASS="<Mailtrap SMTP password>"
@oliver-norden
oliver-norden / silverstripe.json
Last active May 10, 2021 09:45
Silverstripe VSCode Snippets
{
"Loop": {
"prefix": ["loop", "ssloop"],
"body": ["<% loop $${1:itterable} %>", "\t$0", "<% end_loop %>"],
"description": "Silverstripe template loop"
},
"With": {
"prefix": ["with", "sswith"],
"body": ["<% with $${1:object} %>", "\t$0", "<% end_with %>"],
"description": "Silverstripe with"