Skip to content

Instantly share code, notes, and snippets.

View Djspaceg's full-sized avatar
🛠️
Building cool stuff.

Blake Stephens Djspaceg

🛠️
Building cool stuff.
View GitHub Profile
#!/usr/bin/bash
sqlite3 ~/.kodi/userdata/Database/MyVideos116.db "SELECT idMovie from movie_view m WHERE NOT EXISTS(SELECT 1 from actor_link where medi
a_type==\"movie\" and media_id==m.idMovie );" | while read -r line; do echo "$line"; curl -X POST -H "Accept: application/json" -H "Con
tent-Type: application/json" -d '{"jsonrpc":"2.0","method":"VideoLibrary.RefreshMovie","params":{"movieid":'$line',"ignorenfo":true},"i
d":1}' -u kodi:kodi http://localhost:8080/jsonrpc; done
@softpunch
softpunch / colorVars.css
Last active June 14, 2022 06:44
CSS Variables For Color Manipulation
/* ----
css custom properties to manipulate color
MIT - 2017 - Soft Punch
https://gist.github.com/softpunch/
set initial "main" color via HSL values.
automatically calculate harmonies and variations of that color with pure css.
harmonies are determined solely by hue.
@brandonb927
brandonb927 / osx-for-hackers.sh
Last active June 13, 2024 02:39
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx