Skip to content

Instantly share code, notes, and snippets.

View Sopamo's full-sized avatar
🤩
Working on open source

Paul Mohr Sopamo

🤩
Working on open source
View GitHub Profile
@Sopamo
Sopamo / android-keyboard-tap.sh
Created May 22, 2016 13:06
Send tap events from your keyboard to your android device. Execute the file, press any key to submit a tap event. Great for Google Cardboard. Tested on Mac. You need to have adb installed and the device connected.
#!/bin/bash
while true; do
read -rsn1 input
adb shell input tap 200 200
done
@Sopamo
Sopamo / default.blade.php
Created February 1, 2017 17:36
A semantic UI pagination template for Laravel 5.3+
@if ($paginator->hasPages())
<div class="ui pagination menu">
{{-- Pagination Elements --}}
@foreach ($elements as $element)
{{-- "Three Dots" Separator --}}
@if (is_string($element))
<div class="disabled item">
{{ $element }}
</div>
@endif
@Sopamo
Sopamo / dslr-webcam-linux.md
Last active June 12, 2024 07:10
Use your dslr as webcam on linux

How to use your DSLR as a webcam on linux

This will automatically start your webcam once you connect it to your computer.

1. Follow this article to setup your webcam

DSLR Webcam setup for linux

2. Install gstreamer

Installation instructions

3. Create a bash file in /usr/bin/dslrwebcam.sh which starts the webcam