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
^[[nspaces:s3_bucket_owner]]\s++[[nspaces:vhost]]\s++[[sbstring:req_time]]\s++[[nspaces:clientip]]\s++[[nspaces:user]]\s++[[nspaces:s3_request_id]]\s++[[nspaces:s3_operation]]\s++[[nspaces:s3_key]]\s++[[access-request]]\s++[[nspaces:status]]\s++[[nspaces:s3_error_code]]\s++[[nspaces:bytes]]\s++[[nspaces:s3_object_size]]\s++[[nspaces:s3_total_time]]\s++[[nspaces:s3_turnaround_time]]\s++"(?[[bc_domain:referer_]]?+[^"]*+)"\s++[[qstring:useragent]]\s++[[nspaces:s3_version_id]][[all:other]] |
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/bash | |
check="./check_host.sh" | |
logfile="lastrun.log" | |
debug=$1 | |
if command -v parallel >/dev/null 2>&1; then # PARALLEL :D | |
cat hosts | parallel --joblog $logfile -a - -j '1000%' "$check {} $debug" | |
else # NOT PARALLEL D: | |
rm -f $logfile && touch $logfile |
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 python | |
from __future__ import print_function | |
import argparse | |
import csv | |
import os | |
import sys | |
def fields(string): | |
parsed_fields = [] |
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 python | |
import argparse | |
import os | |
import random | |
import re | |
import string | |
import sys | |
def number_or_zero(x): |
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 python | |
from __future__ import print_function | |
import argparse | |
from collections import defaultdict | |
import os | |
import random | |
import sys | |
def main(args): |
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 python | |
from __future__ import print_function | |
import argparse | |
import math | |
import random | |
import string | |
import sys | |
class PassGen: | |
def __init__(self, dictionary, connectives, minimum_word_length, no_white_space=False): |
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 python | |
from __future__ import print_function | |
from datetime import datetime | |
import sys | |
def main(): | |
try: | |
while 1: | |
line = sys.stdin.readline() |
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 python | |
# -*- coding: utf-8 -*- | |
# vim: ft=python ts=4 sw=4 expandtab | |
"""A stub for command line applications in Python.""" | |
__version__ = "0.0.0" | |
import argparse | |
import os |
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
function mcd() { | |
cd=$(echo $1 | sed 's/\(.\)/\/\1*/g')/ | |
dirs=`\ls -1d $cd 2>/dev/null` | |
dira=($dirs) | |
dircount=${#dira[*]} | |
if [[ $dircount == 0 ]]; then | |
echo "No match for ${cd}" | |
elif [[ $dircount == 1 ]]; then | |
echo cd ${dirs} | |
cd "${dirs}" |
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
reedm@www:~/tmp $ ls -ld . | |
drwx------ 2 reedm reedm 4096 Feb 4 14:54 ./ | |
reedm@www:~/tmp $ cat > foo | |
This is a file | |
reedm@www:~/tmp $ chmod -w foo | |
reedm@www:~/tmp $ mv foo bar | |
reedm@www:~/tmp $ ls -la | |
total 12 | |
drwx------ 2 reedm reedm 4096 Feb 4 14:54 ./ | |
drwx-----x 54 reedm reedm 4096 Feb 4 10:18 ../ |
OlderNewer