Skip to content

Instantly share code, notes, and snippets.

View borjapazr's full-sized avatar
🐮
Éche o que hai!

Borja Paz Rodríguez borjapazr

🐮
Éche o que hai!
View GitHub Profile
@gear4s
gear4s / README.md
Last active September 29, 2022 21:16
Install NextCloud with OnlyOffice connectivity on GCP

Installation

Run this to create required files:

mkdir -p DocumentServer/{logs,data,lib}
touch gcp_service_account_credentials.json

Cloud configuration

@andrebreves
andrebreves / vpn.sh
Last active October 16, 2024 14:41
Bash script to deactivate and activate the Endpoint Security VPN on macOS
#!/usr/bin/env bash
get_plist_key() {
local value
if value="$(set -o pipefail; plutil -extract "${2}" xml1 -o - "${1}" | grep -Ev "^<(\?|\!|/?plist)")"; then
printf "%s" "${value}"
fi
}
plist_status() {
@RyanHirsch
RyanHirsch / .eslintignore
Created April 6, 2020 12:58
Typescript + Jest + ESLint + Tailwind
.next
__generated__
@phnahes
phnahes / m2070.md
Last active January 10, 2025 11:45
Printer Samsung M2070 working on Raspberry (armhf)

Install Cups

apt install cups samba cups-ipp-utils

Install Drivers

Download the Samsung ULD (Unified Linux Driver) version 1.00.29 from the SULDR website (the latest one on Samsung's website doesn't have an arm directory)

wget https://www.bchemnet.com/suldr/driver/UnifiedLinuxDriver-1.00.29.tar.gz

@silver-xu
silver-xu / ts-boilerplate.md
Last active March 2, 2025 19:56
Setup a Node.js project with Typescript, ESLint, Prettier, Husky

Setup a Node.js project with Typescript, ESLint, Prettier, Husky

1_D8Wwwce8wS3auLAiM3BQKA

Starting a personal node project could be easy; starting a team node project could be challenging.

I am a developer currently working in SEEK Australia.

In my experience, common mistakes developer make when starting a projects are:

  • No Linting
@krfong916
krfong916 / ddd.md
Last active February 5, 2025 21:35
Notes on Clean, MVC, and DDD

DDD and Object Oriented: Concepts, Analysis, Heuristics

Points

Why do we move logic from a controller?

If we make a change, like add a property to the domain model, we have to make the same change for every use case of that model, and there could be n more use cases. We would also add m validations for that property - so one change could result in n x m changes.

What roles do factories play? What do we put in them? When do we use them?

@Mau5Machine
Mau5Machine / docker-compose.yml
Last active January 18, 2025 00:17
Traefik Configuration and Setup
version: "3.3"
services:
################################################
#### Traefik Proxy Setup #####
###############################################
traefik:
image: traefik:v2.0
restart: always
@gmassawe
gmassawe / openssl_self_signed.md
Last active December 15, 2024 17:58
Creating Self Signed Certificate

Updated OpenSSL Cheat Sheet for Self-Signed Certificates

Create Self-Signed Certificates with OpenSSL

Root CA

Create Root CA Key (With Strong Encryption)

Use the -aes256 flag to ensure a strong passphrase protects the key:

openssl genpkey -algorithm RSA -out root.key -aes256 -pkeyopt rsa_keygen_bits:4096
@ricealexander
ricealexander / .eslintrc.json
Last active June 21, 2021 23:16
Personal ESLint preferences with rationale
// DEPRECATED! SEE https://github.com/ricealexander/eslint-config-webtrinkets for up-to-date version
// Some Symbols used:
// ⭐️ - very strong preference
// 🤔 - very loose preference
// 🔥 - disabled and would not consider enabling
// ⚗ - testing out a rule
// 💔 - could not be configured in desired way
// 🐝 - did not work as expected or caused clashes with other rules
@lzimd
lzimd / Introduction.md
Created May 8, 2019 08:34
gradle + bom ( spring boot )

examples

1

plugins {  
    id "org.springframework.boot" version "2.1.4.RELEASE"
}
apply plugin: "io.spring.dependency-management"