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
ngx.req.read_body() | |
local fp = assert(io.popen('/usr/local/bin/contact.py >> /var/log/nginx/contact-form.log 2>&1', 'w')) | |
fp:write(ngx.var.remote_addr) | |
fp:write('\r\n') | |
fp:write(ngx.req.get_body_data()) | |
assert(fp:close()) |
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
@start /b cmd /c mpv --no-border --loop=force --no-osc --ontop --demuxer-lavf-analyzeduration=0 --demuxer-lavf-probesize=32 --no-audio --framedrop=decoder --force-seekable=no --no-cache --cache-secs=0 --no-cache-pause --rtsp-transport=tcp --geometry=432x768+0+0 rtsp://192.0.2.10/ | |
@start /b cmd /c mpv --no-border --loop=force --no-osc --ontop --geometry=934x768+432+0 video.mp4 |
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
@echo off | |
net session >nul 2>&1 | |
if %errorLevel% == 0 ( | |
sc.exe config lanmanworkstation depend= bowser/mrxsmb20/nsi | |
sc.exe config mrxsmb10 start= disabled | |
) else ( | |
echo Please run with Administrator rights.>&2 | |
) | |
pause |
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/sh | |
set -e | |
if [ -z "$1" ]; then | |
echo "usage: $0 <interface>" > /dev/stderr | |
exit 1 | |
fi | |
INTERFACE="$1" |
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
<?php | |
if ( | |
!isset($_POST['name']) || | |
!isset($_POST['company']) || | |
!isset($_POST['email']) || | |
!isset($_POST['phone']) || | |
!isset($_POST['message']) || | |
!(isset($_SERVER['HTTP_X_FORWARDED_FOR']) || isset($_SERVER['REMOTE_ADDR'])) || | |
!isset($_POST['g-recaptcha-response']) | |
) { |
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
const fs = require('fs'); | |
const path = require('path'); | |
const Realm = require('realm'); | |
const json2csv = require('json2csv'); | |
const realm = new Realm({ | |
path: 'default.realm', | |
readOnly: true | |
}); |
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
#include <ctype.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
int main (int argc, char **argv) { | |
int a = 0; | |
int i; | |
int o; |
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 | |
import json | |
import sys | |
import signal | |
import urllib.request | |
import urllib.parse | |
import re | |
from html.parser import HTMLParser |
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 | |
ontrap () { | |
for j in $(jobs -p) | |
do | |
kill -s SIGTERM $j > /dev/null 2>&1 || (sleep 1 && kill -9 $j > /dev/null 2>&1 &) | |
done | |
} | |
trap ontrap INT TERM EXIT | |
server () { | |
while : |
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
ffmpeg -f lavfi -i anullsrc -re -rtsp_transport tcp -analyzeduration 0 -i rtsp://admin:[email protected]/h264/ch${channel}/main/av_stream -c:v libx264 -c:a libfaac -ar 44100 -ac 2 -preset ultrafast -tune zerolatency -crf 30 -g 20 -f flv rtmp://127.0.0.1/live/ch${channel} |