> 0==-null
true
> 0==+null
true
> 0==null
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
import socket | |
import logging | |
try: | |
# see if we can resolve the host name -- tells us if there is | |
# a DNS listening | |
host = socket.gethostbyname('www.google.com') | |
# connect to the host -- tells us if the host is actually | |
# reachable | |
s = socket.create_connection((host, 80), 2) |
Copied from here: https://gist.github.com/alexcasalboni/9f118ac10a59a5c4eb6bfd75d0a65773
AWSTemplateFormatVersion : '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Parameters:
Subnets:
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.freshworks.marketplace.installation.entity.InstalledExtensionEntity;
import com.freshworks.marketplace.installation.repository.InstalledExtensionRepository;
import com.freshworks.marketplace.installation.repository.InstalledExtensionStateRepository;
import com.freshworks.marketplace.installation.service.InstallationService;
~/.gitconfig
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[user]
name = Ganesh Satpute
email = your-email@company.com
fields @timestamp, @message
| filter @message like 'Request executed successfully'
# {"context":{"accountId":"781754","appId":"7656","msg":"Request executed successfully","timestamp":"2022-07-06 06:32:23.552","uuid":"a16e8644-ebae-4d2d-a58c-246ecb39adbb"}
| parse @message '*accountId":"*","appId":"*",*' as prefix, accountId, appId, postFix
| sort @timestamp desc
| stats count(*) by accountId
NewerOlder