Skip to content

Instantly share code, notes, and snippets.

View marcandreappel's full-sized avatar

Marc-André Appel marcandreappel

View GitHub Profile
@marcandreappel
marcandreappel / gist:ae286da53406ac3a8efdbc6b6d7071a8
Created September 30, 2022 14:21
GDU Ubuntu server install command
add-apt-repository -y ppa:daniel-milde/gdu
apt-get update
apt-get install gdu
@marcandreappel
marcandreappel / arch-setup.md
Last active July 5, 2021 15:08
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
stages:
- build
- deploy
build:
stage: build
tags:
- <tag you provided while registering the token>
- <second tag>
script:
- echo "Building deploy package"
@marcandreappel
marcandreappel / laravel-queue.service
Created December 29, 2020 11:15 — forked from thomasjsn/laravel-queue.service
Laravel queue worker using systemd.
# Laravel queue worker using systemd
# ----------------------------------
#
# /lib/systemd/system/queue.service
#
# run this command to enable service:
# systemctl enable queue.service
[Unit]
Description=Laravel queue worker
@marcandreappel
marcandreappel / dbox.sh
Last active May 4, 2023 10:58
Devilbox start & restart script
#!/usr/bin/env sh
# See here first: https://github.com/marcandreappel/xdebug-devilbox-phpstorm-postman
cd /home/$USER/.devilbox/
docker-compose stop
docker-compose rm -f
docker-compose pull
@marcandreappel
marcandreappel / xdebug_devilbox_phpstorm_postman.md
Last active August 22, 2022 06:24 — forked from yannbertrand/using_xdebug_with_postman.md
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
marcandreappel / PeekingLinearLayoutManager.kt
Created June 16, 2019 19:54 — forked from bolot/PeekingLinearLayoutManager.kt
LinearLayoutManager subclass that "peeks", shows a portion of the adjacent child views.
class PeekingLinearLayoutManager : LinearLayoutManager {
@Suppress("Unused")
@JvmOverloads
constructor(context: Context?, @RecyclerView.Orientation orientation: Int = RecyclerView.VERTICAL, reverseLayout: Boolean = false) : super(context, orientation, reverseLayout)
@Suppress("Unused")
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int, defStyleRes: Int) : super(context, attrs, defStyleAttr, defStyleRes)
override fun generateDefaultLayoutParams() =
scaledLayoutParams(super.generateDefaultLayoutParams())

#Introduction If you're a php developer on ubuntu, there comes the time where you have to install/reinstall your system. I did it already a few times and i decided to write down the steps for a typical web developer stack with php. This is for a developer machine and not for a live environment!

I hope it helps you too!

fyi @mheiniger and me started with an installer here: https://github.com/mheiniger/webdev-setup

@marcandreappel
marcandreappel / Xdebug_Valet_PHPStorm.md
Last active December 9, 2023 01:16
Xdebug on Valet with PHPStorm

Xdebug on Valet with PHPStorm

Installation

Install homebrew → https://brew.sh

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

$ brew install php nginx mariadb dnsmasq composer
@marcandreappel
marcandreappel / Android auto increment build number
Created June 11, 2018 14:54
Android Studio auto increment build number for version code
# First create the file version.properties with value VERSION_BUILD=0
# In app/build.gradle:
android {
def versionPropsFile = file('version.properties')
def versionBuild
if (versionPropsFile.canRead()) {
def Properties versionProps = new Properties()
versionProps.load(new FileInputStream(versionPropsFile))