Skip to content

Instantly share code, notes, and snippets.

@janglapuk
janglapuk / livewire-daterangepicker-component.md
Last active December 5, 2023 16:29
DateRangePicker component in Laravel Livewire 3

DateRangePicker component in Laravel Livewire 3

image

Requirements

  1. Laravel + Livewire 3
  2. Bootstrap
  3. jQuery
  4. moment.js
  5. Date Range Picker
@janglapuk
janglapuk / git-archive-cheatsheet.md
Last active November 27, 2023 10:34
Git archive cheatsheet

Archive HEAD

git archive --output=archive.zip HEAD

Archive HEAD with directory prefix (like github ZIP archive)

git archive --output=archive.zip --prefix=main/ HEAD

Important: prefix should have a trailing slash

@janglapuk
janglapuk / .nanorc
Created December 23, 2022 08:44
~/.nanorc for noobs!
set tabsize 4
set tabstospaces
set softwrap
set linenumbers
set smooth
set tabstospaces
set autoindent
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Page Not Found</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
*{
line-height: 1.2;
margin: 0;
@janglapuk
janglapuk / underconstruction.html
Created July 25, 2022 08:33
An awesome under construction HTML template file
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="author" content="arulmjoseph.com">
<!-- Template downloaded from: https://arulmjoseph.com/under-construction-template-free -->
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
@janglapuk
janglapuk / drawio_more_connector_points.txt
Created April 16, 2021 14:14
draw.io more circle connector points
Select a circle and Edit Style, add below after another parameters
points=[[0,0.1],[0,0.2],[0,0.3],[0,0.4],[0,0.5],[0,0.6],[0,0.7],[0,0.8],[0,0.9],[0.1,0],[0.2,0],[0.3,0],[0.4,0],[0.5,0],[0.6,0],[0.7,0],[0.8,0],[0.9,0],[1,0.1],[1,0.2],[1,0.3],[1,0.4],[1,0.5],[1,0.6],[1,0.7],[1,0.8],[1,0.9],[0.1,1],[0.2,1],[0.3,1],[0.4,1],[0.5,1],[0.6,1],[0.7,1],[0.8,1],[0.9,1]];
@janglapuk
janglapuk / proxmox-lxc-backup.sh
Created December 1, 2020 10:41
Proxmox LXC container backup script to Google Drive using @prasmussen's gdrive
#!/bin/bash
if [ $# -ne 1 ];
then
echo "Usage: $0 <VMID>"
exit 1
fi
BACKUPDIR="/var/lib/vz/dump"
@janglapuk
janglapuk / hotstar-kiosk-close-button.user.js
Last active October 12, 2020 04:35
[Tampermonkey] Disney+ Hotstar Exit Button for Kiosk Mode
// ==UserScript==
// @name Disney+ Hotstar Exit Button for Kiosk Mode
// @namespace http://github.com/janglapuk
// @version 0.3
// @description Add Disney+ Hotstar Exit button for kiosk mode (only use this script if you run from Kiosk mode)
// @author janglapuk
// @match https://www.hotstar.com/*
// @grant none
// @require https://code.jquery.com/jquery-3.5.1.min.js
// @require https://gist.githubusercontent.com/BrockA/2625891/raw/waitForKeyElements.js
@janglapuk
janglapuk / hotstar-default-quality-setter.user.js
Last active October 12, 2020 12:20
[Tampermonkey] Disney+ Hotstar Default Streaming Quality Setter
// ==UserScript==
// @name Disney+ Hotstar Default Streaming Quality Setter
// @namespace http://github.com/janglapuk
// @version 0.5
// @description Set Disney+ Hotstar default streaming quality and fullscreen options
// @author janglapuk
// @match https://www.hotstar.com/*
// @grant none
// @updateURL https://gist.githubusercontent.com/janglapuk/38d4cab117bddd84177bf510c827fa0c/raw/hotstar-default-quality-setter.user.js
// @downloadURL https://gist.githubusercontent.com/janglapuk/38d4cab117bddd84177bf510c827fa0c/raw/hotstar-default-quality-setter.user.js
@janglapuk
janglapuk / UseeTV-ZXV10-B700V5-lirc.conf
Created March 31, 2020 10:17
lircd config file for UseeTV STB ZXV10-B700V5 remote
# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.9.0(default) on Tue Mar 31 17:27:09 2020
#
# contributed by janglapuk
#
# brand: UseeTV STB ZXV10 B700V5
# model no. of remote control: N/A