Skip to content

Instantly share code, notes, and snippets.

View jverdeyen's full-sized avatar

Joeri Verdeyen jverdeyen

View GitHub Profile
@labboy0276
labboy0276 / docker-destroy-all.sh
Last active October 5, 2023 15:40
Purge all Docker Containers & Lando Cache
#!/bin/bash
echo 'Stopping Containers'
# Stop all containers
containers=`docker ps -a -q`
if [ -n "$containers" ] ; then
docker stop $containers
fi
echo 'Deleting Containers'
@BadmanBarista
BadmanBarista / README.md
Last active December 23, 2022 18:53
Theme to hide the blue paved cycleways or make them thinner on Wahoo Bolt v2

IMPORTANT: THE FILES IN THIS GIST NO-LONGER WORK WITH RECENT UPDATES TO THE BOLT FIRMWARE.

SEE THIS REPOSITORY FOR FILES THAT DO https://github.com/BadmanBarista/wahoo-vtm-themer

There are a number of links floating around for this gist, so I will leave it here so people can find the new repo.

NOTE: I've found that outside my city, there are some actual important paths that this hack will hide. So I've provided an alternative file vtm-elemnt-THIN.xml. This makes the blue cyclepaths really thin rather than removing them entirely, just use it instead and remove the -THIN from the name.

There are three versions of the vtm-elemnt.xml file:

  • vtml-elemnt-DEFAULT.xml is the default from the BoltApp.apk (version 12513)
@Intyre
Intyre / README.md
Last active November 11, 2022 08:55
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

@robhrt7
robhrt7 / MySQL_5-7_macOS.md
Last active February 28, 2024 03:48 — forked from nrollr/MySQL_macOS_Sierra.md
Install MySQL 5.7 on macOS using Homebrew

This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).

Install MySQL 5.7 on macOS

This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.
@anwas
anwas / multiple-php.txt
Last active December 14, 2023 11:03
[Multiple PHP versions on Ubuntu] #php #dev #ispconfig
## Add repository
### https://launchpad.net/%7Eondrej/+archive/ubuntu/php
### https://launchpad.net/~ondrej/+archive/ubuntu/apache2
sudo add-apt-repository ppa:ondrej/php
sudo add-apt-repository ppa:ondrej/apache2
sudo apt-get update
sudo apt-get dist-upgrade
@rhukster
rhukster / sphp.sh
Last active March 30, 2024 10:41
Easy Brew PHP version switching (Now moved to https://github.com/rhukster/sphp.sh)
#!/bin/bash
# Creator: Phil Cook
# Modified: Andy Miller
#
# >>> IMPORTANT: Moved to: https://github.com/rhukster/sphp.sh
# >>> Kept here for legacy purposes
#
osx_major_version=$(sw_vers -productVersion | cut -d. -f1)
osx_minor_version=$(sw_vers -productVersion | cut -d. -f2)
osx_patch_version=$(sw_vers -productVersion | cut -d. -f3)
@blackgate
blackgate / mbp2011-disable-amd-gpu.md
Last active November 22, 2023 01:23
Macbook Pro 2011 - Disable AMD GPU
@alekseykulikov
alekseykulikov / index.md
Last active April 14, 2024 00:32
Principles we use to write CSS for modern browsers

Recently CSS has got a lot of negativity. But I would like to defend it and show, that with good naming convention CSS works pretty well.

My 3 developers team has just developed React.js application with 7668 lines of CSS (and just 2 !important). During one year of development we had 0 issues with CSS. No refactoring typos, no style leaks, no performance problems, possibly, it is the most stable part of our application.

Here are main principles we use to write CSS for modern (IE11+) browsers:

@SebLours
SebLours / SoftDeleteableEnabledCommand.php
Last active August 24, 2016 12:54
Show all softdeleteable entities class name (not for annotation config)
<?php
namespace AppBundle\Command;
use Doctrine\Bundle\DoctrineBundle\Command\Proxy\DoctrineCommandHelper;
use Gedmo\Mapping\ExtensionMetadataFactory;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
#!/usr/bin/env php
<?php
include_once 'app/global_vars.php';
require ROOT_DIR . 'vendor/autoload.php';
use Application\Command\InsertFixturesCommand;
use Symfony\Component\Console\Application;