Skip to content

Instantly share code, notes, and snippets.

@aodin
aodin / parse_nginx_access_log.py
Last active December 9, 2024 21:49
Parse an Nginx access.log file into a Pandas DataFrame
"""
Parse an Nginx access.log file into a Pandas DataFrame. Also works with gzipped files.
"""
import argparse
import pathlib
import pandas as pd

Installing NocoDB on FreeBSD/FreeNAS/TrueNAS jail

First of all, make sure to refer and understand the general instructions in the official NocoDB site:

https://docs.nocodb.com/getting-started/installation

What you'll find here are the specific instructions to setup NocoDB in a FreeBSD system, or in a FreeNAS/TrueNAS CORE jail.

This was originally done in a TrueNAS CORE 12.0-U5.1, which uses FreeBSD 12.4-RELEASE-p6 as base system.

@brbsix
brbsix / shellcheck-install.sh
Created September 17, 2020 07:01
Install shellcheck on Termux
#!/bin/bash
#
# Install shellcheck
set -euo pipefail
# resynchronize the package index
apt-get -qq update
# install QEMU Linux user mode emulator (and jq)
@carepack
carepack / client.conf
Created April 2, 2020 16:24
Wireguard on FreeBSD with pf
[Interface]
PrivateKey = ***********************
Address = 192.168.10.2/32, fc::2/128
DNS = 1.1.1.1, 2606:4700:4700::1111
[Peer]
PublicKey = ***********************
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = endpoint.domain.tld:51820
@a1ip
a1ip / rst.json
Last active October 16, 2025 08:53
🇷🇺 Русский синодальный перевод Библии в формате JSON https://git.io/rst.json
This file has been truncated, but you can view the full file.
{
"Translation": "RST",
"Books": [
{
"BookId": 1,
"Chapters": [
{
"ChapterId": 1,
"Verses": [
{
@dadoonet
dadoonet / search_kibana_console.txt
Last active July 4, 2024 09:28
Demo script for "A NoSQL search engine to find..." talk
### REINIT
DELETE user
PUT user
{
"mappings": {
"properties": {
"name": {
"type": "text"
},
"comments": {
@eikevons
eikevons / Makefile
Last active February 12, 2023 11:04
Makefile template to build dependent docker images and auto-create dependencies on all git-tracked files.
# Copyright (c) Jupyter Development Team
# Jan Eike von Seggern <[email protected]>
# Distributed under the terms of the Modified BSD License.
## Template to build a hierarchy of dependent docker images.
## Based on https://github.com/jupyter/docker-stacks/blob/master/Makefile
## Builds are tracked via build-stamps in $BUILD_DIR.
## Dependencies for each image are created automatically for all files tracked by git.
##
## Usage (see examples below):
@oscarmorrison
oscarmorrison / missing-image.html
Created June 4, 2016 03:38
html backup image
<img src="img/missing-image.png" onerror="javascript:this.src='img/default.png'">
@mreschke
mreschke / nginx.conf
Last active January 3, 2025 07:03
Nginx config for multiple laravel sites based on /api/v1 url paths
# This config will host your main [Laravel] GUI application at /, and any additional [Lumen] webservices at /api/v1 and /api/v2...
# This also works perfectly for all static file content in all projects
# This is full of debug comments so you can see how to print debug output to browser! Took me hours to nail this perfect config.
# Example:
# http://example.com - Main Laravel site as usual
# http://example.com/about - Main Laravel site about page as usual
# http://example.com/robots.txt - Main Laravel site static content as usual
# http://example.com/api/v1 - Lumen v1 api default / route
# http://example.com/api/v1/ - Lumen v1 api default / route