Skip to content

Instantly share code, notes, and snippets.

View ovitente's full-sized avatar

Ivan Kostrubin ovitente

  • 13:39 (UTC +02:00)
View GitHub Profile
git checkout <your-branch>
git reset --soft HEAD~<n> # this is the number of commits you want to squash down
git commit -m "<message>"
git push -f origin <your-branch>
#!/usr/bin/ruby
#
# This tool is only used to "decrypt" the github enterprise source code.
#
# Run in the /data directory of the instance.
require "zlib"
require "byebug"
KEY = "This obfuscation is intended to discourage GitHub Enterprise customers "+
@ovitente
ovitente / gist:19a1a8769ca84b37f50e792103dbe79e
Created November 10, 2020 13:31
push new version of tf vars into gsm secret in one string
cp dev.tf variables.tf && gcloud secrets --project=MYGCP_PROGECT versions add terraform_variables_file --data-file=variables.tf
@ovitente
ovitente / github actions debug
Created January 21, 2020 13:14
A way to debug Github Actions workflows
---
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/contexts-and-expression-syntax-for-github-actions
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/virtual-environments-for-github-hosted-runners
name : debug
on :
push :
branches : [ "master" ]