Skip to content

Instantly share code, notes, and snippets.

@juanlugm
juanlugm / gatsby-config.js
Created January 10, 2023 21:56
gatsby-plugin-sitemap configuration for markdown pages with lastmod
{
resolve: `gatsby-plugin-sitemap`,
options: {
query: `{
site {
siteMetadata {
siteUrl
}
}
allSitePage {
@juanlugm
juanlugm / mydomain.com.conf
Created September 6, 2019 23:26
HTTPS - Spring Boot 2 - Nginx
server {
server_name mydomain.com www.mydomain.com;
location / {
root /var/www/mydomain.com/html;
index index.html index.htm index.php;
try_files $uri $uri/ /index.php?q=$request_uri;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/mydomain.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/mydomain.com/privkey.pem; # managed by Certbot
@juanlugm
juanlugm / HTTPSConfiguration.java
Last active September 6, 2019 23:13
HTTPS - Spring Boot 2 - Nginx
@Configuration
public class HTTPSConfiguration {
//HTTP port
@Value("${http.port}")
private int httpPort;
// Let's configure additional connector to enable support for both HTTP and HTTPS
@Bean
public ServletWebServerFactory servletContainer() {
@juanlugm
juanlugm / Dockerfile
Last active May 1, 2019 21:26 — forked from tonespy/Dockerfile
Android Development Area Docker
FROM ubuntu:latest
RUN cd /opt
RUN mkdir android-sdk-linux && cd android-sdk-linux/
RUN apt-get update -qq \
&& apt-get install -y openjdk-8-jdk \
&& apt-get install -y wget \
&& apt-get install -y expect \
@juanlugm
juanlugm / Jenkinsfile
Last active May 1, 2019 21:22 — forked from tonespy/Jenkinsfile
Jenkins Pipeline Jenkinsfile
// Every jenkins file should start with either a Declarative or Scripted Pipeline entry point.
node {
// Global variable declaration
def project = 'project'
def appName = 'app'
// Stage, is to tell the Jenkins that this is the new process/step that needs to be executed
stage('Checkout') {
@juanlugm
juanlugm / Android Studio .gitignore
Created April 30, 2019 20:59 — forked from iainconnor/Android Studio .gitignore
A .gitignore for use in Android Studio
# Built application files
/*/build/
# Crashlytics configuations
com_crashlytics_export_strings.xml
# Local configuration file (sdk path, etc)
local.properties
# Gradle generated files