Skip to content

Instantly share code, notes, and snippets.

View Shillos's full-sized avatar

Shillos Shillos

View GitHub Profile
Create /var/www/installkiwibnc.sh with contents:
cd /var/www/kiwibnc
/usr/bin/npm install
Run these commands:
sudo -u http chmod +x /var/www/installkiwibnc.sh
sudo -u http /var/www/installkiwibnc.sh
# clone repos
git clone https://github.com/kiwiirc/kiwiirc.git ~/kiwiirc/kiwiirc
git clone https://github.com/kiwiirc/webircgateway.git ~/kiwiirc/webircgateway
git clone https://github.com/ItsOnlyBinary/test2-fileuploader.git ~/kiwiirc/test2-fileuploader
# make destination directories
mkdir -p ~/kiwiirc/run/plugins
mkdir -p ~/kiwiirc/run/www
# setup fileupload as plugin
[Unit]
Description=Kiwi IRC webircgateway
After=network.target
[Service]
User=kiwiirc
Group=kiwiirc
ExecStart=/usr/bin/kiwiirc --config=/etc/kiwiirc/config.conf
ExecReload=/bin/kill -HUP $MAINPID
WorkingDirectory=/usr/local/kiwiirc/
[Unit]
Description=An IRC bouncer
Documentation=https://github.com/kiwiirc/kiwibnc
After=network.target
[Service]
User=http
Group=http
WorkingDirectory=/var/www/kiwibnc
ExecStart=/usr/bin/npm start
<VirtualHost *:80>
ServerName kiwiirc.example.com
ServerAdmin webmaster@example.com
# Kiwi IRC client files are located here
DocumentRoot /usr/share/kiwiirc
DirectoryIndex index.html
# Reverse proxy websocket connections
location / {
index index.html;
root /usr/share/kiwiirc/;
}
location /webirc/ {
# Forward incoming requests to local webircgateway socket
proxy_pass http://127.0.0.1:7778/webirc/;
# Set http version and headers
proxy_http_version 1.1;
[Unit]
Description=KiwiIRC plugin fileuploader
After=network.target
[Service]
User=kiwiirc
Group=kiwiirc
ExecStart=/usr/bin/kiwiirc-fileuploader --config=/etc/kiwiirc/plugin-fileuploader.toml
ExecReload=/bin/kill -HUP $MAINPID
WorkingDirectory=/usr/local/kiwiirc/

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

@Shillos
Shillos / apeunit.test-config.js
Created May 11, 2020 15:23 — forked from noandrea/apeunit.test-config.js
Standalone and autenticated Jitsi configuration sample
/* eslint-disable no-unused-vars, no-var */
var config = {
// Connection
//
hosts: {
// XMPP domain.
domain: 'apeunit.test',
@Shillos
Shillos / proxy.py
Created June 14, 2021 19:02 — forked from richardg867/proxy.py
Comic Chat fixer
#
# Comic Chat fixer MITM proxy: fixes Comic Chat to (sort of) work with modern
# IRC servers. Tested with Microsoft Chat 2.5 on Windows XP, 8 and 10
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,