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
PUT _ingest/pipeline/route_restriction_date_converter | |
{ | |
"description": "Convert dates to ISO format", | |
"processors": [ | |
{ | |
"date": { | |
"field": "start_date", | |
"target_field": "start_date", | |
"formats": [ |
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
#aws root partition resize | |
growpart /dev/xvda 1 | |
resize2fs /dev/xvda1 |
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
POST management_users/_update_by_query | |
{ | |
"script": { | |
"source": "ctx._source.web_permissions=params.web_permissions", | |
"params": { | |
"web_permissions": { | |
"allowed_actions": [], | |
"permissions_group_name": "full_control", | |
"permissions_group_id": "f-AbVXgBawR5qZFRXLTM", | |
"permissions_group_label": "Full control" |
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
POST _reindex | |
{ | |
"source": { | |
"index": "route_policy" | |
}, | |
"dest": { | |
"index": "route_policy_back", | |
"pipeline": "route_restriction_date_converter" | |
} |
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
{ | |
"Records": [ | |
{ | |
"cf": { | |
"config": { | |
"distributionId": "EDFDVBD6EXAMPLE" | |
}, | |
"request": { | |
"clientIp": "2001:0db8:85a3:0:0:8a2e:0370:7334", | |
"method": "GET", |
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
POST _reindex | |
{ | |
"source": { | |
"index": "vehicles" | |
}, | |
"dest": { | |
"index": "vehicels-back" | |
}, | |
"script": { | |
"lang": "painless", |
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
POST _snapshot/cs-automated/2021-05-28t09-21-08.6875e438-f416-45ff-93d0-cd3062924011/_restore | |
{ | |
"indices": "stations", | |
"ignore_unavailable": true, | |
"include_global_state": false, | |
"rename_pattern": "stations", | |
"rename_replacement": "restored_stations", | |
"include_aliases": false | |
} |
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
sudo apt-get install --reinstall linux-headers-5.4.0-65-generic |
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
cd /lib/firmware/intel | |
sudo rm ibt-12-16.* | |
sudo wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/intel/ibt-12-16.sfi | |
# Restart the machine |
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
sudo growpart /dev/xvda 1 | |
#resize2fs /dev/xvda1 | |
sudo xfs_growfs -d / # seems to work better |
OlderNewer