Skip to content

Instantly share code, notes, and snippets.

View ftes's full-sized avatar

Fredrik Teschke ftes

View GitHub Profile
@ftes
ftes / GeneratedRepoTest.groovy
Created February 11, 2019 09:06
Spring data mongo + Testcontainers
package de.ftes.examples.spring_data_mongo_testcontainers
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.autoconfigure.EnableAutoConfiguration
import org.springframework.context.ApplicationContextInitializer
import org.springframework.context.ConfigurableApplicationContext
import org.springframework.core.env.PropertySource
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories
import org.springframework.test.context.ContextConfiguration
import org.testcontainers.containers.GenericContainer
@ftes
ftes / update.sh
Created April 12, 2018 12:05
Arch Linux Updates Indicator update command
gnome-terminal -e 'sh -c "aurman -Syu --noconfirm ; pacman -Syu --noconfirm ; echo Done - Press enter to exit; read" '
nginx-letsencrypt:
image: 'jrcs/letsencrypt-nginx-proxy-companion:latest'
volumes:
- '/etc/ssl/certs:/etc/nginx/certs'
- '/var/run/docker.sock:/var/run/docker.sock:ro'
volumes_from:
- nginx-proxy
nginx-proxy:
image: 'jwilder/nginx-proxy:latest'
environment:
mysql:
image: 'mariadb:latest'
environment:
- MYSQL_ROOT_PASSWORD=<pw>
wordpress:
image: 'wordpress:latest'
environment:
- LETSENCRYPT_EMAIL=admin@url.com
- LETSENCRYPT_HOST=url.com
- VIRTUAL_HOST=url.com
@ftes
ftes / vcxproj-use-v110.ps1
Last active January 21, 2016 17:53
Use v110 platform toolset instead of inten in all .vcxproj files located (recursively) in current directory
Get-Childitem -recurse -Filter "*.vcxproj" | `
Foreach-Object {
set fileName $_.FullName
set tmp GetTempFileName
cat $fileName | %{$_ -replace "\<PlatformToolset\>Intel C\+\+ Compiler XE 13\.0\<\/PlatformToolset\>","<PlatformToolset>v110</PlatformToolset>"} | Out-File -Encoding ASCII $tmp
del $fileName
mv $tmp $fileName
}