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
if exists("b:current_syntax") | |
finish | |
endif | |
" # matches and keywords | |
" ## Tags | |
syntax cluster initTags contains=@initTagNames,initTagDelimiter,@initValues | |
syntax region initTag start=/\v\[/ end=/\v[\]\n]/ contains=@initTags | |
syntax match initTagDelimiter /\v:/ contained |
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 | |
function test { | |
echo ${FOO:=$(curl https://gist.githubusercontent.com/RWJMurphy/ded51ead3b153364099a/raw/348c26370e90b6c77a08a2e8fb3258fa6f1a7426/gistfile1.txt)} | |
} | |
test | |
test |
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 | |
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
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
#!/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 | |
from datetime import datetime | |
import sys | |
def main(): | |
try: | |
while 1: | |
line = sys.stdin.readline() |
OlderNewer