This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function main(workbook: ExcelScript.Workbook) { | |
| const months: string[] = [ | |
| "January", "February", "March", "April", "May", "June", | |
| "July", "August", "September", "October", "November", "December" | |
| ]; | |
| const headers: string[] = ["Date", "Task", "Description", "Consumed Hours", "Any Issue", "Total Hours"]; | |
| const columnWidths: number[] = [60, 300, 200, 100, 200, 100]; // Updated column sizes | |
| // Get all existing worksheets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Reference: https://developers.google.com/workspace/chat/quickstart/webhooks#apps-script | |
| // Webhook URL from Google Chat | |
| const WEBHOOK_URL = 'https://chat.googleapis.com/v1/spaces/SPACE_ID/messages'; | |
| function sendChatNotification(e) { | |
| // Get the data from the form submission (Google Sheet row) | |
| var sheet = e.source.getActiveSheet(); | |
| var row = e.range.getRow(); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # What they do? | |
| # They make Windows compare itself to a known good image from Microsoft and replace anything that doesn't look the same. | |
| # It fixes any parts of windows that have been broken or replaced for some reason. | |
| Dism.exe /online /cleanup-image /restorehealth | |
| Sfc /scannow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Change "container_name" for the name of your app container created in docker-compose.yml | |
| desc "Manage docker from rails" | |
| namespace :docker do | |
| desc "Docker build container" | |
| task build: :environment do | |
| system "docker-compose -f #{Rails.root.join('docker-compose.yml')} build" | |
| end | |
| desc "Docker up container" | |
| task up: :environment do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ENV START | |
| const docTemplateId = ''; | |
| const docFolderId = ''; | |
| const sheetName = ''; | |
| // ENV END | |
| function onOpen(){ | |
| initializeMenu(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # You can change for any forbbiden words and file extensions you want | |
| FILES='(rb|haml|js)' | |
| FORBIDDEN='(binding.pry|debugger)' | |
| # Change for y or n if you prefer verbose or not | |
| VERBOSE=y | |
| # Colors | |
| GREP_COLOR='4;5;37;41' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| # Only run this workflow on these actions and branches | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master", "release/*" ] | |
| permissions: | |
| contents: read |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env sh | |
| # Where go this file? Rails.root/bin/pre-commit | |
| # How use? Just run "bin/pre-commit install" or "bin/pre-commit uninstall" | |
| # This will execute the file "lib/pre-commits/pre-commit", who will install | |
| # ALL files added on "HOOKS" variable. | |
| current_pre_commit=$(cat .git/hooks/pre-commit 2>/dev/null | sed -n 's/PRE_COMMIT_INSTALLED=//p') | |
| if [[ $1 = 'install' ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AllCops: | |
| TargetRubyVersion: 2.7 | |
| require: | |
| - rubocop-performance | |
| - rubocop-rails | |
| - rubocop-rspec | |
| #################### Lint ################################ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import discord | |
| from discord.utils import get | |
| from dotenv import load_dotenv | |
| load_dotenv() | |
| # Bot Token | |
| DISCORD_TOKEN = os.getenv('DISCORD_TOKEN') | |
| # Channel to listen (full name) | |
| CHANNEL_LISTEN = os.getenv('CHANNEL_LISTEN') |
NewerOlder