• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

disable

CloudWatch Notifications

September 7, 2022

How to give someone access to enable/disable CloudWatch notifications.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Action": [
                "cloudwatch:DescribeAlarms",
                "cloudwatch:EnableAlarmActions",
                "cloudwatch:DisableAlarmActions"
            ],
            "Effect": "Allow",
            "Resource": "*"
        }
    ]
}

{ "Version": "2012-10-17", "Statement": [ { "Action": [ "cloudwatch:DescribeAlarms", "cloudwatch:EnableAlarmActions", "cloudwatch:DisableAlarmActions" ], "Effect": "Allow", "Resource": "*" } ] }

Filed Under: Cloud Tagged With: aws, cloudwatch, disable, enable, notifications

Enable Core Dumps

December 13, 2021

Core dumps are triggered by kernel when a program crashses. It saves memory to a file.

How to enable core dumps.

ulimit -S -c unlimited

ulimit -S -c unlimited

Enable core dumps permanently. Edit /etc/security/limits.conf. Add the following.

* soft core unlimited

* soft core unlimited

Disable core dumps.

ulimit -S -c 0

ulimit -S -c 0

Disable core dumps permanently. Edit /etc/security/limits.conf. Add the following.

* soft core 0
* hard core 0

* soft core 0 * hard core 0

Filed Under: Linux Tagged With: core, disable, dumps, enable

AWS CloudWatch Alarms

October 25, 2021

How to enable and disable CloudWatch alarms

$ aws cloudwatch disable-alarm-actions --alarm-names myalarm --region us-east-1
$ aws cloudwatch enable-alarm-actions --alarm-names myalarm --region us-east-1

$ aws cloudwatch disable-alarm-actions --alarm-names myalarm --region us-east-1 $ aws cloudwatch enable-alarm-actions --alarm-names myalarm --region us-east-1

Filed Under: Cloud Tagged With: alarm, aws, cloudwatch, disable, enable

Winbind Fix

May 24, 2021

Here’s the process to restore Winbind.

Restore old config.

cp /etc/sssd/sssd.conf-xxxxxxx /etc/sssd/sssd.conf
cp /etc/krb5.conf-xxxxxxx /etc/krb5.conf

cp /etc/sssd/sssd.conf-xxxxxxx /etc/sssd/sssd.conf cp /etc/krb5.conf-xxxxxxx /etc/krb5.conf

Disable SSSD. Authconfig creates /etc/nswitch.conf.

authconfig --disablesssd --disablesssdauth --updateall

authconfig --disablesssd --disablesssdauth --updateall

Start Winbind.

service winbind start; service smb start; service nmb start

service winbind start; service smb start; service nmb start

Filed Under: Linux Tagged With: disable, restart, restore, winbind

Disable Gutenberg

February 27, 2021

Two years ago, WordPress introduced Gutenberg block editor together with the release of WordPress version 5.0. Gutenberg essentially became the default editor starting with WordPress version 5.0. While many people love the Gutenberg editor, some people hate it. If you’re one of the many people who hate the Gutenberg editor, you can simply disable it by installing a plugin called Disable Gutenberg. This plugin will revert back to the classic editor.

Once installed, you should be able to see the Classic editor.

After working with Gutenberg for so long, I forgot the speed and agility of the classic editor. It’s much faster.

Filed Under: WP Tagged With: classic, disable, editor, gutenberg, wordpress

Disable Post Title in Genesis

September 13, 2020

Here’s how to disable the post title in Genesis WordPress themes. Add code in themes.php.

add_filter( 'genesis_link_post_title', '__return_false' );

add_filter( 'genesis_link_post_title', '__return_false' );

Filed Under: WP Tagged With: disable, genesis, link, post, theme, title, wordpress

AWS CLI IAM Keys

December 20, 2019

Here’s a few commands to create, delete and disable AWS user keys.

List user keys.

aws iam list-access-keys --user-name john.doe

aws iam list-access-keys --user-name john.doe

Create access key. Results are printed on screen in JSON format.

aws iam create-access-key --user-name john.doe

aws iam create-access-key --user-name john.doe

Disable a key. The real key id is obfuscated.

aws iam update-access-key \
--access-key-id ******************** \
--status Inactive \
--user-name john.doe

aws iam update-access-key \ --access-key-id ******************** \ --status Inactive \ --user-name john.doe

Delete a key. They real key id is obfuscated.

aws iam delete-access-key \
--access-key-id ******************** \
--user-name john.doe

aws iam delete-access-key \ --access-key-id ******************** \ --user-name john.doe

Filed Under: Cloud Tagged With: aws, cli, create, delete, disable, iam, keys

Disable Falcon-Sensor

June 28, 2019

Here’s how to disable falcon-sensor or CrowdStrike.

systemctl stop falcon-sensor
systemctl disable falcon-sensor

systemctl stop falcon-sensor systemctl disable falcon-sensor

Filed Under: Cloud, Linux Tagged With: crowdstrike, disable, falcon-sensor, stop, systemctl

  • Home
  • About
  • Archives

Copyright © 2023