Skip to content

Instantly share code, notes, and snippets.

View ninokierulf's full-sized avatar

Nino Nhexie Kierulf ninokierulf

View GitHub Profile
@ninokierulf
ninokierulf / 0) google-forms.md
Last active June 25, 2021 09:18
Advanced Google Form

Sheets

  1. Form Responses 1
  2. PromoCodes
  3. Settings

Range Name

conf_email conf_columns

@ninokierulf
ninokierulf / gist:b2150db3212e5f36147bcd9f1e7ed91d
Created June 23, 2021 13:16
google forms send email with codes
// This function will be called everytime the form is submitted.
function onFormSubmit(event) {
sendAutomatedEmail()
}
function sendAutomatedEmail() {
SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Form Responses 1").activate();
var responsesheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); // Get main Database Sheet
var emailsheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Sheet2"); // Get Sheet with the Email Content
var promocodesheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("PromoCodes");
@ninokierulf
ninokierulf / AmongUs.swift
Last active December 3, 2020 04:05
SLU 2010 Among Us Source Code
class AmongUsGame {
init(players: [Player]) {
self.players = players
listenToPlayerEvents()
}
func start() {
assignTasks()
}
@ninokierulf
ninokierulf / gitworkflow-recipe-index.md
Last active June 19, 2020 02:06
gitworkflow: Recipes

Train rerere

Download rerere.train.sh:

mkdir ~/source
cd ~/source
git clone https://github.com/git/git.git
@ninokierulf
ninokierulf / git-discard-rerere-saved-resolution.md
Last active August 13, 2020 09:43
Git: discard rerere saved mergreconflict resolution

git rerere forget {file_path}
git checkout --conflict merge {file_path}

TAGS

  • List all tags: git tag -l
  • List all tags in remote (eg: origin): git ls-remote --tags origin
@ninokierulf
ninokierulf / gitworkflow-topic-dependency-update.md
Last active June 19, 2020 01:13
gitworkflow: Topic Dependency has new code (rebase --onto)

gitworkflow

Scenario

  • Topic-B depends on Topic-A
  • Topic-A has updates
  • Topic-B want Topic-A updates by replacing old merge to have clean graph
(topic-b)$ git tag "outdated"
(topic-b)$ git reset --hard master #if master is parent of Topic-B
@ninokierulf
ninokierulf / commit-zen.md
Last active March 31, 2020 01:08
CommitZen

Commit Format

<TYPE>(<COMPONENT/MODULE>) [JIRA-000] Short message

# Long message

# BREAKING-CHANGES: 

@ninokierulf
ninokierulf / git_push_different_branchname.md
Created March 2, 2020 02:22
Git Push Different Branch Names
git push origin <local_branch>:<remote_branch>  
git push --force-with-lease origin <local_branch>:<remote_branch>
@ninokierulf
ninokierulf / zip password.md
Created January 21, 2020 06:36
Password protect zip
zip -er "<protected>.zip" "<folder path>"