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
var set = new Set(); | |
x = setInterval(function(){ | |
var allSpans = document.getElementsByTagName('span'); | |
var reg = /@/ | |
for(let item of allSpans ){ | |
if(reg.exec(item.textContent)){ | |
set.add(item.textContent) |
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
#!/usr/bin/env python3 | |
from datetime import datetime | |
import json | |
import websocket | |
import time | |
from elasticsearch import Elasticsearch | |
from queue import Queue | |
from threading import Thread | |
import threading |
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
# | |
# Debain 10, postgresql, postfix | |
# This servers as a lose lazy refernce, not a turnkey runscript. | |
# See: https://wiki.policyd.org/installing | |
# requirements | |
apt install libnet-server-perl libnet-cidr-perl libnet-dns-perl libmail-spf-perl libtimedate-perl libdbi-perl libdbd-pg-perl | |
# Use 2.1.x snapshot | |
wget https://download.policyd.org/v2.1.x-201310261831/cluebringer-v2.1.x-201310261831.tar.gz |
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
# -r, --system create a system account | |
# -m, --create-home create the user's home directory (by default no home created for system accounts) | |
# -s, --shell SHELL login shell of the new account (Do system accounts get nologin by default anyway?) | |
sudo useradd -r -m -s /usr/sbin/nologin mailhog | |
# https://github.com/mailhog/MailHog/releases | |
wget https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64 -O /home/mailhog/MailHog_linux_amd64 | |
# make exec. | |
# I like to keep the binary non-writeable by the executing user. |
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
youtube-dl --merge-output-format mp4 $1 | |
# https://github.com/ytdl-org/youtube-dl#format-selection-examples | |
# | |
# Since the end of April 2015 and version 2015.04.26, youtube-dl uses -f bestvideo+bestaudio/best as the default format selection (see #5447, #5456). | |
# If ffmpeg or avconv are installed this results in downloading bestvideo and bestaudio separately and muxing them together into a single file giving the best overall quality available. | |
# Otherwise it falls back to best and results in downloading the best available quality served as a single file. |
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
# As of Confluence 6.15 please use char encoding UTF-8 | |
# WARN: Collations, such as "C", are known to cause issues with Confluence. | |
# https://confluence.atlassian.com/doc/database-setup-for-postgresql-173244522.html | |
# Ommitting collation settings will cause the system to default to current locale. | |
# If you force " LC_COLLATE = 'en_US.UTF-8' " and the system local is not en_US, errors will occure. | |
create database confluence with owner confluence ENCODING 'utf-8'; |
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
# As of Jira 8.1 | |
# https://confluence.atlassian.com/adminjiraserver/connecting-jira-applications-to-postgresql-938846851.html | |
create database jira with owner jira ENCODING 'UNICODE' LC_COLLATE 'C' LC_CTYPE 'C' TEMPLATE template0; |
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
APT::Periodic::Update-Package-Lists "1"; | |
APT::Periodic::Download-Upgradeable-Packages "1"; | |
APT::Periodic::AutocleanInterval "7"; | |
APT::Periodic::Unattended-Upgrade "1"; | |
Unattended-Upgrade::Mail "**EMAIL HERE**"; | |
// Automatically upgrade packages from these | |
Unattended-Upgrade::Origins-Pattern { | |
"o=Debian,a=stable"; | |
"o=Debian,a=stable-updates"; |
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
/var/atlassian/application-data/jira/log/*.log | |
/var/atlassian/application-data/jira/log/automation-jira-performance.csv | |
{ | |
su jira jira | |
copytruncate | |
daily | |
rotate 30 | |
compress | |
delaycompress | |
missingok |
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
Xvfb -screen 0 1920x1080x24 & | |
x11vnc -forever -display :0 & | |
export DISPLAY=:0 | |
chromium & | |
#loopback audio for uh... purposes | |
modprobe snd-aloop | |
usermod -a G audio <user> | |
aplay -L #find the audio device | |
#set your application to list on X loopback device |
NewerOlder