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 / thisdevicesucks.md
Last active October 12, 2025 14:06
Configure TPLINK TL-WA855RE as Access Point
  1. Factory reset : plug the device, not the RJ45, push pin into reset hole for 5 secs. LED goes flashing green - once solid red, device is ready to configure. Unplug/plug back.
  2. With phone : connect to Wifi broadcasted by the device (TP_Link_Extender_something)
  3. Open http://tplinkrepeater.net/ (be sure to deactivate your custom DNS on phone)
  4. Connect : admin/admin
  5. Create new admin user
  6. Change mode : "mode" icon in the top right - chose AP, apply. The LED goes flashing. Plug RJ45.
  7. Open http://<ip of device>, connect -- NOT HTTPS !
  8. Network : disable DHCP
  9. Wifi, Wifi Param : copy SSID & password of your wifi network
  10. Wifi, WPS : deactivate
@ozh
ozh / readme.md
Created August 31, 2025 19:27
Export all your databases, one by one

Export all databases except #mysql50#mysql-8.4, information_schema, mysql, performance_schema and phpmyadmin :

 for DB in $(mysql -u root -e "SHOW DATABASES;" | grep -Ev "mysql|phpmy|schema|Database"); do echo "DB : $DB"; mysqldump -u root --skip-lock-tables --databases $DB > db_${DB}.sql; done
@ozh
ozh / backup.md
Created June 15, 2025 15:24
Backup list of manually installed packages on my raspberry
@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 July 8, 2025 21:24
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 August 24, 2025 15:51
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