Skip to content

Instantly share code, notes, and snippets.

@joaomoreno
Created August 2, 2018 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save joaomoreno/2bb9879aee864f22704882b5fac825c3 to your computer and use it in GitHub Desktop.
Save joaomoreno/2bb9879aee864f22704882b5fac825c3 to your computer and use it in GitHub Desktop.
Electron Fiddle Gist
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
<style>
html, body, #container {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
#container {
cursor: pointer !important;
}
#boundary {
background: red;
color: white;
height: 76%;
width: 100%;
}
</style>
</head>
<body>
<div id="container">
<div id="boundary">
`cursor: pointer` doens't work outside the red area
</div>
</div>
</body>
</html>
// Modules to control application life and create native browser window
const {app, BrowserWindow} = require('electron')
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let mainWindow
function createWindow () {
// Create the browser window.
mainWindow = new BrowserWindow({width: 800, height: 600, frame: false})
// and load the index.html of the app.
// mainWindow.loadFile('index.html')
mainWindow.loadURL(`file://${__dirname}/index.html`);
// Open the DevTools.
// mainWindow.webContents.openDevTools()
// Emitted when the window is closed.
mainWindow.on('closed', function () {
// Dereference the window object, usually you would store windows
// in an array if your app supports multi windows, this is the time
// when you should delete the corresponding element.
mainWindow = null
})
}
// This method will be called when Electron has finished
// initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs.
app.on('ready', createWindow)
// Quit when all windows are closed.
app.on('window-all-closed', function () {
// On OS X it is common for applications and their menu bar
// to stay active until the user quits explicitly with Cmd + Q
if (process.platform !== 'darwin') {
app.quit()
}
})
app.on('activate', function () {
// On OS X it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
if (mainWindow === null) {
createWindow()
}
})
// In this file you can include the rest of your app's specific main process
// code. You can also put them in separate files and require them here.
// This file is required by the index.html file and will
// be executed in the renderer process for that window.
// All of the Node.js APIs are available in this process.
@Abirhasan4
Copy link

AS ABIR HASAN:
"

tag:www.cloudflarestatus.com,2005:/history

<title>Cloudflare Status - Incident History</title> 2023-02-06T03:32:10Z Cloudflare tag:www.cloudflarestatus.com,2005:Incident/15940870 2023-02-14T14:00:00Z 2023-01-26T10:38:32Z <title>Maintenance impacting SSL API availability and certificate issuance</title> <p><strong>THIS IS A SCHEDULED EVENT Feb <var data-var='date'>14</var>, <var data-var='time'>14:00</var> - <var data-var='time'>16:00</var> UTC</strong></p><p><small>Jan <var data-var='date'>26</var>, <var data-var='time'>10:38</var> UTC</small><br><strong>Scheduled</strong> - On February 14th, 2023, Cloudflare will be doing database maintenance that will impact SSL API availability and may result in certificate issuance delays. The scheduled maintenance will be on February 14, 2023, 14:00 - 16:00 UTC.<br /><br />During the maintenance window, SSL-related APIs (listed below) will return 500 responses for write and read requests and certificate order processing requests will be delayed. Any API requests made during that time will fail and will need to be retried. <br /><br />Affected Services: <br />1) Advanced Certificate Order API: customers will not be able to order Advanced certificates or fetch information about Advanced certificates;<br />2) Certificate Packs API: customers will not be able to use the API to get information about certificate packs;<br />3) Custom Hostname API: customers will not be able to create new custom hostnames or fetch information about existing custom hostnames;<br />4) Custom SSL API: customers will not be able to upload Custom certificates or fetch information about Custom certificates;<br />5) Universal SSL API: customers will not be able to edit Universal SSL settings.<br /><br />In order to avoid any impact, we recommend to:<br />— schedule certificate issuances or custom hostname creations to occur outside the maintenance window;<br />— re-submit any failed API requests after the maintenance window;<br />— expect certificate issuance delays during the maintenance window.<br /><br />We apologise for any inconvenience this maintenance might cause.</p> tag:www.cloudflarestatus.com,2005:Incident/16016401 2023-02-10T01:00:00Z 2023-02-03T11:40:36Z <title>CDG (Paris) on 2023-02-10</title> <p><strong>THIS IS A SCHEDULED EVENT Feb <var data-var='date'>10</var>, <var data-var='time'>01:00</var> - <var data-var='time'>06:00</var> UTC</strong></p><p><small>Feb <var data-var='date'> 3</var>, <var data-var='time'>11:40</var> UTC</small><br><strong>Scheduled</strong> - We will be performing scheduled maintenance in CDG (Paris) datacenter on 2023-02-10 between 01:00 and 06:00 UTC. Traffic might be re-routed from this location, hence there is a possibility of a slight increase in latency during this maintenance window for end-users in the affected region. For PNI / CNI customers connecting with us in this location, please make sure you are expecting this traffic to fail over elsewhere

