Skip to content

Instantly share code, notes, and snippets.

View theraw's full-sized avatar
🤨
u wot

𝓙𝓾𝓵𝓲𝓸 theraw

🤨
u wot
View GitHub Profile
@theraw
theraw / test
Created January 28, 2019 21:24
test
iptables -A INPUT -p tcp -m tcp -m multiport --dports 80,443 -j ACCEPT
iptables -A INPUT -m conntrack -j ACCEPT --ctstate RELATED,ESTABLISHED
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -j DROP
iptables -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A OUTPUT -j DROP
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -j DROP
@theraw
theraw / test
Created January 28, 2019 21:24
test
iptables -A INPUT -p tcp -m tcp -m multiport --dports 80,443 -j ACCEPT
iptables -A INPUT -m conntrack -j ACCEPT --ctstate RELATED,ESTABLISHED
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -j DROP
iptables -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A OUTPUT -j DROP
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -j DROP
@theraw
theraw / ww
Last active December 24, 2019 01:53
#!/bin/bash -e
set -e
has() {
type "$1" > /dev/null 2>&1
}
# Redirect stdout ( > ) into a named pipe ( >() ) running "tee"
# exec > >(tee /tmp/installlog.txt)
# Without this, only stdout would be captured - i.e. your
<script type="text/javascript" src="//www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"></script>
<script type="text/javascript" src="https://cdn.myth.theoplayer.com/e5b43aad-0d87-4f84-a3ab-50d088b916e0/THEOplayer.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.myth.theoplayer.com/e5b43aad-0d87-4f84-a3ab-50d088b916e0/ui.css" />
<div class="theoplayer-container video-js theoplayer-skin vjs-16-9"></div>
<script>
var element = document.querySelector(".theoplayer-container");
var player = new THEOplayer.Player(element, {
libraryLocation: "https://cdn.myth.theoplayer.com/e5b43aad-0d87-4f84-a3ab-50d088b916e0"
});
@theraw
theraw / NPM
Last active April 17, 2020 11:47
version: '3.7'
services:
nginx:
container_name: nginx
ports:
- "0.0.0.0:80:80"
- "0.0.0.0:81:81"
- "0.0.0.0:443:443"
image: "jc21/nginx-proxy-manager:latest"
shm_size: '512MB'
@theraw
theraw / proftpd.conf
Created May 15, 2020 15:00
proftpd.conf
Include /etc/proftpd/modules.conf
UseIPv6 on
IdentLookups off
ServerName "Debian"
ServerType standalone
DeferWelcome off
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
TimeoutNoTransfer 600
@theraw
theraw / d
Created May 28, 2020 19:56
d
curl -SL "https://bintray.com/ookla/download/download_file?file_path=ookla-speedtest-1.0.0-x86_64-linux.tgz" | tar xvz -C /tmp && /tmp/speedtest
@theraw
theraw / readme.md
Last active January 6, 2021 22:14
how tos
  1. Create one cloudflare account.
  2. From account dashboard select Workers
  3. Create Worker
  4. follow steps on this page https://nopers.dopemovieio.workers.dev/ (Click "GET AUTHENTICATION CODE" then copy/paste it on the "Paste Authentication Code Here" input after that click "GENERATE CODE" and it will display the code you need to copy/paste on your cloudflare worker.

How to update?

  1. Follow the https://nopers.dopemovieio.workers.dev/ copy the code
  2. Go to your worker on cloudflare click "QUICK EDIT" copy folder ids and save them and delete all the code, then paste the new code you got from https://nopers.dopemovieio.workers.dev/ add your folder ids/names and click "save and deploy"

Hello

Hello

@theraw
theraw / php72poolbasic
Created September 21, 2020 15:00
php72poolbasic
[www]
;prefix = /path/to/pools/$pool
user = xtreamcodes
group = xtreamcodes
listen = 127.0.0.1:9000
; Set listen(2) backlog.
; Default Value: 511 (-1 on FreeBSD and OpenBSD)
;listen.backlog = 511