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
| echo '"userName", "enabled", "firstName", "lastName", "jobtitle", "organization", "location", "telephone", "mobile", "email", "companyaddress1", "companyaddress2", "companyaddress3", "companypostcode", "companytelephone", "companyFax", "companyemail", "isDeleted"' > people.csv | |
| curl -u user:"password" "https://domain.com/alfresco/s/api/people?maxResults=2000" | \ | |
| jq -r '.people[] | [.userName, .enabled, .firstName, .lastName, .jobtitle, .organization, .location, .telephone, .mobile, .email, .companyaddress1, .companyaddress2, .companyaddress3, .companypostcode, .companytelephone, .companyFax, .companyemail, .isDeleted] | @csv' >> people.csv |
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
| import sys, os | |
| # sys.path.append('./Common') # noqa | |
| sys.path.append(os.path.abspath('./Common')) | |
| import Common.common as common | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| import matplotlib.patches as mpatches | |
| import matplotlib | |
| from collections import Counter, OrderedDict |
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
| SELECT | |
| th.name as metric, | |
| long_lat.site AS name, | |
| long_lat.Latitude AS latitude, | |
| long_lat.Longitude AS longitude, | |
| COUNT(th.type_id) AS value | |
| FROM ticket_history th | |
| LEFT JOIN | |
| -- SUB QUERY FOR LOCATIONS | |
| (SELECT |
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
| ansible-playbook -i hosts pacakges.yml -k -K |grep -A 1000 "PLAY RECAP"|tail -n +2|tr -d ':'|tr -s '[:space:]'|sed 's/[[:space:]]/,/g'> fixed_output.csv |
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
| mvn compile com.github.johnpoth:jshell-maven-plugin:1.3:run |
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
| { | |
| // See https://go.microsoft.com/fwlink/?LinkId=733558 | |
| // for the documentation about the tasks.json format | |
| "version": "2.0.0", | |
| "tasks": [ | |
| { | |
| "label": "Create Lambda", | |
| "type": "shell", | |
| "command": "target/manage.sh create", | |
| "group": "none", |
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
| <repositories> | |
| <repository> | |
| <id>alfresco</id> | |
| <name>Alfresco</name> | |
| <url>https://artifacts.alfresco.com/nexus/content/groups/public/</url> | |
| </repository> | |
| </repositories> |
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/bash | |
| # Variables | |
| BITNAMI_DIR="/home/bitnami" | |
| STACK_DIR="$BITNAMI_DIR/stack/wordpress/wp-content" | |
| DB_PASSWORD_FILE="$BITNAMI_DIR/bitnami_application_password" | |
| DB_NAME="bitnami_wordpress" | |
| USER="" | |
| PASSWORD="" |
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
| # iclude <tunables/global> | |
| # profile wparmor flags=(attach_disconnected,mediate_deleted) { | |
| # include <../abstractions/base> | |
| network, | |
| capability, | |
| file, |
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
| <?php | |
| namespace Espo\Custom\Hooks\CaseObj; | |
| use Espo\Core\InjectableFactory; | |
| use Espo\Core\Utils\Log; | |
| use Espo\Modules\Crm\Entities\CaseObj; | |
| use Espo\ORM\Entity; | |
| use Espo\ORM\EntityManager; | |
| // This hook will be executed after the save of the Case entity |