ef="https://www.cloudflarestatus.com/incidents/xp4lck1hk8xn"/>
<title>FRA (Frankfurt) on 2023-02-06</title>
<p><small>Feb <var data-var='date'> 6</var>, <var data-var='time'>01:00</var> UTC</small><br><strong>In progress</strong> - Scheduled maintenance is currently in progress. We will provide updates as necessary.</p><p><small>Feb <var data-var='date'> 2</var>, <var data-var='time'>16:20</var> UTC</small><br><strong>Scheduled</strong> - We will be performing scheduled maintenance in FRA (Frankfurt) datacenter on 2023-02-06 between 01:00 and 05:00 UTC. Traffic might be re-routed from this location, hence there is a possibility of a slight increase in latency during this maintenance window for end-users in the affected region. For PNI / CNI customers connecting with us in this location, please make sure you are expecting this traffic to fail over elsewhere during this maintenance window as network interfaces in this datacentre may become temporarily unavailable.</p>


tag:www.cloudflarestatus.com,2005:Incident/16019940
2023-02-04T00:47:05Z
2023-02-04T00:47:05Z

<title>JA3 Fingerprint missing from Worker requests</title>
<p><small>Feb <var data-var='date'> 4</var>, <var data-var='time'>00:47</var> UTC</small><br><strong>Resolved</strong> - This incident has been resolved.</p><p><small>Feb <var data-var='date'> 3</var>, <var data-var='time'>19:38</var> UTC</small><br><strong>Identified</strong> - The issue has been identified and a fix is being implemented.</p><p><small>Feb <var data-var='date'> 3</var>, <var data-var='time'>18:46</var> UTC</small><br><strong>Update</strong> - We are continuing to investigate this issue.</p><p><small>Feb <var data-var='date'> 3</var>, <var data-var='time'>18:45</var> UTC</small><br><strong>Investigating</strong> - Customers using Bot Management and Cloudflare Workers may no longer see JA3 Fingerprints when inspecting the Cloudflare object, or using Worker's JA3 field directly.</p>


tag:www.cloudflarestatus.com,2005:Incident/16019612
2023-02-03T23:34:30Z
2023-02-03T23:34:30Z

<title>DNS Analytics API queries may be failing.</title>
<p><small>Feb <var data-var='date'> 3</var>, <var data-var='time'>23:34</var> UTC</small><br><strong>Resolved</strong> - This incident has been resolved.</p><p><small>Feb <var data-var='date'> 3</var>, <var data-var='time'>22:50</var> UTC</small><br><strong>Monitoring</strong> - A fix has been implemented and we are monitoring the results.</p><p><small>Feb <var data-var='date'> 3</var>, <var data-var='time'>19:39</var> UTC</small><br><strong>Identified</strong> - The issue has been identified and a fix is being implemented.</p><p><small>Feb <var data-var='date'> 3</var>, <var data-var='time'>18:11</var> UTC</small><br><strong>Update</strong> - We are continuing to investigate this issue.</p><p><small>Feb <var data-var='date'> 3</var>, <var data-var='time'>18:11</var> UTC</small><br><strong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment