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
ps -daf # show me all the processes and all the info | |
ps aux # show me processes as well, but more organized | |
lsof -i :<port> # get PID and other info of process running on port | |
# Below is an example of some things you can do with gawk/awk (gawk on mac). Read man for more detail. | |
some_command | gawk/awk '{variable = gensub(/<your regex>/,"\\1","g",$1); if(!d[ip]) { print variable; d[ip]=1; fflush(stdout)}' | |
#another awk example that I don't fully understand, but keeping it to look into later | |
some_command | awk '$1>1024 {print ":" $0; fflush()}' |
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
function customTimeoutFunction(audioContext) { | |
let tasks = []; | |
let nextTaskId = 1; | |
function now() { | |
return audioContext.currentTime * 1000; | |
} | |
function scheduler() { |
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
#!/bin/bash | |
username="COGNITO_USER_NAME" | |
password="PASSWORD" | |
clientid="APP_CLIENT_ID" | |
region="eu-west-1" | |
aws_profile="AWS_CLI_PROFILE" | |
response_json="" | |
json_field='IdToken' |