Skip to content

Instantly share code, notes, and snippets.

@frenchcharly
frenchcharly / README.md
Created November 11, 2024 02:12 — forked from hoishing/README.md
disable Gatekeeper with configuration profiles in macOS 15

Disable Gatekeeper with Configuration Profiles

Starting from macOS 15, sudo spctl --master-disable is no longer supported to disable Gatekeeper.

We need to disbale it with Configuration Profiles.

How

  • Create a new configuration profile, an XML file with .mobileconfig extension, refer the sample file in this gist
  • replace the UUID with your own, you can use uuidgen in terminal to generate a new one
@frenchcharly
frenchcharly / gist:af01082653ccccf9f6a9bbfdf1bd4b97
Created October 28, 2024 17:51 — forked from vanWittlaer/gist:9415b199012908ab38f6cb16e911d17e
Gitlab runner running out of space (in /var/lib/docker/overlay2)
SSH to the runner and execute 'docker system prune --all --volumes --force' - this will wipe any unused docker stuff.
@frenchcharly
frenchcharly / readme.md
Last active October 10, 2024 19:02
Transform Bear Exported files & attachments into a directory based hierarchy of files (ie: Obsidian)

Usage

  1. Adjust path for variables to suit your needs: (source_dir, dest_dir and attachments_dir if needed)
  2. run python3 sort_bear_exported_files.py

Result

  • Loops through files in source_dir and copies them into dest_dir while preserving their properties
  • copies attachments into a specific folder (attachments_dir) and renames them to avoid unique name conflicts
  • matches the hierarchy of directories (full path) based on the first 'valid' tag found inside the markdown file

Status

@frenchcharly
frenchcharly / onlyofficeDocsLXCBuster.md
Created February 1, 2022 16:06 — forked from tavinus/onlyofficeDocsLXCBuster.md
OnlyOffice Docs into a LXC Debian 10
@frenchcharly
frenchcharly / wp_auto_install.sh
Created December 5, 2021 04:42 — forked from nicomollet/wp_auto_install.sh
WP-CLI auto install script
#!/bin/bash
# Default options
LOCALE="fr_FR"
DB_HOST='localhost'
VIRUSTOTAL_KEY='YOUR_KEY'
printf "Name of the project? cf My Project: "
read PROJECT_NAME
@frenchcharly
frenchcharly / r6s.md
Last active June 10, 2020 16:43
Playlist R6S pour les vieux
@frenchcharly
frenchcharly / docker-compose.yml
Created June 24, 2019 16:44
[Docker][Wordpress] Local Development Container (WP 5.2, PhP 7.2, Apache, MySQL 5.7)
version: '3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
@frenchcharly
frenchcharly / .htaccess
Last active April 4, 2018 14:12 — forked from ScottPhillips/.htaccess
[Common .htaccess Redirects] 301 & rewrite rules
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/