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
| //Script by Tiago Castro 🚀 | |
| //pegar os dados antigos | |
| const oldData = await (await fetch('/api/checkout/pvt/configuration/orderForm')).json() | |
| //alterar o recaptcha | |
| oldData.recaptchaValidation = "always" | |
| //fazer a alteração | |
| await fetch('/api/checkout/pvt/configuration/orderForm', { | |
| method: "POST", |
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
| CategoryMenu.schema = { | |
| title: 'Menu principal', | |
| description: 'Defina as características do menu principal', | |
| type: 'object', | |
| properties: { | |
| maxDepartments: { | |
| type: 'number', | |
| title: 'Máximo de departamentos', | |
| description: 'Define o número máximo de departamentos que serão exibidos', | |
| }, |
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
| # Clona o repositorio | |
| git clone --mirror <BITBUCKET_URL> | |
| # Adicona o repo remoto do github | |
| git remote add upstream <GITHUB_URL> | |
| # Joga a master no repo remoto do github | |
| git push upstream master | |
| # Joga as tags no repo remoto do github |
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
| [alias] | |
| ci = commit | |
| co = checkout | |
| cm = checkout master | |
| cb = checkout -b | |
| st = status -sb | |
| sf = show --name-only | |
| lg = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30 | |
| incoming = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' ..@{u}) | |
| outgoing = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' @{u}..) |
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 sortZendeskItems() { | |
| const NAME_INDEX = 8; | |
| const DATE_INDEX = 5; | |
| const $tbody = document.querySelector('tbody[data-garden-id="tables.body"]'); | |
| const $trs = document.querySelectorAll('tr[data-garden-id="tables.row"]'); | |
| if (!$tbody || $trs.length === 0) return false; | |
| const colors = {}; |
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
| sudo apt-get update | |
| cd | |
| sudo apt-get install unzip zip | |
| wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip | |
| unzip sdk-tools-linux-4333796.zip -d Android | |
| rm sdk-tools-linux-4333796.zip | |
| sudo apt-get install -y lib32z1 openjdk-8-jdk | |
| export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 | |
| export PATH=$PATH:$JAVA_HOME/bin | |
| printf "\n\nexport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64\nexport PATH=\$PATH:\$JAVA_HOME/bin" >> ~/.bashrc |
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
| [battery] | |
| full_symbol = "• " | |
| charging_symbol = "⇡ " | |
| discharging_symbol = "⇣ " | |
| unknown_symbol = "❓ " | |
| empty_symbol = "❗ " | |
| [git_branch] | |
| symbol = '🌱 ' | |
| truncation_symbol = '' |