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_name__ = "strip_discord_bots" | |
__module_version__ = "1.0" | |
__module_description__ = "Treat messages from discord IRC bridges as if they came from IRC users" | |
import hexchat, re | |
discord_bridges = { | |
# define your discord bridge bots here | |
# network and channel names must be lower case | |
"snoonet": { |
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
#ifndef __GRADIENTS_H__ | |
#define __GRADIENTS_H__ | |
#include "TColor.h" | |
#include "TStyle.h" | |
void rainbowgradient() | |
{ | |
const int NRGBs = 7; | |
const int NCont = 255; | |
double stops[NRGBs] = { 0.00, 0.20, 0.40, 0.50, 0.60, 0.80, 1.00 }; | |
double red[NRGBs] = { 0.00, 0.00, 0.00, 0.00, 1.00, 1.00, 0.50 }; |
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
type: link submission | |
url: ["youtube.com", "youtu.be"] | |
author: | |
account_age: < 60 days | |
action: report | |
report_reason: "YouTube video from young account" |
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
#!/bin/bash | |
vps='188.166.55.237' | |
fmt='mp3' | |
codec='libmp3lame' | |
ffmpeg -f alsa -i pulse -acodec $codec -ab 96k -y "output.$fmt" | |
name=$(cat /dev/urandom | tr -dc "a-zA-Z0-9" | fold -w 6 | head -n 1) | |
existing=($(ssh $vps ls /var/www/html/*.$fmt | sed -r "s/\/var\/www\/html\/(\w*)\.$fmt/\1/")) | |
while [[ " ${existing[@]} " =~ " ${name} " ]] | |
do | |
echo "A file named $name.$fmt already exists on server." |