Skip to content

Instantly share code, notes, and snippets.

View iamcryptoki's full-sized avatar
🏠
Working from home

Gael Gentil iamcryptoki

🏠
Working from home
View GitHub Profile
@iamcryptoki
iamcryptoki / github_issue_labels.md
Last active May 2, 2024 09:00
GitHub Issue Labels for New Projects

GitHub Issue Labels for New Projects

Below are the predefined labels that you can use for managing issues on GitHub.

Type

Name Type Color Description
type: bug Type #D53C4D Indicates a reported bug in the software.
type: discussion Type #D4C5F6 Used for initiating discussions or seeking opinions.
@iamcryptoki
iamcryptoki / get_active_gcloud_account.txt
Created March 29, 2024 08:55
Get active authenticated gcloud account.
$ gcloud config list account --format "value(core.account)"
@iamcryptoki
iamcryptoki / k8s_kubectl_custom_output.txt
Created December 29, 2023 11:00
Kubernetes : Get custom output with Kubectl.
$ kubectl get CRD_KIND CRD_NAME \
-o custom-columns=Kind:.kind,Name:.metadata.name,Finalizers:.metadata.finalizers \
-n NAMESPACE
@iamcryptoki
iamcryptoki / fork_bomb.txt
Created December 21, 2023 14:07
Fork Bomb (DO NOT execute in your terminal!)
# Linux
:(){ :|:& };:
# Windows
%0|%0
@iamcryptoki
iamcryptoki / sonar.yaml
Created October 17, 2023 09:37
SonarQube scans with GitHub Actions
name: SonarQube Scan
on:
pull_request:
branches: ['main']
types: [edited, opened, reopened, synchronize]
jobs:
build:
name: Scan
@iamcryptoki
iamcryptoki / wordpress_wp_cli_search_replace.txt
Created January 27, 2023 07:39
Replace site URL in your Wordpress database when moving to another environment.
# Run the entire search/replace operation and show report, but don't save changes to the database.
$ wp search-replace '//example-dev.com' '//example.com' --all-tables --skip-columns=guid --dry-run
# Save changes to the database.
$ wp search-replace '//example-dev.com' '//example.com' --all-tables --skip-columns=guid
@iamcryptoki
iamcryptoki / chromeos_ssh_add_error_connection.txt
Created July 20, 2022 13:02
Chrome OS ssh-add error: Could not open a connection to your authentication agent.
$ eval `ssh-agent -s`
$ ssh-add
$ ssh-add ~/.ssh/ssh_key_name
@iamcryptoki
iamcryptoki / delete_files_specific_extention.txt
Created July 7, 2022 12:38
Delete all files with a specific extention.
$ sudo find . -name "*.jpg" -maxdepth 1 -type f | sudo xargs rm
@iamcryptoki
iamcryptoki / kubernetes_is_etcd_slow.txt
Created April 22, 2022 13:55
Kubernetes: Is etcd being slow?
$ kubectl get --raw /metrics | grep etcd.*.sum
@iamcryptoki
iamcryptoki / count_files_recursively_find.txt
Created April 5, 2022 17:26
Count files recursively using find command.
$ find <DIRECTORY> -type f | wc -l