Skip to content

Instantly share code, notes, and snippets.

@RAnders00
RAnders00 / Pepega
Created November 28, 2019 14:15 — forked from tolekk/Pepega
Pepega
const { ChatClient } = require("dank-twitch-irc");
//Config with login and passwd.
let client = new ChatClient({
username: "tolekkbot",
password: "superlongpasswordnam",
rateLimits: "verifiedBot"
});
@RAnders00
RAnders00 / download-overrustle
Last active May 18, 2019 21:14
Overrustle channellogs downloader
#!/bin/bash
channel="$1"
start="$2"
end="$3"
function validate {
[ -n "$channel" ] && [ -n "$start" ] && [ -n "$end" ]
}
@RAnders00
RAnders00 / main.js
Created January 1, 2019 15:53
Add arbitrary chat delay in seconds
javascript:(function(){ let seconds = parseInt(prompt('Enter new chat delay option (in seconds):')); let ms = String(seconds * 1000); let newOption = document.createElement('option'); newOption.setAttribute('value', ms); newOption.setAttribute('data-test-selector', "chat-delay-radio:" + ms); newOption.text = seconds + " seconds"; document.querySelector('.chat-delay-menu > .tw-select').appendChild(newOption); })();
@RAnders00
RAnders00 / rules-both.iptables
Created January 1, 2019 12:55 — forked from jirutka/rules-both.iptables
Basic iptables template for ordinary servers (both IPv4 and IPv6)
###############################################################################
# The MIT License
#
# Copyright 2012-2014 Jakub Jirutka <jakub@jirutka.cz>.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# example.com and subdomains
server {
listen 80;
listen [::]:80;
server_name example.com *.example.com;
return 301 https://$host$request_uri;
}
html {
position: relative
}
body {
background: #252829;
color: #aaa
}
body>.content {
margin: 0 20px 20px 10px;
z-index: 1
html{position:relative}body{background:#252829;color:#aaa}body>.content{margin:0 20px 20px 10px;z-index:1}a,.md a{color:#6BB6CA}#header{border-bottom:0;background-color:#202426;margin:0 8px;border-left:1px solid #202426;border-right:1px solid #202426}.pagename a,body.with-listing-chooser.listing-chooser-collapsed #header .pagename{color:#FFF7FB;opacity:.9}#sr-header-area{font-family:arial;background-color:#252829;border-bottom:0}#sr-header-area:hover a{color:#d3d3d3}#sr-header-area a,.srSep{background:#252829;color:#6e787d}#sr-header-area a:hover{color:#607d8b;text-decoration:none}#sr-header-area .separator{visibility:hidden}#sr-header-area .selected a{color:#FF3D73}#RESShortcutsEditContainer{background-color:#252829!important}#sr-header-area .srdrop.dropdown .selected,.res #sr-header-area #srDropdownContainer a{width:40px;height:19px;padding:0;margin:0;display:block;background:url("//b.thumbs.redditmedia.com/VGgjcGYKRP0LBHWziaqbOiw6heqnR7On4E3k0tPnikY.png") no-repeat -5px -111px #AEBFC7;line-height:20px;text
.expando .nestedlisting{margin-top:10px}.expando .nestedlisting .midcol,.expando .nestedlisting .flat-list,.expando .nestedlisting .comment .child,.expando .nestedlisting .morecomments{display:none!important}.expando .nestedlisting .usertext-body .md{border-width:0!important;background-color:transparent!important;padding:5px 0!important}.expando .nestedlisting .comment{margin-left:0!important}.expando .nestedlisting .comment:nth-of-type(1n+7){display:none}
.expando .nestedlisting {
margin-top: 10px
}
.expando .nestedlisting .midcol,
.expando .nestedlisting .flat-list,
.expando .nestedlisting .comment .child,
.expando .nestedlisting .morecomments {
display: none!important
}
.expando .nestedlisting .usertext-body .md {
.expando-button {
float: left;
height: 23px;
width: 23px;
margin: 2px 5px 2px 0;
background: transparent none no-repeat scroll center center;
cursor: pointer
}
.expando-button.expanded.video {
background-image: url(sprite-expando.2qrMoUHZue8.png);