Skip to content

Commit

Permalink
Contents of Wiki page from 18 to 24 November 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
Xeus-Territory committed Nov 24, 2024
1 parent af900d2 commit 60ef933
Show file tree
Hide file tree
Showing 16 changed files with 498 additions and 550 deletions.
11 changes: 9 additions & 2 deletions content/.obsidian/plugins/obsidian-excalidraw-plugin/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"embedUseExcalidrawFolder": false,
"templateFilePath": "Excalidraw/Template.excalidraw",
"scriptFolderPath": "Excalidraw/Scripts",
"fontAssetsPath": "Excalidraw/CJK Fonts",
"loadChineseFonts": false,
"loadJapaneseFonts": false,
"loadKoreanFonts": false,
"compress": true,
"decompressForMDView": false,
"onceOffCompressFlagReset": true,
Expand All @@ -27,6 +31,7 @@
"previewMatchObsidianTheme": false,
"width": "400",
"height": "",
"overrideObsidianFontSize": false,
"dynamicStyling": "colorful",
"isLeftHanded": false,
"iframeMatchExcalidrawTheme": true,
Expand All @@ -36,6 +41,7 @@
"defaultMode": "normal",
"defaultPenMode": "never",
"penModeDoubleTapEraser": true,
"penModeSingleFingerPanning": true,
"penModeCrosshairVisible": true,
"renderImageInMarkdownReadingMode": false,
"renderImageInHoverPreviewForMDNotes": false,
Expand Down Expand Up @@ -93,7 +99,7 @@
"library2": {
"type": "excalidrawlib",
"version": 2,
"source": "https://github.com/zsviczian/obsidian-excalidraw-plugin/releases/tag/2.5.2",
"source": "https://github.com/zsviczian/obsidian-excalidraw-plugin/releases/tag/2.6.7",
"libraryItems": [
{
"status": "published",
Expand Down Expand Up @@ -359544,7 +359550,7 @@
"mdCSS": "",
"scriptEngineSettings": {},
"defaultTrayMode": true,
"previousRelease": "2.5.2",
"previousRelease": "2.6.7",
"showReleaseNotes": true,
"showNewVersionNotification": true,
"latexBoilerplate": "\\color{blue}",
Expand Down Expand Up @@ -360194,6 +360200,7 @@
"areaZoomLimit": 1,
"longPressDesktop": 500,
"longPressMobile": 500,
"doubleClickLinkOpenViewMode": true,
"isDebugMode": false,
"rank": "Bronze",
"modifierKeyOverrides": [
Expand Down
8 changes: 5 additions & 3 deletions content/.obsidian/plugins/obsidian-excalidraw-plugin/main.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-excalidraw-plugin",
"name": "Excalidraw",
"version": "2.5.2",
"version": "2.6.7",
"minAppVersion": "1.1.6",
"description": "An Obsidian plugin to edit and view Excalidraw drawings",
"author": "Zsolt Viczian",
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@ So enjoy what you need, inside the article will share about how you CLI, cheatsh
- [awesome-aws](https://github.com/donnemartin/awesome-aws) - A curated list of awesome Amazon Web Services (AWS) libraries, open source repos, guides, blogs, and other resources.
- [my-arsenal-of-aws-security-tools](https://github.com/toniblyx/my-arsenal-of-aws-security-tools): List of open source tools for AWS security: defensive, offensive, auditing, DFIR, etc.
- [all_aws_managed_policies](https://gist.github.com/gene1wood/55b358748be3c314f956): A list of all AWS managed policies and they're policy documents as well as a short script to generate the list
- [grafana-aws-cloudwatch-dashboards](https://github.com/monitoringartist/grafana-aws-cloudwatch-dashboards): 40+ Grafana dashboards for AWS CloudWatch metrics
## Organization

- [Github - Amazon Web Services](https://github.com/aws) - AWS Opensource Community
- [Github - AWS Samples](https://github.com/aws-samples) - AWS Samples Community
# Blogs and Articles
# Blogs, Articles and Videos

## Blogs

Expand All @@ -65,10 +66,15 @@ So enjoy what you need, inside the article will share about how you CLI, cheatsh
- [Medium - 18 AWS Lambda Microstacks](https://awstip.com/18-aws-lambda-microstacks-bb20776601c0)
- [Medium - 14 AWS Security Microstacks](https://medium.com/@csjcode/14-aws-security-microstacks-95d120d57089)
- [Medium - 7 Effective Ways to Automate Cloud Infrastructure Auditing with AWS CloudTrail and AWS Config](https://aws.plainenglish.io/7-effective-ways-to-automate-cloud-infrastructure-auditing-with-aws-cloudtrail-and-aws-config-39d983f43d30)
- [AWS Docs - Configuring IAM Identity Center authentication with the AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html)
## Issues

- [AWS re:Post - Getting an Access Denied error message when I upload files to my Amazon S3 bucket](https://repost.aws/knowledge-center/s3-access-denied-error-kms)
- [AWS - Troubleshoot access denied (403 Forbidden) errors in Amazon S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/troubleshoot-403-errors.html#access-denied-message-examples)

## Videos

- [Youtube - Amazon S3 - Static Website Hosting with Custom Domain and TLS](https://www.youtube.com/watch?v=X9cdkqBgLbs&ab_channel=BryanKrausen)
# AWS CLI

>[!question]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@ What you can find out and figure out about Azure, Cloud Computing, Documentation
- [Azure - Register Account](https://azure.microsoft.com/en-us/free)
- [Azure - Community](https://techcommunity.microsoft.com/t5/azure/ct-p/Azure)
- [Azure - Tech Community](https://techcommunity.microsoft.com/)
- [Azure - Technical documentation](https://learn.microsoft.com/en-us/docs/)
- [Azure - Architecture Blog](https://techcommunity.microsoft.com/t5/azure-architecture-blog/bg-p/AzureArchitectureBlog)
- [Azure CLI - User Guide](https://learn.microsoft.com/en-us/cli/azure/reference-index?view=azure-cli-latest)
- [Azure Price Calculator](https://azure.microsoft.com/en-gb/pricing/calculator/)
- [Azure - Blog](https://azure.microsoft.com/en-us/blog/)
- [Azure - Subscription and Service Limits, Quotas, and Constraints](https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits)
- [Azure - Sample Code from Microsoft Developer Tools](https://learn.microsoft.com/en-us/samples/browse/)

>[!info]
>If you want to receive the credit from VS Subscription, you can direct use via [Monthly Azure credits for Visual Studio subscribers](https://azure.microsoft.com/en-us/pricing/member-offers/credit-for-visual-studio-subscribers)
Expand All @@ -58,7 +60,8 @@ What you can find out and figure out about Azure, Cloud Computing, Documentation
- [Azure Verified Modules](https://azure.github.io/Azure-Verified-Modules/) - An initiative to consolidate and set the standards for what a good Infrastructure-as-Code module looks like.
## Organization

- [Github - Microsoft Azure](https://github.com/Azure) - APIs, SDKs and open source projects from Microsoft Azure
- [Microsoft Azure](https://github.com/Azure) - APIs, SDKs and open source projects from Microsoft Azure
- [Microsoft Docs](https://github.com/MicrosoftDocs) - The modern documentation service for Microsoft

# Azure CLI

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,20 @@ You can explore command with `kubectl` in some place, including

- [kubectl Quick Reference](https://kubernetes.io/docs/reference/kubectl/quick-reference/)
- [kubectl reference](https://kubernetes.io/docs/reference/kubectl/generated/)
# Helpful command

## Get base64 decode of secret with no more 3th party
# Get base64 decode of secret with no more 3th party

```bash
kubectl get secrets -n <namespace> <secret> -o go-template='{{range $k,$v := .data}}{{"### "}}{{$k}}{{"\n"}}{{$v|base64decode}}{{"\n\n"}}{{end}}'
```

## Debug your node via kubectl
# Debug your node via kubectl

```bash
kubectl debug node/my-node -it --image=<img>
```

## Check the resource of workload with `resource-capacity` extension
# Check the resource of workload with `resource-capacity` extension

Download via `krew`, find out the step at [krew installing](https://krew.sigs.k8s.io/docs/user-guide/setup/install/)

Expand All @@ -41,7 +40,7 @@ kubectl resource-capacity -a
kubectl resource-capacity -p --util
```

## Scale down the `statefulset` application
# Scale down the `statefulset` application

```bash
# Use scale option
Expand All @@ -53,32 +52,46 @@ kubectl patch statefulsets <stateful-set-name> -p '{"spec":{"replicas":<new-repl

You need to consider when apply scaling down can not working because *"cannot scale down a StatefulSet when any of the stateful Pods it manages is unhealthy. Scaling down only takes place after those stateful Pods become running and ready."* . Read more in: [Scale a StatefulSet](https://kubernetes.io/docs/tasks/run-application/scale-stateful-set/#troubleshooting)

## Delete `pods` with not on state `Running`
# Delete `pods` with not on state `Running`

```bash
k delete pods -n <name-space> --field-selector=status.phase!=Running
```

## Delete `all` component inside cluster
# Delete `all` component inside cluster

```bash
# For example: Delete all pvc in namespace default
kubectl delete pvc --all
```
## Create the generic secrets from file, for example `binary` file with auto convert to `base64` format
# Create the generic secrets from file, for example `binary` file with auto convert to `base64` format

```bash
kubectl create secret generic accounts-identityserver-certificate --from-file=certificate.pfx --dry-run=client -o yaml > certificate_sec.yaml 
```

## Check currently config context
# Check currently config context

```bash
kubectl config view --minify
```

## Change default storage class for your node
# Change default storage class for your node

```bash
kubectl patch storageclass <sc-specific> -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
```

# Roll out the previous deployment

```bash
kubectl rollout history deployment <deployment-name> -n <namespace>
kubectl rollout undo deployment <deployment-name> -n <namespace>
```

# Get events with filter depend `creationTimestamp`


```bash
kubectl get events -n <namespace> --sort-by=.metadata.creationTimestamp
```
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,11 @@ tags:
### IAST (Interactive Application Security Testing)

- [DongTai](https://github.com/HXSecurity/DongTai): (IAST) tool that enables real-time detection of common vulnerabilities in Java applications and third-party components through passive instrumentation.

## Thread Intelligent

- [openappsec](https://github.com/openappsec/openappsec): A machine learning security engine that preemptively and automatically prevents threats against Web Application & APIs.
- [teleport](https://github.com/gravitational/teleport): The easiest, and most secure way to access and protect all of your infrastructure.
## Networking

>[!info]
Expand Down Expand Up @@ -338,7 +343,7 @@ tags:
- [Online Cyber Security Blue Team Training - CyberDefenders](https://cyberdefenders.org/blueteam-ctf-challenges/): Learn and try to improving the defensive skillset on Blue Team
- [OverTheWire: Wargames](https://overthewire.org/wargames/) : The level competition which you need to find the key for reach to next level (**HELPFUL - FOR UPGRADE LINUX SKILL**)
- [UnderTheWire: Wargames](https://underthewire.tech/wargames): Wargames where help you improve hacking skill **(HELPFUL - FOR UPGRADE POWERSHELL SKILL)**
- [Welcome [Root Me : Hacking and Information Security learning platform]](https://www.root-me.org/?lang=en) : Like HTB and THM but you will have fun things to exploit
- [Root Me : Hacking and Information Security learning platform](https://www.root-me.org/?lang=en) : Like HTB and THM but you will have fun things to exploit
- [Application Security Training For Developers | Kontra](https://application.security/) : Vulnerables Site which visual on illustration and take you image what happen when attacking occur
- [Vulnerable By Design ~ VulnHub](https://vulnhub.com/) : Like HTB and THM, but you need to learn about virtualization to setup the pentest environment
- [Attack-Defense Labs](https://attackdefense.com/) : More Labs you can take and archive your knowledge, bro trust me.
Expand Down Expand Up @@ -388,7 +393,7 @@ tags:

- [PicoCTF](https://picoctf.org/): Best of way for newbie and starter **(LEGACY PAGE)**
- [PWNABLE.VN](https://pwnable.vn/) : Vietnamese group whose create a wonderful page for practicing CTF
- [Bắt đầu với CTF: Tổng hợp các trang WarGame để luyện tập | WhiteHat.vn](https://whitehat.vn/threads/bat-dau-voi-ctf-tong-hop-cac-trang-wargame-de-luyen-tap.11346/?fbclid=IwAR1hgk2EXcP5ozMGGF2Lv9Vg6sxfYuJ3jaf5kVKlO0esg_TF15a4M85XJP0) : Collection of CTF from huge page about security WhiteHat (Vietnamese)
- [Bắt đầu với CTF: Tổng hợp các trang WarGame để luyện tập | WhiteHat.vn](https://whitehat.vn/threads/bat-dau-voi-ctf-tong-hop-cac-trang-wargame-de-luyen-tap.11346/) : Collection of CTF from huge page about security WhiteHat (Vietnamese)
- [Home Page - ImaginaryCTF](https://imaginaryctf.org/) : Monthly CTF challenge page, Super cool contents. You will learn a lot from that
- [CTFLearn](https://ctflearn.com/) : CTF challenge page, you can practice more and level up skillset on multiple category of CTF game
- [Viblo CTF](https://ctf.viblo.asia/): Like CTFLearn but Vietnamese version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ tags:
- [postgresql_cluster](https://github.com/vitabaks/postgresql_cluster): PostgreSQL High-Availability Cluster (based on Patroni). Automating with Ansible.
- [pigsty](https://github.com/Vonng/pigsty): Battery-Included PostgreSQL Distro as a Free & Better RDS Alternative —— Pigsty

# General Articles
# Others DB

- [dev.to - What is RocksDB (and its role in streaming)?](https://dev.to/mrkandreev/what-is-rocksdb-and-its-role-in-streaming-3bla)
- [Medium - Running SpiceDB with Postgresql using docker-compose](https://akoserwal.medium.com/running-spicedb-with-postgresql-using-docker-compose-cc7ee999da73)

# PostgreSQL

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ tags:
- [Tecmint - How to Increase SSH Connection Timeout in Linux](https://www.tecmint.com/increase-ssh-connection-timeout/)
- [Tecmint - How to Clear RAM Memory Cache, Buffer and Swap Space on Linux](https://www.tecmint.com/clear-ram-memory-cache-buffer-and-swap-space-on-linux/)
- [Medium - 6 Ways to Check Remote Port Status in Linux: Highlighting Two New Approaches](https://programming.earthonline.us/6-effective-methods-to-check-remote-port-status-in-linux-which-one-do-you-use-most-83ce6f903d75)
- [Medium - Top Linux Security Best Practices for DevSecOps Engineers](https://medium.com/devsecops-community/top-10-linux-security-best-practices-a-comprehensive-guide-to-protecting-your-system-908bd96dd2c9)
# Window

## Awesome Repositories
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,27 @@ To replace in the string, you can control action with
echo "[MASKED]" | sed -e "s/\[MASKED\]/123456789/g"
```

## `systemctl` command

Documentation: [Redhat - Systemd cheat sheet](https://access.redhat.com/node/1199213/40/0/13122931)

Use `systemctl` command to check available service inside your host with state running

```bash
sudo systemctl list-units --type=service --state=running
```

Use one of option Disable/Enable/Restart/Stop/Start with service inside host for changing state

```bash
sudo systemctl disable/enable/restart/stop/start <name_of_service>
```

Check configure or state of service with `systemctl` command

```bash
sudo systemctl show/status <name_of_services>
```
# External Commands
## Caddy server

Expand Down
Loading

0 comments on commit 60ef933

Please sign in to comment.