Skip to content

Instantly share code, notes, and snippets.

View kabili207's full-sized avatar
💤

Amy Nagle kabili207

💤
  • 10:06 (UTC -05:00)
View GitHub Profile
// ==UserScript==
// @name AO3 Bookmarking Records
// @namespace Bairdel AO3 Bookmarking Records
// @description To keep track of bookmarks. Automatically adds on the current date and most recent chapter of the fic you are reading into the bookmark notes. Used for keeping track of when you last read a fic, and what chapter you were on.
// @version 0.2
// @author Bairdel
// @include http*://archiveofourown.org/works*
// @include http*://www.archiveofourown.org/*works*
// @license GNU GPLv3
// ==/UserScript==

Chirimojis for Scribble Hub

This allows you to create your own custom emoji picker of all the emojis that you want to be able to use on Scribble Hub.

Note: It completely replaces Scribble's default emoji.

Using this script:

  1. Add the content of scribble.chirimojis.js to a userscript extension in your browser, for example, Tampermonkey for Firefox.
  2. Add the content of scribble.chirimojis.css to a userstyles extension in your browser, for example, Stylish.
  3. Fill in your emoji to the customEmojis variable in scribble.chirimojis.js. There's an example of the format in the file.
@kabili207
kabili207 / Rclone systemd service.md
Last active December 8, 2024 11:48
Rclone systemd user service

rclone systemd service

Preparation

This service will use the same remote name you specified when using rclone config create. If you haven't done that yet, do so now.

Next, create the mountpoint for your remote. The service uses the location ~/mnt/<remote> by default.

mkdir ~/mnt/dropbox
@kabili207
kabili207 / create-shared-git.sh
Created April 4, 2019 16:33
Initializing git repo as group writable
git init --shared=0665 scripts
cd scripts
chgrp linux_admins .
setfacl -R -m g:linux_admins:rwX .
find . -type d | xargs setfacl -R -m d:g:linux_admins:rwX
@kabili207
kabili207 / get_friend_codes.sh
Created June 18, 2017 22:58
Wii Friend Code Uploader
#!/bin/bash
function join_by { local IFS="$1"; shift; echo "$*"; }
upload=1
counter=0
found=( )
sess_id=$(od -N 4 -t uL -An /dev/urandom | tr -d " ")

Keybase proof

I hereby claim:

  • I am kabili207 on github.
  • I am kabili207 (https://keybase.io/kabili207) on keybase.
  • I have a public key whose fingerprint is BB95 6AA1 C9D4 5952 9747 59A7 503E 289B 2B37 B0EB

To claim this, I am signing this object:

@kabili207
kabili207 / prefs.js
Created May 3, 2016 18:46
Adding custom tags to thunderbird
user_pref("mailnews.tags.$cl_1.color", "#CC0000");
user_pref("mailnews.tags.$cl_1.tag", "red");
user_pref("mailnews.tags.$cl_10.color", "#FFFF00");
user_pref("mailnews.tags.$cl_10.tag", "yellow");
user_pref("mailnews.tags.$cl_2.color", "#3333FF");
user_pref("mailnews.tags.$cl_2.tag", "blue");
user_pref("mailnews.tags.$cl_3.color", "#006600");
user_pref("mailnews.tags.$cl_3.tag", "green");
user_pref("mailnews.tags.$cl_4.color", "#999999");
user_pref("mailnews.tags.$cl_4.tag", "grey");
@kabili207
kabili207 / Kodi-MyMusic48.sql
Created September 24, 2015 15:45
SQL to pickup where Kodi left off when database creation fails
use MyMusic48;
delimiter //
CREATE TRIGGER tgrDeleteAlbum AFTER delete ON album FOR EACH ROW BEGIN
DELETE FROM song WHERE song.idAlbum = old.idAlbum;
DELETE FROM album_artist WHERE album_artist.idAlbum = old.idAlbum;
DELETE FROM album_genre WHERE album_genre.idAlbum = old.idAlbum;
DELETE FROM albuminfosong WHERE albuminfosong.idAlbumInfo=old.idAlbum;
DELETE FROM art WHERE media_id=old.idAlbum AND media_type='album';