LetsEncrypt Auto Renew Scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -c https://github.com/sergiitk/pagerbeauty/archive/v$PAGERBEAUTY_VERSION.tar.gz -O - | \ | |
tar zxf - -C $APP_DIR --strip-components 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
logs_enabled: true | |
logs_config: | |
processing_rules: | |
- type: mask_sequences | |
name: mask_user_email | |
pattern: "([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})" | |
replace_placeholder: "<MASKED_EMAIL>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let floatingWindow; | |
const createFloatingWindow = function() { | |
const electron = require('electron'); | |
const BrowserWindow = electron.BrowserWindow; | |
if (!floatingWindow) { | |
floatingWindow = new BrowserWindow({ | |
width: 1000, | |
height: 80, | |
titleBarStyle: 'hide', | |
transparent: true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
securityDefinitions: | |
auth0: | |
type: oauth2 | |
scopes: {} | |
flow: accessCode | |
authorizationUrl: https://wangbaiyuan.auth0.com/authorize | |
tokenUrl: https://wangbaiyuan.auth0.com/oauth/token | |
x-token-validation-url: https://wangbaiyuan.auth0.com/oauth/access_token |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function (user, context, callback) { | |
const mapping = { | |
readonly: "arn:aws:iam::xxxx:role/ReadOnly,arn:aws:iam::xxxx:saml-provider/Auth0", | |
admin: "arn:aws:iam::xxxx:role/Admin,arn:aws:iam::xxxx:saml-provider/Auth0", | |
}; | |
user.awsRole = mapping.readonly; | |
if (context.authorization.roles.findIndex(role => role === "Admin") >= 0) { | |
user.awsRole = mapping.admin; |