This file contains 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 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 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 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 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 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 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 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') |
This file contains 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
######################### Git tips ######################### | |
===== Git Checkout ===== | |
git checkout . => Delete all changes on current branch | |
git checkout branch_name => Switch Branch | |
git checkout -b branch_name => If Branch not exist, create and Switch | |
git checkout origin/master Gemfile => Reset specific file from master | |
===== Git Branch ===== |