Skip to content

Instantly share code, notes, and snippets.

View hanspagel's full-sized avatar
👀

Hans Pagel hanspagel

👀
View GitHub Profile
version: "3"
services:
traefik:
image: traefik
command: -c /dev/null --web --docker --docker.domain=docker.localhost --logLevel=DEBUG
ports:
- "80:80"
- "8080:8080"
volumes:
autosize
axios
chart.js
collect.js
copy-to-clipboard
delegate
dom-autoscroller
dropzone
electron
emoji-regex
// Platzieren Sie Ihre Einstellungen in dieser Datei, um die Standardeinstellungen zu überschreiben.
{
"workbench.colorCustomizations": {
"activityBarBadge.background": "#E57373",
"list.activeSelectionForeground": "#E57373",
"list.inactiveSelectionForeground": "#E57373",
"list.highlightForeground": "#E57373",
"scrollbarSlider.activeBackground": "#E5737350",
"editorSuggestWidget.highlightForeground": "#E57373",
"textLink.foreground": "#E57373",
# jump to web projects
alias web='cd ~/Documents/Websites'
# repeat last command with sudo
alias lol='sudo "$BASH" -c "$(history -p !!)"'
# alias for docker-compose
alias dcp='docker-compose'
# run artisan in docker
@hanspagel
hanspagel / 2018_01_01_000000_create_action_events_table.php
Created August 23, 2018 11:26
Laravel Nova Migration with Postgres Uuid Support
<?php
// nova/database/migrations/2018_01_01_000000_create_action_events_table.php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateActionEventsTable extends Migration
{
FROM php:7.1-fpm-alpine
RUN apk --no-cache add \
autoconf \
build-base \
geoip \
geoip-dev
RUN mkdir -p /usr/share/GeoIP && cd /usr/share/GeoIP/ && \
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz && \
.artists-grid-wrapper > div:nth-child(1) {
-ms-grid-column: 6;
grid-column-start: 6;
-ms-grid-column-span: 5;
grid-column-end: 11;
-ms-grid-row: 1;
grid-row-start: 1;
ms-grid-row-span: 3;
grid-row-end: 4;
}
@hanspagel
hanspagel / OpenGraphImageController.php
Last active January 27, 2020 07:17
Generate Open Graph Images for Blog Posts
<?php
namespace App\Http\Controllers;
use GDText\Box;
use GDText\Color;
use App\Models\Post;
use Illuminate\Support\Facades\Cache;
class OpenGraphImageController extends Controller
import { Mark } from 'tiptap'
import { toggleMark } from 'tiptap-commands'
export default class Superscript extends Mark {
get name() {
return 'superscript'
}
get schema() {
import { Extension } from '@tiptap/core'
import { Decoration, DecorationSet } from 'prosemirror-view'
import { Plugin } from 'prosemirror-state'
export default Extension.create({
name: 'placeholder',
defaultOptions: {
emptyEditorClass: 'is-editor-empty',
emptyNodeClass: 'is-empty',