Skip to content

Instantly share code, notes, and snippets.

bcast() { adb shell am broadcast -a com.wahoofitness.bolt.buttons.$1_button.$2 ; }
bcast $1 down
bcast $1 up
bcast $1 pressed
@macdet
macdet / README.md
Created April 10, 2022 06:15 — forked from Intyre/README.md
Wahoo VTM Rendering theme

Wahoo VTM Map rendering

The Bolt2 uses the VTM rendering by default.

On the Other devices you can enable it by creating a file on the device with the name "cfg_BHomeActivity_VtmMaps" it will use the new rendering method. Another file with the name "cfg_MapPanZoom" enables panning and zooming on the map.

Custom themes

Create a new file in "maps/vtm-elemnt" with the name "vtm-elemnt.xml". You can copy the latest theme from https://gist.github.com/Intyre/7494d5c6c86b5bc60ce4d03b9cfce2df

@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"/>
@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 / 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 / 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
#!/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 / Launchctl_Unload-10.14.sh
Created February 10, 2024 08:29 — forked from andrewpetrochenkov/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 / 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 / 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