Skip to content

Instantly share code, notes, and snippets.

Taken from https://groups.google.com/g/chan_dongle/c/EROaAi-GoUs?pli=1
Use Ubuntu 22.04.5 LTS (Jammy Jellyfish)
Download https://drive.google.com/file/d/1hEt13Y6iALR6aRrM83UD497G_E43LQV0/view?usp=sharing into /root/chandongle.tar
cd /root
tar -xvf chandongle.tar
curl -o /etc/apt/trusted.gpg.d/mariadb_release_signing_key.asc 'https://mariadb.org/mariadb_release_signing_key.asc'
LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
apt update && apt upgrade && reboot
@ShiSHcat
ShiSHcat / how.md
Created June 1, 2022 19:24
Convert all CGBI pngs in a folder to standard PNGs

save this script as script.js

  1. install node.js
  2. npm i cgbi-to-png
  3. put your files in cgbi_in
  4. run script.js
  5. check your files in cgbi_out

Keybase proof

I hereby claim:

  • I am shishcat on github.
  • I am shishcat8214 (https://keybase.io/shishcat8214) on keybase.
  • I have a public key ASDtcXwj3Q6QmkFE-be9XU-DMSUhWNGpXZMQRiaw3qXU5Ao

To claim this, I am signing this object:

<?php
use Amp\Promise;
use Amp\Success;
use function Amp\call;
function generate($message){
$callable = function($message) {
if(($message["media"]??false)) {
foreach($message["media"]as $k=>$v) {
if(is_array($v)) {
$k2e = $v;