How to make userscript auto update from private domain/github? - tampermonkey

I am developing a userscript for Tampermonkey and storing it on private Github, that belongs to my company. I can't upload the code on a public server. The auto update feature of the script doesn't seem to work.
Is Tampermonkey using its own servers to check for updates?
Is it possible to make userscript auto update itself from private domain?
I am using these properties in userscript:
// #downloadURL https://github02.private.domain/raw/github-username/repo-name/master/userscript.js
// #updateURL https://github02.private.domain/raw/github-username/repo-name/master/userscript.js

You can submit your userscript on Github Page. After you can use your public github page link for make update.

Related

Showing Index directory List instead of application

I currently new in ReactJS, And I work this project using laravel and this reactjs. I have question regarding why when i open my web application intead the application is shown why the list of folder shown to my browser?
Scenario: It happen when i upload the whole project to the server it shows look like this.
Do i need to configure in my files so that when i browse my application it will automatically redirect to the application.
You must visit the public directory of your project or if you use virtual host, set the public directory as the entrance.

How to save image assets on Firebase and use their public URLs in my app?

I need to store images on Firebase and display them in my React application using Firebase.
This is not an image upload feature. I am talking about images that will be displayed in information static pages.
The closest resource I found was Firebase's Cloud Storage, however, this aimed at apps that allow users to upload their own content.
I also found Firebase's Hosting page, I followed some of the steps which include installing the firebase CLI. However, it doesn't make it clear how to save my image assets there. Maybe FTP?
The best alternative I found so far was to save my images in my app's public folder, however, from a performance standpoint it would be more interesting to have those images saved on Firebase directly and use their URLs in my application.
The solution was simpler than I thought.
You can simply access your app page on Firebase, go in the "Develop" section and choose "Storage".
In the "Storage" page you can upload files and a default public URL will be generated for them. I chose the "Download URL" for each image that I uploaded.

Is there anyway to create a task from Force.com site?

I've opened up a visualforce page on sites and on receipt of a private sms (using twilio) I'm trying to create a task. However everything seems to show this is not possible due to Public Access Settings. Is there no way to create tasks from a Force.com site?
A VisualForce Page Controller cannot do this on a Force.com Site. However, if you create a 2nd Apex Class that is Global, your controller can call a method in that class that inserts the Task.

Liferay 6.2 - No Invitation mail sent from Calendar CE Portlet

I see a strange behavior with Calendar CE portlet. I just want to know what is the reason behind it.
My Calendar CE portlet (one that comes with liferay 6.2 GA3 package) was working fine but suddenly it stopped sending email notifications for Invitation(RSVP link).No errors shown in console. then after a while i discovered that using the below code in Portal-ext.properties causes this issue.
# Set whether or not private layouts are enabled. Set whether or not private
# layouts should be auto created if a user has no private layouts. If
# private layouts are not enabled, then the property
# "layout.user.private.layouts.auto.create" is assumed to be false.
layout.user.private.layouts.enabled=false
layout.user.private.layouts.auto.create=false
# Set whether or not public layouts are enabled. Set whether or not public
# layouts should be auto created if a user has no public layouts. If public
# layouts are not enabled, then the property
# "layout.user.public.layouts.auto.create" is assumed to be false.
layout.user.public.layouts.enabled=false
layout.user.public.layouts.auto.create=false
I use the above code just to disable My Profile & My Dashboard buttons in dropdown(TOP Right corner). and to disable private pages aswell.
I tested this. whenever i use the above code in portal-ext.properties Calendar can't send any emails. All other email functionalities are working same.
Please help me to fix this issue.
REF: https://www.liferay.com/community/forums/-/message_boards/message/54631418
Thanks.
After some investigation, I think I can boil down the issue to the following lines in com.liferay.calendar.notification.NotificationTemplate(Lines 182-184):
PortletURL portletURL = PortletURLFactoryUtil.create(
serviceContext.getRequest(), PortletKeys.CALENDAR,
themeDisplay.getPlid(), ActionRequest.RENDER_PHASE);
What's happening here? Well, Liferay want's to send a Link to the Calendar in the Notification Email. To do so, they have to evaluate where the portlet lives. (Meaning, where you put it ;) ) As the User does not have any pages (and therefore no Calendar portlet on a page) this method is about to fail. To be honest, I can't offer you a solution how to tackle the Problem, but at least we have an idea, WHY this is happening. You could start with some try catch blocks and some debug output to investigate further if that really IS the root of the Problem. But I am quite confident that these things correlate.

update notification in WP app

I want create update notification in my wp app, that when I will publish new version my app in main screen displayed pop-up with text available new version.
How I can do it?
Can I get data about last version my app from market?
See http://www.pedrolamas.com/2013/07/24/checking-for-updates-from-inside-a-windows-phone-app/ for code that checks if there is a newer version available.
See http://dotnetbyexample.blogspot.com/2013/09/zero-lines-of-code-solution-for-in-app.html for easy integration in your app.

Resources