Skip to content

Instantly share code, notes, and snippets.

View macdet's full-sized avatar
🏠
Working from home

Detlev Lengsfeld macdet

🏠
Working from home
View GitHub Profile
resolvers:
- 1.1.1.1
- 1.0.0.1
- 8.8.8.8
- 8.8.4.4
- 9.9.9.9
- 9.9.9.10
- 77.88.8.8
- 77.88.8.1
- 208.67.222.222
#!/bin/bash
# Prompt the user to specify whether they want to remove the downloaded files or not
read -p "Do you want to remove the downloaded files? (y/n): " remove_files
# Loop through a range of numbers from 7422 to 17000
for i in $(seq 7422 17000); do
# Construct the filename based on the current loop iteration
filename="BoltApp-$i.apk"
@macdet
macdet / 00 README.md
Created February 20, 2024 11:04 — forked from imthenachoman/00 README.md
Debian snapper apt script to include full apt command including arguments as snapshot description

This gist includes an enhancement to Debian's snapper package.

The current (as of 2023-07-23) snapper package includes an apt configuration that will automatically take snapper snapshots when you use apt to install/remove/etc. It will add use "apt" as the description of the pre/post snapshot.

With the below changes to the /etc/apt/apt.conf.d/80snapper file and associated dpkg-pre-post-snapper.sh file, snapper will include the full apt command, including the arguments, in the snapshot description.

For example:

$ sudo apt install funky
@macdet
macdet / readme.md
Created February 15, 2024 08:03 — forked from olokelo/readme.md
Proxmox 9P Configuration - Youtube shownotes

My Youtube Video

https://youtu.be/glbiWWx52Sk

Variables

  • shared directory name - Arbitrary directory name that you want to share with Guest. I recommend using the same in Guest and Host to avoid confustion.
  • virtual machine id - An ID of Virtual Machine that will have access to shared directory. The ID is visible in proxmox and will usually be 3 digit: 100, 101.. .
  • mount tag - Unique tag that identifies which shared directory needs to be the same in both Host and Guest configuration.

Proxmox Configuration

@macdet
macdet / Launchctl_Unload-10.14.sh
Created February 10, 2024 08:29 — forked from andrewp-as-is/Launchctl_Unload-10.14.sh
A Quick Little Script to Force Disable Certain LaunchDaemons in macOS
#!/bin/bash
# I have managed to map out some undesirable daemons and agents. Most of these
# can be disabled without too much consequence.
## Daemons
# com.apple.analyticsd - Anonymized application analytics daemon
# com.apple.appleseed.fbahelperd - Feedback Assistant Helper Daemon
# com.apple.awacsd - Apple Wide Area Connectivity Service Daemon
# com.apple.backupd - Apple TimeMachine service
@macdet
macdet / Time Machine exclusions.command
Created February 10, 2024 08:22 — forked from andrewp-as-is/Time Machine exclusions.command
macOS Time Machine exclusions
#!/usr/bin/env bash
{ set +x; } 2>/dev/null
IFS=$'\n'
set "$@" $(find ~ -name ".*" ! -name ".CFUserTextEncoding" ! -type l -mindepth 1 -maxdepth 1) # dotfiles
set "$@" $(find ~ -name "Google *" -mindepth 1 -maxdepth 1) # Google Drive
set "$@" ~/git # store on github/etc :)
set "$@" ~/node_modules
set "$@" ~/Applications # install apps with brew cask
@macdet
macdet / dependencies-for-goldencheetah.md
Created August 29, 2023 14:49 — forked from i2tsuki/dependencies-for-goldencheetah.md
Dependencies in GoldenCheetah on Ubuntu

For version 3.6 https://github.com/GoldenCheetah/GoldenCheetah/releases/tag/v3.6

apt install -yq libglu1-mesa-dev libgsl-dev flex bison qt5-qmake libqt5webengine5 libqt5webenginewidgets5 libqt5opengl5-dev libphonon4qt5-dev libqt5charts5-dev libqt5serialport5-dev libqt5webchannel5-dev qtwebengine5-dev libqt5multimediawidgets5 qtmultimedia5-dev qtconnectivity5-dev qttools5-dev-tools
@macdet
macdet / fastbike_avoid_unpaved_gravel.brf
Created August 29, 2023 13:34 — forked from DRiKE/fastbike_avoid_unpaved_gravel.brf
brouter fastbike avoiding unpaved/gravel at all cost
#
# A fastbike could be a racing bike or a speed pedelec.
# But also at night or in rainy whether you might want
# to fallback to this one.
#
# Structure is similar to trekking.brf, see this for documenation.
#
---context:global # following code refers to global config
@macdet
macdet / Drupal-Wordpress-MySQL-migration.sql
Created January 12, 2023 14:43 — forked from ma499/Drupal-Wordpress-MySQL-migration.sql
Drupal -> Wordpress MySQL migration script
/*
Drupal -> Wordpress migration script
Author:
Mustafa Arif
www.mustafa.arif.me.uk
14 March 2006
@macdet
macdet / offline_v5.xml
Created April 21, 2022 05:23 — forked from tonithenhausen/offline_v5.xml
Karoo Rendertheme
<?xml version="1.0" encoding="UTF-8"?>
<rendertheme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" map-background="#dcd5d0"
map-background-outside="#dcd5d0" version="5" xmlns="http://mapsforge.org/renderTheme"
xsi:schemaLocation="http://mapsforge.org/renderTheme https://raw.githubusercontent.com/mapsforge/vtm/master/resources/rendertheme.xsd">
<!-- AREA STYLES -->
<style-area fill="#6e91cd" id="water" mesh="true"/>
<!-- LINE CASINGS -->
<style-line id="unpaved_casing" stroke="#669e844c" stroke-linecap="round"/>