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
<?php snippet('header') ?> | |
<main class="main" role="main"> | |
<div class="text"> | |
<h1><?php echo $page->title()->html() ?></h1> | |
<?php echo $page->text()->kirbytext() ?> | |
</div> | |
</main> |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
#You can modify these two values as you see fit | |
vb_memory = '4096' | |
vb_cpus = '4' | |
hostname = File.basename(Dir.getwd) + ".lan" | |
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
object ContainsApp extends App { | |
def contains(substr: String, string: String): Boolean ={ | |
var bool = false | |
def impl(letters: List[Char], word: List[Char], firstPass: Boolean = true): List[Char] ={ | |
if(letters.isEmpty || word.isEmpty){ | |
List() |
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 | |
# How do I deploy an ssl certificate to an IIS server without a CSR? | |
# These are the basic commands that will generate a .pfx file for IIS on OSX | |
# Assuming that we have a .p7b (public key) file, we will need to convert to a .pem file for openssl. | |
# This can contain your intermediate certs as well. | |
openssl pkcs7 -print_certs -in ./ssl_certificate.p7b -out ./ssl_certificate.pem | |
# Double check for consistiency after conversion, the sha numbers should be the same | |
privatesha1=$(openssl rsa -modulus -noout -in ./private.key | openssl sha1); |
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 | |
openssl pkcs8 -in ~/.ssh/your_key.pem -nocrypt -topk8 -outform DER | openssl sha1 -c |
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
FROM node:14 | |
# Dependencies for chrome. | |
RUN apt-get -qq update -y \ | |
&& apt-get -qq install -y \ | |
gconf-service \ | |
libasound2 \ | |
libatk1.0-0 \ | |
libatk-bridge2.0-0 \ | |
libc6 \ |
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
// From https://www.rtechservices.io/blog/basic-authentication-play-scala | |
package filter | |
import akka.stream.Materializer | |
import com.google.inject.Inject | |
import play.api.Logging | |
import play.api.mvc._ | |
import scala.concurrent.{ExecutionContext, Future} |