Skip to content

Instantly share code, notes, and snippets.

View tony-0tis's full-sized avatar
📈
Lets grow

Tony Outis tony-0tis

📈
Lets grow
View GitHub Profile
@tony-0tis
tony-0tis / manifest.json
Last active April 27, 2024 15:05
chat.reka.ai/chat manifest for https://greasyfork.org/scripts/492982
{
"id": "/reka-chat",
"name": "Reka.AI chat",
"short_name": "Reka.AI chat",
"description": "Chat with Reka",
"categories": ["utilities"],
"orientation": "portrait",
"display": "standalone",
"start_url": "https://chat.reka.ai/chat",
"scope": "https://chat.reka.ai/chat",
{
"id": "/lmsysChat",
"name": "LMSYS chat",
"short_name": "LMSYS chat",
"description": "Chat with Open Large Language Models",
"categories": [
"utilities"
],
"orientation": "portrait",
"display": "standalone",
@tony-0tis
tony-0tis / manifest.json
Last active April 20, 2024 02:34
cohereforai-c4ai-command-r-plus.hf.space manifest for https://greasyfork.org/scripts/491871
{
"id": "/c4ai-command-r-plus",
"name": "C4ai chat",
"short_name": "C4ai chat",
"description": "Chat c4ai-command-r-plus",
"categories": ["utilities"],
"orientation": "portrait",
"display": "standalone",
"start_url": "https://cohereforai-c4ai-command-r-plus.hf.space/",
"scope": "https://cohereforai-c4ai-command-r-plus.hf.space/",
@tony-0tis
tony-0tis / README.md
Last active June 24, 2024 10:01
A simple script to run asynchronous tasks with auto. Alternative to async.auto

0tis-autotasks

A simple script to run asynchronous tasks with auto. Alternative to async.auto

Install

npm i -S gist:bf5ff86a2a20f88f3b327872427598ab
@tony-0tis
tony-0tis / EventEmitter.mjs
Last active June 24, 2024 10:01
Simple es6 eventEmitter
class EventsEmitter {
constructor(){
this.events = {};
}
on(name, callback, context, once = false){
if(name == null) throw new Error('No first argument passed');
if(callback == null) throw new Error('No second argument passed');
if(typeof callback !== 'function') throw new Error('Second argument must be a function');
if(typeof context === 'boolean' && context === true && once === false){
@tony-0tis
tony-0tis / README.md
Last active June 24, 2024 10:00
A simple script to run asynchronous tasks sequentially. Alternative to async.waterfall

0tis-waterfall

A simple script to run asynchronous tasks sequentially. Alternative to async.waterfall

Install

npm i -S gist:81cb708f0ef01ed2d3ecf6e6aae43013
@tony-0tis
tony-0tis / MultyLinesProcessLoader.mjs
Last active June 24, 2024 10:02
js module for load indication
import EventsEmitter from "0tis-eventemitter";
class MultyLinesProcessLoader extends EventsEmitter{
defaultOptions = {
el: null,
width: 150,
height: 150,
count: 8,
indent: 6,
textSize: '20px',
@tony-0tis
tony-0tis / README.md
Last active June 24, 2024 10:02
UUID generator provides good uniqueness guarantees

0tis-uuid4

UUID generator provides good uniqueness guarantees

Install

npm i -S gist:816bc579e30c134e388478ca36ece750
@tony-0tis
tony-0tis / youtube-langs-sort.js
Last active May 8, 2023 15:53
Youtube. Move your lang to top of the list of translate languages
let langToUp = 'Русский';
settingsObserver = new MutationObserver((list, observer)=>{
list.forEach(mutation=>{
if(mutation.addedNodes.length){
let node = [...mutation.addedNodes].find(node=>node.innerText.indexOf(langToUp)>-1);
if(node){
setTimeout(()=>{
let doc = document.querySelectorAll('.ytp-panel-menu')[0];
if(!doc) return;
[...doc.children]
@tony-0tis
tony-0tis / example.com.conf
Last active March 1, 2022 19:34
Nginx SSL parameters for A+ rating on https://www.ssllabs.com/ with letsencrypt
server{
#...
listen *:443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; # managed by Certbot
ssl_trusted_certificate /etc/letsencrypt/live/example.com/fullchain.pem;