Skip to content

Instantly share code, notes, and snippets.

View d6o's full-sized avatar
💡
Here we go

Diego d6o

💡
Here we go
View GitHub Profile
@d6o
d6o / i9.js
Created July 16, 2025 15:49
Gist Description: Auto-clicks the next available (not yet watched, not disabled) class item on i9educacao.com course pages. It checks for items without /checked.svg, skips disabled ones, and clicks them at 500ms intervals to mark them as watched. Useful for automating progress tracking through course modules.
function clickAvailableItem() {
const items = document.querySelectorAll('div.py-3.flex.items-center.gap-4');
for (let i = 0; i < items.length; i++) {
const item = items[i];
const img = item.querySelector('img');
const imgSrc = img?.src || 'NO IMAGE';
const isChecked = imgSrc.endsWith('/checked.svg');
@d6o
d6o / go-os-arch.md
Created February 7, 2018 16:16 — forked from asukakenji/0-go-os-arch.md
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.8.3 darwin/amd64.

A list of valid GOOS values

(Bold = supported by go out of the box, ie. without the help of a C compiler, etc.)

  • android
  • darwin
@d6o
d6o / PoContext.go
Last active September 1, 2017 14:52
PoContext.go
package main
import (
"context"
"github.com/go-chi/chi"
"github.com/satori/go.uuid"
"github.com/sirupsen/logrus"
"net/http"
"time"
)
#!/bin/bash
git clone https://github.com/hellofreshdevtests/DiSiqueira-api-test
cd DiSiqueira-api-test
git checkout dev
docker-compose up --build -d
@d6o
d6o / CleanMacOS.sh
Last active January 24, 2020 18:02
Script created to automate startup disk clean up. Based on http://macpaw.com/how-to/startup-disk-full-on-mac-os-x plus personal folders
#!/bin/bash
rm -rfv /Users/dsiqueira/Library/Caches
rm -rfv /Library/Caches
rm -rfv /Users/disiqueira/Music/iTunes/Previous\ iTunes\ Libraries/
rm -rfv /Users/disiqueira/Library/Application\ Support/MobileSync/Backup/
rm -rfv /Users/disiqueira/Library/iTunes/iPad\ Software\ Updates/
rm -rfv /Users/disiqueira/Library/iTunes/iPhone\ Software\ Updates/
rm -rfv /Users/disiqueira/Temp/*
rm -rfv /Users/disiqueira/Downloads/*
@d6o
d6o / spotify_keybindings
Last active August 29, 2015 14:28 — forked from jbonney/spotify_keybindings
Spotify - Linux key bindings. From XFCE / Ubuntu keyboard shortcuts configuration, assign the control command to their key. http://shkspr.mobi/blog/2011/12/linux-spotify-keybindings/
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause" XF86AudioPlay
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop" XF86AudioStop
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next" XF86AudioNext
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous" XF86AudioPrevious