Skip to content

Instantly share code, notes, and snippets.

View brokenmass's full-sized avatar

Marco Massarotto brokenmass

View GitHub Profile
xattr -d com.apple.quarantine $HOME/Library/Application\ Support/WebEx\ Folder/**/Meeting\ Center.app
@brokenmass
brokenmass / Chrome enable ExternalProtocolDialogShowAlwaysOpenCheckbox
Last active August 9, 2021 10:36
show "always allow" checkbox in Chrome external protocol permission popup on apple mac osx
# Since Chrome 77 is not possible by default to always allow an application to handle an external protocol (pulsesecure, zoom, etc)
# Since Chrome 79, the 'ExternalProtocolDialogShowAlwaysOpenCheckbox' policy is available to restore the previous behviour and present
# the user with a checkbox to save the preference. To enable it simply run the following command in your terminal
defaults write com.google.Chrome ExternalProtocolDialogShowAlwaysOpenCheckbox -bool true
#!/usr/bin/env bash
code --install-extension QassimFarid.ejs-language-support
code --install-extension alexkrechik.cucumberautocomplete
code --install-extension asvetliakov.snapshot-tools
code --install-extension bierner.markdown-preview-github-styles
code --install-extension bungcip.better-toml
code --install-extension christian-kohler.npm-intellisense
code --install-extension christian-kohler.path-intellisense
const secondHand = document.querySelector('.sec-hand');
const minsHand = document.querySelector('.min-hand');
const hourHand = document.querySelector('.hour-hand');
function calculateAngle(value, steps) {
return Math.round(90 + (value / steps) * 360);
}
function forceRepaint(element) {
element.style.display='none';
@brokenmass
brokenmass / Player.js
Last active April 15, 2019 14:53
TENNIS
const TENNIS_POINTS = [0, 15, 30, 40];
class Player {
constructor (name) {
this.name = name;
this.score = 0;
}
scorePoint () {
this.score++;
# Recursively remove all node_modules folder
find . -name "node_modules" -type d -prune -exec rm -rf '{}' +
{
"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,