Skip to content

Instantly share code, notes, and snippets.

View anupammaiti's full-sized avatar
😎
Before software can be reusable it first has to be usable

Anupam Maiti anupammaiti

😎
Before software can be reusable it first has to be usable
View GitHub Profile
@anupammaiti
anupammaiti / pdf_download.js
Created June 14, 2020 14:28 — forked from gpprojekt-marcin/pdf_download.js
jQuery.ajax() download pdf
$.ajax({
url: url,
data: data,
success: function (data) {
var blob = new Blob([data]);
var link = document.createElement('a');
link.href = window.URL.createObjectURL(blob);
link.download = "Dossier.pdf";
link.click();
}
@unitycoder
unitycoder / local-stream-server-win10.md
Last active April 22, 2024 15:22
Local RTMP Stream Server for Windows

https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmfp-server-using-monaserver.153/ (copied here as a backup)

This article is inspired of the great guide of How to set up your own private RTMP server using nginx. https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmp-server-using-nginx.50/

MonaServer is a tiny and scalable open source server which provide protocols RTMFP, RTMP, RTMPE, WebSocket and HTTP. Server applications are written in lua and clients just need to support one of these protocols.

The interest of MonaServer here is the RTFMP broadcast feature that avoid congestion (because it is a UDP protocol) unlike RTMP.

This guide will presents you an easy way to broadcast a video with OBS over RTMFP. Don't worry, you will not need to configure or write any code here :)

@anupammaiti
anupammaiti / deactivated_pages_list.sh
Created September 18, 2017 12:24 — forked from toodooleedoo/deactivated_pages_list.sh
#AEM #CQ #LINUX #QUERYBUILDER Get List of Deactivated pages
curl -u admin:admin “http://<<<CUT>>>:7402/author/bin/querybuilder.json?orderby=%40cq%3atime&orderby.sort=desc&p.limit=-1&path=%2fvar%2faudit%2fcom.day.cq.replication%2fcontent%2f01%2fna&property=cq%3atype&property.1_value=Activate&property.2_value=Deactivate&type=cq%3aAuditEvent” > deactivated_pages_qa.txt
@anupammaiti
anupammaiti / AEM cURL
Created March 3, 2017 06:27 — forked from joemaffia/AEM cURL
AEM cURL commands
Uninstall a bundle (use http://localhost:4505/system/console/bundles to access the Apache Felix web console)
curl -u admin:admin -daction=uninstall http://localhost:4505/system/console/bundles/"name of bundle"
Install a bundle
curl -u admin:admin -F action=install -F bundlestartlevel=20 -F
bundlefile=@"name of jar.jar" http://localhost:4505/system/console/bundles
Build a bundle
curl -u admin:admin -F bundleHome=/apps/centrica/bundles/name of bundle -F
descriptor=/apps/centrica/bundles/com.centrica.cq.wcm.core-bundle/name_of_bundle.bnd
@abhardwaj4
abhardwaj4 / .content.xml
Created September 19, 2016 18:36
Override CUI.rte.plugins.KeyPlugin
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="cq:ClientLibraryFolder"
categories="rte.coralui2"/>