Skip to content

Instantly share code, notes, and snippets.

View codeitlikemiley's full-sized avatar

Uriah Galang codeitlikemiley

  • Philippines
  • 23:57 (UTC +08:00)
View GitHub Profile
@codeitlikemiley
codeitlikemiley / AppServiceProvider.php
Created June 5, 2019 23:46 — forked from reinink/AppServiceProvider.php
Multi-page Vue App in Laravel
<?php
namespace App\Providers;
use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;
use Illuminate\View\Factory as ViewFactory;
class AppServiceProvider extends ServiceProvider
{
@codeitlikemiley
codeitlikemiley / arch_bootstrap.bash
Created December 24, 2019 06:42
Shell script that performs the installation of Arch Linux the way I like it.
#!/bin/bash
bootstrapper_dialog() {
DIALOG_RESULT=$(dialog --clear --stdout --backtitle "Arch bootstrapper" --no-shadow "$@" 2>/dev/null)
}
#################
#### Welcome ####
#################
bootstrapper_dialog --title "Welcome" --msgbox "Welcome to Kenny's Arch Linux bootstrapper.\n" 6 60
@codeitlikemiley
codeitlikemiley / zathura-client.org
Created December 10, 2024 15:48 — forked from agzam/zathura-client.org
Open pdf files with Zathura on Mac

Zathura on Mac

I want to open PDF files with Zathura on Mac. Problem is - Zathura does not have a proper App Bundle. So you cannot go in Finder to a pdf file, navigate to ‘Get Info’ and set pdf files to be opened with Zathura.

Luckily, you can create a custom App Bundle that wraps up a script that does that

But that is not as straightforward as you think it is, you can’t just execute a shell script. What if the file already opened with one of the instances of zathura process? Since Zathura is not a native OSX app, it will create a new process instance every time you open it.

The following script opens a file in Zathura, and if it was already opened, it would only activate the right window.

How to use it