Skip to content

Instantly share code, notes, and snippets.

@kewne
kewne / features.yml
Last active May 30, 2021 08:32
BB-4230 Features
FEATURES:
AUTH_USE_OPENID: false
AUTH_USE_OPENID_PROVIDER: true
AUTOMATIC_AUTH_FOR_TESTING: false
CERTIFICATES_HTML_VIEW: true
CUSTOM_CERTIFICATE_TEMPLATES_ENABLED: true
CUSTOM_COURSES_EDX: false
ENABLE_BULK_ENROLLMENT_VIEW: false
ENABLE_COMBINED_LOGIN_REGISTRATION: true
ENABLE_CORS_HEADERS: true
import i18n from 'i18n'
import UserDetails from './user-details.js'
const I18nContext = React.createContext(i18n.translate);
const App = () => {
const user = useState(getUser())
return <I18nContext.Consumer>
{value =>
@kewne
kewne / H2ServerConfiguration.java
Last active March 19, 2019 10:34
Configuring H2 in-memory database for remote connections (using Spring Boot)
import org.h2.tools.Server;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;
import java.sql.SQLException;
@Profile("h2-server")
@Component
@kewne
kewne / pom.xml
Created February 16, 2017 10:21
Surefire executions
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<executions>
<execution>
<id>unit-tests</id>
<configuration>
<groups>com.mycompany.UnitTest</groups>
</configuration>
@kewne
kewne / keybase.md
Created January 4, 2017 10:44
Keybase

Keybase proof

I hereby claim:

  • I am kewne on github.
  • I am kewne (https://keybase.io/kewne) on keybase.
  • I have a public key whose fingerprint is F729 D25B F986 75F8 F7A6 37A5 0C1C 4AFC 87A4 67CD

To claim this, I am signing this object: