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
# cat /etc/sockd.conf | |
logoutput: syslog /var/log/danted.log | |
internal: eth0 port = 8765 | |
external: eth0 | |
socksmethod: username | |
user.privileged: root | |
user.unprivileged: nobody | |
client pass { |
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/perl -w | |
use strict; | |
use Net::DNS; | |
if ($ARGV[0]) { | |
gptr_a($ARGV[0]); | |
} else { | |
die "Usage: $0 HOSTNAME\n"; | |
} |
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
use Mojolicious::Lite; | |
use Mojo::Util qw(url_escape b64_decode); | |
use Mojo::JSON qw(from_json); | |
# Sample Google OAuth2 user email application using Mojolicious | |
# Based on the idea of https://gist.github.com/throughnothing/3726907 | |
# For more info see: | |
# https://developers.google.com/accounts/docs/OpenIDConnect | |
# https://developers.google.com/wallet/digital/docs/jwtdecoder | |
# |
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/local/bin/bash | |
DOM="$1" | |
# Базовая логика вызовов sed | |
# sed -nE '/^START$/h;/^END$/{x;/^START.*\nFLAG 0(\n|$)/{p;x;p;x;};};/^START$/!{x;/^START/!x;/^START/{x;H;};};' filename | |
# Логика следующая: | |
# Если текущая строка START - сохраняем её в hold space (сбрасывая прежнее содержимое); | |
# Если текущая строка END - проверяем, если в hold space присутствует и START и FLAG 0, | |
# то печатаем hold space, печатаем текущую строку и "сбрасываем" hold space (для того чтоб не попасться на START-FLAG 0-END-END) | |
# Eсли текущая строка не STARТ и в hold space уже пристутствует START, то дописываем текущую строку к hold space# |