Skip to content

Instantly share code, notes, and snippets.

View ozh's full-sized avatar
🍷
More wine, please.

྅༻ Ǭɀħ ༄༆ཉ ozh

🍷
More wine, please.
View GitHub Profile
@ozh
ozh / fix-t911.md
Last active March 30, 2024 15:16
Fix t911 links
  $('body').find('a').each(function() {
    var href=$(this).attr('onclick');
    if(href) {
      href=href.replace("location.href='", '').replace(/'$/g, '');
      $(this).attr('href',href);
    }

Bookmarklet with https://mrcoles.com/bookmarklet/ : (include jQuery)

@ozh
ozh / index.html
Created March 18, 2023 15:27
Center div in body
<html>
<style>
html {
background-color:yellow;
}
body {
margin:0;
display:grid;
place-items:center;
@ozh
ozh / Blacklisted_MusicTitles
Created March 11, 2023 15:02 — forked from kylecreate/Blacklisted_MusicTitles
Blacklist for DynoBOT | When downloading turn the files into notepad text files | Blacklisted name stuff soonTM | Website: https://www.dynobot.net/ | Invite: https://discordapp.com/invite/9W6EG56
anal, beaner, butt-pirate, buttpirate, butt pirate, chode, clit, cock, cuck, cum , cunt, dike, dyke, douche, feget, fag, fudgepacker, fudge packer, gooch, jigaboo, jungle bunny, junglebunny, kike, kooch, kyke, mcfag, nigg, niga, paki, pollock, poon, porch monkey, porchmonkey, queef, queer, rape, rimjob, rim job, ruski, slut, spic, spick, wetback, wet back, hitler, autist, cuck, douche, memes, dank, keemstar. memestar, dramaalert, gaywards, trapbar, isis, sex offender, nazi, distorted, dat boi, tank, harambe, idubbz, spooky scary, chum drum, swamp, shrek, vape nation, porn, pirate, mr krabs, vocaloid, frozen parody, fuck my ass, i'm a hoe, im a hoe, f*ck my a$$, sjw, social justice warrior, 4chan, 9gag, buzzfeed, smash mouth, spiderman & frozen, frozen elsa and spiderman, spiderman and frozen, frozen elsa & spiderman, pussy, smelly poop fart, toy monster, webs & tiaras, allahu akbar, akbar, allahu, taliban, terriorist
@ozh
ozh / dalle.md
Last active April 10, 2024 18:12
DALL-E prompts inspiration and examples #dalle #dalle2

Prompts

@ozh
ozh / h.md
Created August 2, 2022 13:36
Change DALL-E collection layout to 4 images in a row

In the console, or in a bookmarklet :

var e = document.createElement('style'), sheet;
document.head.appendChild(e);
s = e.sheet;
s.insertRule('.collection-page-images .pagination-content {grid-template-columns:200px 200px 200px 200px !important}', 0);
@ozh
ozh / remove-read-kobo.md
Last active March 10, 2024 11:39
Remove read books on kobo reader from the command line

Shell in the kobo, from the root :

sqlite3 -header .kobo/KoboReader.sqlite "SELECT ContentID FROM content WHERE BookTitle is null and ReadStatus = 2 ORDER BY Title;" | grep epub | sed 's!file:///mnt/onboard/!!' | while read f; do rm -f "$f"; done

@ozh
ozh / yourls_share_tumblr.md
Created April 19, 2022 16:01
YOURLS Share on Tumblr

Plugin: Share on Tumblr

In the Quick Share box, add a one-click share to Tumblr link.

Install

  • In /user/plugins, create a new folder named quickshare-on-tumblr
  • In this new directory, create a blank file named plugin.php
  • In this new file, cut and paste the following code
  • Go to the Plugins administration page and activate the plugin
@ozh
ozh / YOURLS_with_IIS.md
Created April 19, 2022 15:33
YOURLS with IIS

Backup of probably obsolete https://github.com/YOURLS/YOURLS/wiki/Web-Config-IIS

What your web.config file for IIS should look like

Make a web.config file

If your YOURLS installation is on a IIS machine you have to create a web.config file. It's simple.

Case: YOURLS installed on root

@ozh
ozh / README.md
Created April 19, 2022 15:31
YOURLS Cherokee

(Mirror of https://github.com/lylebrown/YOURLS-Cherokee in case it goes missing)

What your Cherokee Web Server config for YOURLS, a self-hosted URL shortener, may look like - heavily based off of a guide by Jeff on UtuTech (Link through Wayback Machine)

Configure YOURLS

Edit the user/config.php file, as detailed on the YOURLS site.

One suggestion is to add 'admin' to the list of reserved URL keywords, to prevent potential issues with URL rewrite rules. Otherwise, the configuration is standard.

@ozh
ozh / YOURLS_db_drivers.md
Created April 2, 2022 20:39
YOURLS DB drivers in the wild

Here are real life values of YOURLS_DB_DRIVER people use in their YOURLS config.php (data fetched on April 2022)

DB driver
gae
mongodb
mssql
mysql