Skip to content

Instantly share code, notes, and snippets.

View gunturaf's full-sized avatar
🚲
Living in The Material World

Guntur Akhmad gunturaf

🚲
Living in The Material World
View GitHub Profile
@eana
eana / gitlab.md
Created May 2, 2021 10:35
Output Terraform Plan information into a merge request

Output Terraform Plan information into a merge request

Add terraform plan output to merge requests and expose details from terraform plan runs directly into a merge request widget enabling you to see statistics about the resources that Terraform creates, modifies, or destroys.

@Nydan
Nydan / settings.json
Created July 16, 2020 13:18
VsCode setting for golang. Enabling gopls and set vs code to follow keyCode in linux
{
"window.menuBarVisibility": "toggle",
"go.formatTool": "goimports",
"go.useLanguageServer": true,
"window.zoomLevel": 0,
"keyboard.dispatch": "keyCode",
"[go]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
@marcojahn
marcojahn / conventional-commit-regex.md
Last active May 20, 2024 10:28
Conventional Commit Regex

the following regex will validate all examples provided here: https://www.conventionalcommits.org/en/v1.0.0/

  ^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\([\w\-\.]+\))?(!)?: ([\w ])+([\s\S]*)

a grep/posix compatible variant

  ^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\([[:alnum:]._-]+\))?(!)?: ([[:alnum:]])+([[:space:][:print:]]*)
@soniah
soniah / goimports2.sh
Created August 30, 2019 05:37
remove all blank lines in go 'imports' statements
#!/bin/bash
# remove all blank lines in go 'imports' statements,
# then sort with goimports
if [ $# != 1 ] ; then
echo "usage: $0 <filename>"
exit 1
fi
@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active May 24, 2024 17:23
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S