Skip to content

Instantly share code, notes, and snippets.

View un-ro's full-sized avatar
😕
¯\_(ツ)_/¯

Unero un-ro

😕
¯\_(ツ)_/¯
View GitHub Profile
@un-ro
un-ro / import.txt
Created October 17, 2020 22:00
wg-manjaro-cli-import
nmcli connection import type wireguard file /etc/wireguard/wg0.conf
@marcorichetta
marcorichetta / postgresql-manjaro.md
Last active October 27, 2025 15:50
Install PostgreSQL on Manjaro and set it up for Django
/* Copyright 2019 Google LLC.
SPDX-License-Identifier: Apache-2.0 */
fun <T> LiveData<T>.getOrAwaitValue(
time: Long = 2,
timeUnit: TimeUnit = TimeUnit.SECONDS
): T {
var data: T? = null
val latch = CountDownLatch(1)
val observer = object : Observer<T> {
override fun onChanged(o: T?) {
@stramel
stramel / HOWTO.md
Last active December 13, 2025 02:37
Installing Powerline fonts on Windows 10

Installing Powerline fonts on Windows 10

Steps

  1. Download and extract zip from here
  2. Press Windows + x
  3. Press a (Selects PowerShell (Admin))
  4. Navigate to directory where fonts were extracted to (cd ${HOME}\Downloads\fonts-master\fonts-master)
  5. Set Execution Policy Set-ExecutionPolicy RemoteSigned [1]
  6. Press y then Enter to accept
@simonhamp
simonhamp / AppServiceProvider.php
Last active August 4, 2025 20:56
A pageable Collection implementation for Laravel
<?php
namespace App\Providers;
use Illuminate\Support\Collection;
use Illuminate\Pagination\LengthAwarePaginator;
class AppServiceProvider extends ServiceProvider
{
public function boot()