This file contains hidden or 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
// Uses Node, AMD or browser globals to create a module. This example creates | |
// a global even when AMD is used. This is useful if you have some scripts | |
// that are loaded by an AMD loader, but they still want access to globals. | |
// If you do not need to export a global for the AMD case, | |
// see returnExports.js. | |
// If you want something that will work in other stricter CommonJS environments, | |
// or if you need to create a circular dependency, see commonJsStrictGlobal.js | |
// Defines a module "returnExportsGlobal" that depends another module called |
This file contains hidden or 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
// Uses Node, AMD or browser globals to create a module. This example creates | |
// a global even when AMD is used. This is useful if you have some scripts | |
// that are loaded by an AMD loader, but they still want access to globals. | |
// If you do not need to export a global for the AMD case, | |
// see returnExports.js. | |
// If you want something that will work in other stricter CommonJS environments, | |
// or if you need to create a circular dependency, see commonJsStrictGlobal.js | |
// Defines a module "returnExportsGlobal" that depends another module called |
This file contains hidden or 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
const readline = require('readline'); | |
const say = require('say'); | |
const responses = [ | |
{ keyword: 'hello', message: 'Hi there, how can I help you?' }, | |
{ keyword: 'hi', message: 'Hey, what\'s up?' }, | |
{ keyword: 'hey', message: 'Hi! How are you doing today?' }, | |
{ keyword: 'good morning', message: 'Good morning! How can I assist you today?' }, | |
{ keyword: 'good afternoon', message: 'Good afternoon! What brings you here?' }, | |
{ keyword: 'good evening', message: 'Good evening! Is there anything I can help you with?' }, |
This file contains hidden or 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
/** | |
* Returns the data type based on the base64 string | |
* @param {String} base64String | |
* @param {String} fileName | |
* @returns {String} | |
*/ | |
detectMimeType(base64String, fileName) { | |
var ext = fileName.substring(fileName.lastIndexOf(".") + 1); | |
if (ext === undefined || ext === null || ext === "") ext = "bin"; | |
ext = ext.toLowerCase(); |
This file contains hidden or 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
## Note, this file is written by cloud-init on first boot of an instance | |
## modifications made here will not survive a re-bundle. | |
## if you wish to make changes you can: | |
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg | |
## or do the same in user-data | |
## b.) add sources in /etc/apt/sources.list.d | |
## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl | |
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
# newer versions of the distribution. |
This file contains hidden or 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
deb http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse | |
# deb-src http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse | |
# deb-src http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse | |
# deb-src http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse |
This file contains hidden or 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
<keybind key="XF86MonBrightnessUp"> | |
<action name="Execute"> | |
<command>xbacklight -inc 10%</command> | |
</action> | |
</keybind> | |
<keybind key="XF86MonBrightnessDown"> | |
<action name="Execute"> | |
<command>xbacklight -dec 10%</command> | |
</action> | |
</keybind> |
This file contains hidden or 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
deb http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse | |
deb-src http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse | |
deb http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse | |
deb-src http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse | |
deb http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse | |
deb-src http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse | |
deb http://ports.ubuntu.com/ubuntu-ports jammy-security main restricted universe multiverse |
This file contains hidden or 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
const apiURL = "https://brasilapi.com.br/api"; | |
const endpoint = `${apiURL}/cep/v2`; | |
/** | |
* @typedef IPayload | |
* @type {object} | |
* @property {string} cep | |
* @property {string} state | |
* @property {string} city | |
* @property {string} neighborhood |
This file contains hidden or 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
#!/bin/sh | |
COMMIT_MSG_FILE=$1 | |
COMMIT_SOURCE=$2 | |
SHA1=$3 | |
COMMIT_MSG=$(cat "$COMMIT_MSG_FILE") | |
if [ -z "$BRANCHES_TO_SKIP" ]; then | |
BRANCHES_TO_SKIP=(master develop main) |
NewerOlder