This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * InspIRCd -- Internet Relay Chat Daemon | |
| * | |
| * Copyright (C) 2009 Daniel De Graaf <danieldg@inspircd.org> | |
| * Copyright (C) 2004, 2008 Craig Edwards <craigedwards@brainbox.cc> | |
| * Copyright (C) 2007 Dennis Friis <peavey@inspircd.org> | |
| * Copyright (C) 2007 Robin Burchell <robin+git@viroteck.net> | |
| * | |
| * This file is part of InspIRCd. InspIRCd is free software: you can | |
| * redistribute it and/or modify it under the terms of the GNU General Public |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function randString(n) { | |
| if(!n) | |
| { | |
| n = 5; | |
| } | |
| var text = ''; | |
| var possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; | |
| for(var i=0; i < n; i++) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $style = "include/style.php"; | |
| $js = "include/js.php"; | |
| $dom = new DOMDocument; | |
| $dom->loadHTMLFile('/home/kiwi/public_html/index.html'); | |
| $head = $dom->getElementsByTagName('head')->item(0); | |
| $css = $head->getElementsByTagName("link")->item(1); | |
| $fh = fopen($style, 'w'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # g_base64.tcl - Base64 encoding/decoding routines | |
| # (c) 2013 Mantas Mikulėnas <grawity@gmail.com> | |
| # Released under the MIT Expat License. | |
| if {![catch {package require Tcl 8.6}]} { | |
| proc b64:encode {input} { | |
| binary encode base64 $input | |
| } | |
| proc b64:decode {input} { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # g_cap.tcl - IRCv3 capability negotiation and SASL support | |
| # (c) 2013-2016 Mantas Mikulėnas <grawity@gmail.com> | |
| # Released under the MIT Expat License. | |
| # | |
| # Requires: g_base64.tcl | |
| ## Configuration -- set these in your eggdrop.conf | |
| # Mechanism to use. (This may be a space-separated list of mechanisms to try.) | |
| # Available mechs: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function randString(n) { | |
| if(!n) | |
| { | |
| n = 5; | |
| } | |
| var text = ''; | |
| var possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; | |
| for(var i=0; i < n; i++) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| listen [::]:80; | |
| server_name radiocobra.it www.radiocobra.it; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| proxy_set_header X-Forwarded-Host $host; | |
| proxy_set_header X-Forwarded-Server $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| location / { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '2.2' | |
| services: | |
| nginx_proxy: | |
| volumes: | |
| - /etc/letsencrypt/live/technomix.it/fullchain.pem:/etc/nginx/certs/technomix.it.crt:ro | |
| - /etc/letsencrypt/live/technomix.it/privkey.pem:/etc/nginx/certs/technomix.it.key:ro | |
| stations: | |
| volumes: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports.init = async function init(hooks, app) { | |
| function sleep(ms) { | |
| return new Promise(resolve => setTimeout(resolve, ms)); | |
| } | |
| hooks.on('client_disconnected', async (event) => { | |
| const con = event.client; | |
| const user = await app.db.factories.User.query().where('id', con.state.authUserId).first(); | |
| const networks = await con.userDb.getUserNetworks(con.state.authUserId); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Uppy from '@uppy/core' | |
| import Dashboard from '@uppy/dashboard' | |
| import Tus from '@uppy/tus' | |
| import Webcam from '@uppy/webcam' | |
| import Audio from '@zadkiel/uppy-audio' | |
| import it_IT from '@uppy/locales/lib/it_IT' | |
| import { KiB } from './constants/data-size' | |
| import acquireExtjwtBeforeUpload from './handlers/uppy/acquire-extjwt-before-upload' | |
| import { getValidUploadTarget } from './utils/get-valid-upload-target' |