Skip to content

Instantly share code, notes, and snippets.


Marc-André Appel marcandreappel

View GitHub Profile
View gist:ae286da53406ac3a8efdbc6b6d7071a8
add-apt-repository -y ppa:daniel-milde/gdu
apt-get update
apt-get install gdu
marcandreappel /
Last active Aug 22, 2022 — forked from yannbertrand/
Using Xdebug on Devilbox with PhpStorm and Postman

The tutorial got a new home, head over to the newly created repo (for more flexibility and better interaction).

marcandreappel / Android auto increment build number
Created Jun 11, 2018
Android Studio auto increment build number for version code
View Android auto increment build number
# First create the file with value VERSION_BUILD=0
# In app/build.gradle:
android {
def versionPropsFile = file('')
def versionBuild
if (versionPropsFile.canRead()) {
def Properties versionProps = new Properties()
versionProps.load(new FileInputStream(versionPropsFile))
marcandreappel /
Last active Jul 5, 2021
Guide to get a nice little Arch Linux setup in no-time

Arch Linux Setup

Cheat alert: Install the Gnome version of EndeavourOS first. Gives a perfect base without headache in record time.

  • Create a backup of /etc/pacman.conf and disable the repository of EndeavourOS by editing /etc/pacman.conf and deleting / commenting the [endeavour] entries.
  • Follow the steps for switching to homed
  • Install fish and oh-my-fish with my personal package repository
  • Install exa as ls replacement and install omf install ls2exa
  • Install bpytop and add omf install htop2bpytop
  • Install yay -S appimagelauncher to launch AppImages
marcandreappel /
Last active Mar 3, 2021
Xdebug on Valet with PHPStorm

Xdebug on Valet with PHPStorm


Install homebrew →

Install beforehand NginX, MariaDB, DnsMasq and PHP7.2 with Composer

$ brew install php nginx mariadb dnsmasq composer
View .gitlab-ci.deploy.yml
- build
- deploy
stage: build
- <tag you provided while registering the token>
- <second tag>
- echo "Building deploy package"
marcandreappel / laravel-queue.service
Created Dec 29, 2020 — forked from thomasjsn/laravel-queue.service
Laravel queue worker using systemd.
View laravel-queue.service
# Laravel queue worker using systemd
# ----------------------------------
# /lib/systemd/system/queue.service
# run this command to enable service:
# systemctl enable queue.service
Description=Laravel queue worker
marcandreappel / PeekingLinearLayoutManager.kt
Created Jun 16, 2019 — forked from bolot/PeekingLinearLayoutManager.kt
LinearLayoutManager subclass that "peeks", shows a portion of the adjacent child views.
View PeekingLinearLayoutManager.kt
class PeekingLinearLayoutManager : LinearLayoutManager {
constructor(context: Context?, @RecyclerView.Orientation orientation: Int = RecyclerView.VERTICAL, reverseLayout: Boolean = false) : super(context, orientation, reverseLayout)
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int, defStyleRes: Int) : super(context, attrs, defStyleAttr, defStyleRes)
override fun generateDefaultLayoutParams() =
marcandreappel /
Last active Oct 21, 2019
Devilbox start & restart script
#!/usr/bin/env sh
# See here first:
cd /home/$USER/.devilbox/
docker-compose stop
docker-compose rm -f
docker-compose pull
marcandreappel /
Last active Aug 26, 2019 — forked from sekati/
Xcode Auto-increment Build Number

Auto-increment build number in Xcode

Automatically increment the build number every time the project is compiled.


  • Select your target in your Xcode project
  • Select the Build Phases tab
  • Add a New Run Script Phase entry (via the + sign)
  • Copy the snippet below into the shell editor