Skip to content

Instantly share code, notes, and snippets.

View marcandreappel's full-sized avatar

Marc-André Appel marcandreappel

View GitHub Profile
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 / 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 / hmr-index.js
Created August 14, 2017 19:21 — forked from remy/hmr-index.js
A take on HMR. I don't remember exactly where it came from, but it works for me.
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import store from './store';
const rootEl = document.getElementById('root');
// Create a reusable render method that we can call more than once
let render = () => {
// Dynamically import our main App component, and render it
@marcandreappel
marcandreappel / AppDelegate.swift
Created July 24, 2017 21:23 — forked from andreif/AppDelegate.swift
Example of UIPageViewController without storyboard i.e. created programmatically
// derived from https://www.veasoftware.com/posts/uipageviewcontroller-in-swift-xcode-62-ios-82-tutorial
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
window = UIWindow(frame: UIScreen.mainScreen().bounds)
window!.rootViewController = ViewController()
@marcandreappel
marcandreappel / xcode-auto-increment-build-number.md
Last active August 26, 2019 08:02 — forked from sekati/xcode-build-bump.sh
Xcode Auto-increment Build Number

Auto-increment build number in Xcode

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

Usage

  • 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
@marcandreappel
marcandreappel / ionic2-app.ts
Created July 18, 2016 08:13 — forked from EvanWillms/ionic2-app.ts
Ionic2 Pushwoosh app.ts sample
import {Componente} from '@angular/core';
import {Platform, ionicBootstrap} from 'ionic-angular';
import {PushwooshService} from './services/pushwoosh.service';
@Component({
template: '<ion-nav [root]="rootPage" #ionNav></ion-nav>',
})
export class MyApp {
constructor(private platform:Platform,
import {Injectable} from "@angular/core";
import {Device} from 'ionic-native';
declare var cordova : any;
var PUSHWOOSH_APP_ID = 'XXXXX-XXXXX';
var GOOGLE_PROJECT_NUMBER = 'XXXXXXXXXXXXX';
// For iOS, open your project .pList file in xCode and add:
// 1) "Pushwoosh_APPID" key with the Pushwoosh App Id value