Skip to content

Instantly share code, notes, and snippets.

View bumbummen99's full-sized avatar
🙃
Branches come and go, but commits stay!

Patrick bumbummen99

🙃
Branches come and go, but commits stay!
View GitHub Profile
@jonneroelofs
jonneroelofs / EventForm.php
Created December 21, 2021 13:04
Flatpickr wrapped with Alpine.js in blade component for Laravel Livewire
<?php
namespace App\Http\Livewire;
use App\Models\Event;
use Livewire\Component;
class EventForm extends Component
{
public $event;
@brgaulin
brgaulin / Readme.md
Last active April 19, 2024 10:03
ESP32-S2 Keyboard on Arduino
@matusnovak
matusnovak / README.md
Last active July 16, 2024 13:34
GPG + Git SSH Authentication and Signing on Windows 10

GPG + Git SSH Authentication and Signing on Windows 10

Introduction

This simple Gist will explain how to settup your GPG key to work for SSH authentication (with Git) and Git commit signing on Windows 10. This may seem straightforward on Linux, but there are certain tweaks needed on Windows.

No Cygwin, no MinGW, no Git Bash or any other Linux emulated environment. This works in pure Windows 10.

Software needed

@spyesx
spyesx / curl-to-nextcloud.sh
Created September 14, 2020 07:52
Upload a file to Nextcloud with curl
# source: https://docs.nextcloud.com/server/19/user_manual/files/access_webdav.html#accessing-files-using-curl
curl -u USERNAME:PASSWORD -T /path/to/file https://my.nextcloud.tld/remote.php/dav/files/USERNAME/path/to/directory/
@Salah856
Salah856 / Controllers--Livewire--Chat.php
Created June 19, 2020 09:18 — forked from developerdza/Controllers--Livewire--Chat.php
Real Time Chat By Laravel And Livewire
<?php
namespace App\Http\Livewire\Forum;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use Livewire\WithPagination;
use Livewire\Component;
use App\Message;
use App\User;
class Chat extends Component
@waska14
waska14 / HasWhereNotTrait.php
Last active December 28, 2022 01:57
Laravel whereNot/orWhereNot in simple trait
<?php
namespace App\Traits;
use Closure;
use Illuminate\Database\Eloquent\Builder;
trait HasWhereNotTrait
{
/**
@kmagdziak
kmagdziak / gist:49daac58bad7071e36a738da8aadb58e
Last active November 5, 2021 04:36
Running Pi-hole Docker Container with different docker port 80 mapping
Issue: Changing the docker port 80 to hosted port not 80 causes the following message:
[ERROR]: Unable to parse results from queryads.php: Unhandled error message (Invalid domain!)
## Solution courtesy of unitpas, modified by kmagdziak
docker exec -it pihole apt-get update
docker exec -it pihole apt-get install nano
docker exec -it pihole bash
nano /var/www/html/pihole/index.php
@denisgolius
denisgolius / generate-ssh-key.sh
Created October 4, 2018 06:55 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active July 21, 2024 05:06
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@ewauq
ewauq / logitech-bind-f13-f24.lua
Last active June 5, 2024 19:47
How to: Bind F13 to F24 keys on the G-keys (Logitech Gaming Keyboards)
-- How to use this script:
-- 1. Install the Logitech Gaming Software: http://support.logitech.com/en_us/software/lgs
-- 2. Launch it, and right click on your profile (the gear icon) and then click on "Scripts".
-- 3. Add the following code into the Script window, save it, and close it. Enjoy.
-- Now G1 is bound to F13, G2 to G14, ... G12 to F24.
function OnEvent(event, arg)
-- OutputLogMessage("event = %s, arg = %s\n", event, arg)