Skip to content

Instantly share code, notes, and snippets.

@Chengings
Chengings / speech_synthesiser.html
Last active November 24, 2021 18:55
Web Speech API
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<title>Speech synthesiser</title>
<style>
@Chengings
Chengings / allizom.js
Last active February 13, 2024 22:05
Bookmarklets
javascript:(()=>{/mozilla.org/.test(document.location.host)&&(document.location.hostname='www-dev.allizom.org')})()
@Chengings
Chengings / gist:028e98fbece098a1a6f1020658e372fe
Last active September 11, 2020 10:45
Xdebug with docker project in PHPStorm

Prerequisite

Set xdebug.remote_host=host.docker.internal and xdebug.remote_enable=1 in php.ini

  1. Set host, port and use path maaping with project in PHP Server preferences.
  2. Open "Run/Debug Configurations" dialog and set
    1. Set server from 1st step
    2. Set IDE Key to PHPSTORM

References

https://www.jetbrains.com/help/phpstorm/configuring-xdebug.html

@Chengings
Chengings / Symfony.md
Last active January 25, 2021 13:41
Symfony
@Chengings
Chengings / apple-tv.txt
Created March 1, 2020 16:26
How to get Apple TV screensavers
Source: https://github.com/JohnCoates/Aerial/blob/master/Documentation/OfflineMode.md
1) Download resource file..
2) Extract and check `entries.json`.
3) Check url-* and get what you want.

Generate an RSA 4096 bit key. Use option "-b 2048" to create 2048 bit

USAGE=''
ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa_"$USAGE"_"$(date +%Y-%m-%d)" -C "$(whoami)@$(hostname)_$(date +%Y-%m-%d)" 

Generate an ed25519 key with the new OpenSSH format rather than the PEM format (-o) options:

USAGE=''
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519_"$USAGE"_$(date +%Y-%m-%d) -C "$(whoami)@$(hostname)_$(date +%Y-%m-%d)"
@Chengings
Chengings / style.css
Created January 1, 2019 07:11
Generic UI font
{
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
@Chengings
Chengings / generic.md
Last active July 24, 2019 15:13
Settings