Skip to content

Instantly share code, notes, and snippets.

View TechPreacher's full-sized avatar

Sascha Corti TechPreacher

View GitHub Profile
@TechPreacher
TechPreacher / claude_desktop_config.json
Created June 17, 2025 21:50
Claude Desktop MCP Server configuration file. Located in ~/Library/Application Support/Claude
{
"globalShortcut": "",
"mcpServers": {
"Perplexity": {
"type": "stdio",
"command": "npx",
"args": ["-y", "server-perplexity-ask"],
"env": {
"PERPLEXITY_API_KEY": "$env:PERPLEXITY_API_KEY"
}
@TechPreacher
TechPreacher / karabiner.json
Last active June 18, 2025 14:32
My Karabiner-Elements configuration
{
"global": { "show_in_menu_bar": false },
"profiles": [
{
"complex_modifications": {
"rules": [
{
"description": "Change double tap right ⇧ key to caps lock",
"manipulators": [
{

Strictly follow this gist and do not deviate from the structure. Analysis this repo and do not add additional packages not needed. For example, if this project is a .NET project, only add .NET related dependencies. If this project was a python project, only add python related dependencies.

DO NOT create a .devcontainer folder. Please use .devcontainer.json.

Your .devcontainer.json should contain the following:

{
	"name": "[PROJECT-NAME]",
	// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
2025-04-06T17:04:19Z [INFO] Initializing crash reporting Some("windows_stable_release") with tag "v0.2025.04.02.08.11.stable_03"...
2025-04-06T17:04:19Z [INFO] The system cannot find the file specified. (0x80070002)
2025-04-06T17:04:19Z [INFO] Starting warp with channel state ChannelState { channel: Stable, app_id: AppId { qualifier: "dev", organization: "warp", application_name: "Warp" }, additional_features: {}, firebase_api_key: "AIzaSyBdy3O3S9hrdayLJxJ7mriBR4qgUaUygAs", server_root_url: "https://app.warp.dev", ws_server_url: "wss://rtc.app.warp.dev/graphql/v2", session_sharing_server_url: Some("wss://sessions.app.warp.dev"), rudderstack_write_key: "2iyG8S1RaV4XTX6SEypetFSEbLK", rudderstack_root_url: "https://warpianwzlfqdq.dataplane.rudderstack.com", releases_base_url: "https://releases.warp.dev", sentry_url: "https://0195a81da0714f55a93ee4624825f9ec@o540343.ingest.sentry.io/5658526", logfile_name: "warp.log", show_autoupdate_menu_items: true } and version Some("v0.2025.04.02.08.11.stable_03")
2025-04-06T
@TechPreacher
TechPreacher / mytheme.omp.json
Last active November 26, 2025 14:50
Custom oh-my-posh Jan Dobeleer Theme with venv information
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"palette": {
"black": "#262B44",
"blue": "#4B95E9",
"green": "#59C9A5",
"orange": "#F07623",
"red": "#D81E5B",
"white": "#E0DEF4",
"yellow": "#F3AE35",
@TechPreacher
TechPreacher / update.sh
Last active November 6, 2024 09:59
MacOS Update script
#!/bin/bash
# Update brew
echo "🍺 Updating Homebrew formulas and casks"
echo
brew update
brew upgrade
brew upgrade --cask
echo

Securing a Raspberry Pi with a public FQDN running pihole

Note, this has been written to run on Raspbian GNU/Linux 10 (buster) but should easily be portable to other Linux distros running on other hardware than the Raspberry Pi.

Change the default user (pi)

Sources:

@TechPreacher
TechPreacher / .gvimrc
Last active November 14, 2019 13:30
VIM Configuration
if has("gui_running")
if has("gui_gtk2")
set guifont=Inconsolata\ 12
elseif has("gui_macvim")
set guifont=Menlo\ Regular:h14
elseif has("gui_win32")
set guifont=Fira\ Code:h10:cANSI
endif
endif
colorscheme dracula " good colorschemes: murphy, slate, molokai, badwolf, solarized