Skip to content

Instantly share code, notes, and snippets.

@JoanComasFdz
JoanComasFdz / README.md
Created April 30, 2024 07:38
Thoughts on Testing

Reevaluating Testing Strategies in Software Development

Introduction:

Software development practices have evolved significantly over time, with a prevailing trend towards thorough testing at all levels. This report aims to critically analyze the effectiveness and efficiency of current testing methodologies, particularly in light of concerns regarding return on investment and the burden of maintaining extensive test suites. Additionally, it explores alternative approaches, such as organizing code into smaller, well-documented modules reminiscent of microservices architecture, and the trend in functional programming to minimize testing of side effects.

Argument 1: Distinguishing Business Logic from Infrastructure Concerns

Description: Emphasizes the importance of distinguishing between code segments directly contributing to the core business logic, which must be thoroughly tested, and ancillary code responsible for infrastructure operations, such as file I/O, database interactions, and network co

@alexishida
alexishida / nginx-config-auth-cert-ssl.md
Last active April 30, 2024 12:18
Tutorial to configure Nginx client-side SSL certificates.

Client-side SSL

For excessively paranoid client authentication.

Original: https://gist.github.com/mtigas/952344

Convert SSL certificate from CRT format to PEM

openssl x509 -in server.crt -out server.der -outform DER
openssl x509 -in server.der -inform DER -out server.pem -outform PEM
@cyriux
cyriux / Re-architect-your-batches-with-DDD-references.md
Last active April 30, 2024 12:17
Links of the conference talk Devoxx 2023
@nicktoumpelis
nicktoumpelis / repo-rinse.sh
Created April 23, 2014 13:00
Cleans and resets a git repo and its submodules
git clean -xfd
git submodule foreach --recursive git clean -xfd
git reset --hard
git submodule foreach --recursive git reset --hard
git submodule update --init --recursive
@benmmurphy
benmmurphy / TLSLoggingProvider.java
Last active April 30, 2024 12:11
SSLKEYLOGFILE for java
import java.io.IOException;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.nio.file.FileSystems;
import java.nio.file.StandardOpenOption;
import java.security.InvalidAlgorithmParameterException;
import java.security.Provider;
import java.security.SecureRandom;
@chrishorton
chrishorton / hangmanwordbank.py
Created May 21, 2017 17:16
Hangman ascii art and wordbank
HANGMANPICS = ['''
+---+
| |
|
|
|
|
=========''', '''
+---+
#!/bin/sh
#------------------------------------------------------------------------------
# Configuration.
#------------------------------------------------------------------------------
#=========================================================================================
#===================================== Initial firewall configuration ==========================
#=========================================================================================
#This is the network interface for the internet
version: "3"
services:
# configuration manager for NiFi
zookeeper:
hostname: myzookeeper
container_name: zookeeper_container_persistent
image: 'bitnami/zookeeper:3.7.0' # latest image as of 2021-11-09.
restart: on-failure
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
@harshaspatil
harshaspatil / CookieManager.swift
Created January 31, 2020 20:05
WKWebview Cookie Sync Example
import Foundation
import WebKit
/// Class which syncronizes cookies for the webview.
internal final class CookieManager {
/// Cookies from http cookie store.
var httpCookies: [HTTPCookie] {
return HTTPCookieStorage.shared.cookies ?? [HTTPCookie]()
}