Skip to content

Instantly share code, notes, and snippets.

View pwaldhauer's full-sized avatar
🎯
Focusing

Philipp Waldhauer pwaldhauer

🎯
Focusing
View GitHub Profile
Your requirements could not be resolved to an installable set of packages.
Problem 1
- filament/filament v2.17.0 requires filament/forms v2.17.0 -> satisfiable by filament/forms[v2.17.0].
- filament/filament v2.17.1 requires filament/forms v2.17.1 -> satisfiable by filament/forms[v2.17.1].
- filament/filament v2.17.2 requires filament/forms v2.17.2 -> satisfiable by filament/forms[v2.17.2].
- filament/filament v2.17.3 requires filament/forms v2.17.3 -> satisfiable by filament/forms[v2.17.3].
- filament/filament v2.17.4 requires filament/forms v2.17.4 -> satisfiable by filament/forms[v2.17.4].
- filament/filament v2.17.5 requires filament/forms v2.17.5 -> satisfiable by filament/forms[v2.17.5].
- filament/filament v2.17.6 requires filament/forms v2.17.6 -> satisfiable by filament/forms[v2.17.6].
@pwaldhauer
pwaldhauer / magentamusik.py
Created August 8, 2023 07:53
yt-dlp Cotent Extractor for magentamusik.de (I'm too lazy to create a pull request)
from .common import InfoExtractor
class MagentaMusikIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?magentamusik\.de/(?P<id>.*)'
_TESTS = []
def _real_extract(self, url):
video_id = self._match_id(url)
webpage = self._download_webpage(url, video_id)
// Folgende Datenstruktur
struct GroupedEntryList: Identifiable {
let id = UUID()
var label: String
var items: [JournalEntry]
}
// Ein ViewModel, kopierte ich aus irgendeinem Tutorial, keine Ahnung, ob man das braucht
// Da ist aber offensichtlich das Published drin und es ist ein Observable Object
server {
listen 80;
listen [::]:80;
server_name contao-sync-source.nerdlichter.com;
root /var/www/app/web;
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/app.htpasswd;
const path = require('path');
const webpack = require('webpack');
const glob = require('glob');
const args = require('minimist')(process.argv.slice(2));
const BrowserSyncPlugin = require('browser-sync-webpack-plugin');
const ExtractTextPlugin = require("extract-text-webpack-plugin");
@pwaldhauer
pwaldhauer / images.php
Created August 20, 2017 19:53
Kirby Thumbnail Generator on steroids
<?php
define('DS', DIRECTORY_SEPARATOR);
require(__DIR__ . DS . 'kirby' . DS . 'bootstrap.php');
class ThumbThumbMock extends Thumb
{
public function __construct($source, array $params = [])
{
$this->source = $this->result = is_a($source, 'Media') ? $source : new Media($source);
@pwaldhauer
pwaldhauer / chmod.sh
Created April 4, 2016 10:35
Better chmod all
find . -type d -exec chmod 755 {} \;
find . -type d -exec chmod 775 {} \;
find . -type f -exec chmod 644 {} \; // rw----
find . -type f -exec chmod 664 {} \; // rwrw--
var source_path = [doc askForUserInput:"Source Path for Layers" initialValue:"/Users/pwaldhauer/Dropbox/Bilder/exported/fb_/"]
var destination_path = [doc askForUserInput:"Destination Path" initialValue:"/Users/pwaldhauer/Dropbox/Bilder/exported/fb_auswahl/"]
for (var i=0; i<selection.count(); i++) {
var layer = selection[i];
print([layer name]);
var source = [NSString stringWithFormat:"%@%@.jpg", source_path, [layer name]];
var dest = [NSString stringWithFormat:"%@%@.jpg", destination_path, [layer name]];

Year Compass, Plain Text Version, Taken from: http://www.yearcompass.com/

The past year

Going through your calendar

Go through last year’s calendar week by week. If you see an important event, family gathering, friendly get-together or a significant project, write it down here.

This is what my last year was about

What aspects were the most important to you in the following areas last year? Which happenings or events were the most significant? Summarize briefly.

@pwaldhauer
pwaldhauer / playbook.yaml
Created September 15, 2015 21:09
Simple Ansible Playbook
---
- hosts: all
gather_facts: false
remote_user: ubuntu
sudo: yes
vars:
http_port: 80
api_root: /var/www/ansibletest.com/
tasks:
- name: update apt