This file contains 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
// from: http://byteandbits.blogspot.ru/2013/08/example-nginx-module-for-reading.html | |
// see also: http://www.serverphorums.com/read.php?5,79835,79835#msg-79835 | |
#include <ngx_config.h> | |
#include <ngx_core.h> | |
#include <ngx_http.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <unistd.h> |
This file contains 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
$ date && curl -vi --max-time 10 -I 'https://cdn.onelogin.com/assets/loader.js' -H 'Referer: https://nginx.onelogin.com/login' -H 'Accept: */*' -H 'Cache-Control: max-age=0' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/602.4.8 (KHTML, like Gecko) Version/10.0.3 Safari/602.4.8' | |
Fri Mar 24 10:26:50 MSK 2017 | |
* Trying 54.192.98.231... | |
* TCP_NODELAY set | |
* Connected to cdn.onelogin.com (54.192.98.231) port 443 (#0) | |
* ALPN, offering http/1.1 | |
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH | |
* successfully set certificate verify locations: | |
* CAfile: /opt/local/share/curl/curl-ca-bundle.crt | |
CApath: none |
This file contains 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
[9] JSON parser initialization | |
[9] yajl JSON parsing callback initialization | |
[4] Initializing transaction | |
[4] Transaction context created. | |
[4] Starting phase CONNECTION. (SecRules 0) | |
[9] This phase consists of 32 rule(s). | |
[4] Starting phase URI. (SecRules 0 + 1/2) | |
[4] Starting phase REQUEST_HEADERS. (SecRules 1) | |
[9] This phase consists of 134 rule(s). | |
[4] (Rule: 200000) Executing operator "Rx" with param "(?:text|application)/xml" against REQUEST_HEADERS:Content-Type. |
This file contains 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
OPTS = a b c | |
default: | |
@echo "try: make {all|base|opts}" | |
all: pattern-dep-all base opts | |
base: pattern-dep-base | |
@echo "base" | |
@touch $@ |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# https://github.com/dotless-de/vagrant-vbguest/issues/367 | |
# https://github.com/dotless-de/vagrant-vbguest/pull/373 | |
if defined?(VagrantVbguest) | |
class MyWorkaroundInstallerUntilPR373IsMerged < VagrantVbguest::Installers::CentOS | |
protected | |
def has_rel_repo? |
This file contains 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
# | |
# Copyright (C) Andrei Belov ([email protected]) | |
# | |
# This is an example of direnv [1] .envrc file approaching the way | |
# of using awscli [2] with MFA-enabled accounts in a (more or less) | |
# secure manner. | |
# | |
# The following assumptions are expected: | |
# | |
# a) there should be two files, key.asc and skey.asc, containing |
This file contains 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AllowAllUsersToListAccounts", | |
"Effect": "Allow", | |
"Action": [ | |
"iam:ListAccountAliases", | |
"iam:ListUsers", | |
"iam:ListVirtualMFADevices", |
This file contains 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
Welcome to minicom 2.7 | |
OPTIONS: I18n | |
Compiled on Nov 15 2018, 20:18:47. | |
Port unix#/tmp/fedora29-amd64-packer.serial | |
Press CTRL-A Z for help on special keys | |
[ 5.082516] dracut-pre-udev[418]: modprobe: ERROR: could not insert 'sha256_mb': No such device | |
[ OK ] Mounted Kernel Configuration File System. |
This file contains 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 | |
# cuetag.sh - tag files based on cue/toc file information | |
# uses cueprint output | |
# usage: cuetag.sh <cuefile|tocfile> [file]... | |
CUEPRINT=cueprint | |
cue_file="" | |
usage() |
This file contains 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.8 | |
import sys | |
import argparse | |
from dateutil import parser | |
from datetime import datetime | |
argparser = argparse.ArgumentParser(description="convert debian-style changelog to XML") | |
argparser.add_argument('deb_changelog', type=str, help="existing deb changelog file") | |
argparser.add_argument('--pkgname', type=str, required=True, help="package name") |