Skip to content

Instantly share code, notes, and snippets.

View filippofilip95's full-sized avatar
🦄

Filip Papranec filippofilip95

🦄
View GitHub Profile
// toggle all to viewed
document.querySelectorAll('.js-reviewed-checkbox').forEach((elem => {
if (elem.checked) { return }
var clickEvent = new MouseEvent('click');
elem.dispatchEvent(clickEvent);
}))
// toggle all to not-viewed
document.querySelectorAll('.js-reviewed-checkbox').forEach((elem => {
if (!elem.checked) { return }
@filippofilip95
filippofilip95 / moment-tz-names.json
Created July 18, 2022 06:19
moment.tz.names() - List of all moment.js timezone names in json
[
"Africa/Abidjan",
"Africa/Accra",
"Africa/Addis_Ababa",
"Africa/Algiers",
"Africa/Asmara",
"Africa/Asmera",
"Africa/Bamako",
"Africa/Bangui",
"Africa/Banjul",
@filippofilip95
filippofilip95 / osx-setup.sh
Last active November 22, 2022 07:38
OSX shell script to setup basic stuff and install apps. It's usually usable after clean install of OSX system.
#!/bin/bash
echo "This script will setup OSX"
echo 'It will:'
echo ' - edit system settings'
echo ' - install apps'
echo ' - add aliases'
read -p "Do you want to continue (y/n)?" -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]