Skip to content

Instantly share code, notes, and snippets.

View juanmicl's full-sized avatar
🛡️

Juan Miguel juanmicl

🛡️
  • Spain
View GitHub Profile
@matteyeux
matteyeux / .env
Last active April 24, 2024 09:46
docker-compose version 3.8 for Elasticsearch and Kibana
# Password for the 'elastic' user (at least 6 characters)
ELASTIC_PASSWORD=pouet
# Password for the 'kibana_system' user (at least 6 characters)
KIBANA_PASSWORD=pouetpouet
# Version of Elastic products
STACK_VERSION=8.3.2
# Set the cluster name
@besendorf
besendorf / convert_to_csv.py
Created March 1, 2022 09:32
convert MVT records from json to csv
import pandas as pd
import json
import os
filenames = next(os.walk('.'), (None, None, []))[2]
# read json
for filename in filenames:
if '.csv' in filename:
continue
@Xetera
Xetera / restic_backup.sh
Created March 15, 2021 18:34
Backing up mongodb with restic to an S3 bucket
#!/usr/bin/env bash
# This backup file is run daily as a cronjob like:
# 0 0 * * * bash ~/backup.sh >> /var/log/restic_backups.log 2>&1
restic_repository="your-s3-repository-url-here"
# There is probably a way to do this conveniently through stdin but I don't know if
# that's more efficient through a file because mongodb does some questionable stuff
# with piping mongodump to stdout vs saving backups to a file
backup_path="/path/to/emit/backup/file"
@pavankjadda
pavankjadda / Sonarqube with Postgres database using docker.md
Last active June 24, 2024 05:30
Setup Sonarqube with Postgres database using docker

Setup Sonarqube with Postgres database using docker

Both Sonarqube and Postgres database should be same network in order communicate with each other. First create docker network using the following commands

Create docker network

Delete existing docker network and create new docker network sonarqube

docker network rm sonarqube_network
docker network create sonarqube_network

Run PostGres DB container

@lgaetz
lgaetz / Targeted ChanSpy
Last active June 27, 2024 11:18
FreePBX Feature code prefix to allow spy/whisper/barge on the specified extension
; FreePBX Feature code prefix to allow spy/whisper/barge on
; the specified extension.
;
; Latest version:
; https://gist.github.com/lgaetz/78c4e114952e79596c1ed4123559d3d3
;
; Usage:
; Dialplan goes in the file:
; /etc/asterisk/extensions_custom.conf
; Dial local extension with 556 prefix to spy. While spying on
@nzec
nzec / README.MD
Last active November 16, 2024 18:40
DeezLoader Offical Page

Thanks to /u/zpoo32 for reporting several issues in this list!

Deemix

  • deemix: just the cli and the library
  • deemix-pyweb: the app with a GUI
  • deemix-server: just the server part of deemix-pyweb
@afunTW
afunTW / README.md
Last active March 7, 2024 18:18
sample code for icalendar and google calendar API

Intro

Thers's some MS-defined column in .ics that will be ignored when import .ics to google calendar. We can self modified those value and insert/update the google calendar by google calendar API.

  • icalendar: parse the .ics file
  • google-api-python-client: google calendar API

Usage

@bitcloud
bitcloud / backup-hook.pl
Last active July 10, 2021 11:01
Proxmox backup-hook for Hetzner Server
#!/usr/bin/perl -w
# hook script for vzdump (--script option)
=begin comment
backuphook for Proxmox
renames files so that they include the hostname of the machine
Instructions for Hetzner Backup Server auth via SSH