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 2, 2024 18:40
Fix t911 links
View fix-t911.md
$('table').find('a').each(function() {
  var href=$(this).attr('onclick');
  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
View index.html
<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
View Blacklisted_MusicTitles
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 January 20, 2024 15:28
DALL-E prompts inspiration and examples #dalle #dalle2
View dalle.md

Prompts

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

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 / gist:4968d6054b5ca83ec0e2d385c7edc51e
Created July 12, 2022 15:46
Remove read books on kobo reader from the command line
View gist:4968d6054b5ca83ec0e2d385c7edc51e
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
View yourls_share_tumblr.md

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
View YOURLS_with_IIS.md

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
View README.md
@ozh
ozh / YOURLS_db_drivers.md
Created April 2, 2022 20:39
YOURLS DB drivers in the wild
View YOURLS_db_drivers.md

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