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
-- | |
-- MODULE-IDENTITY | |
-- OrgName | |
-- Fortinet, Inc. | |
-- ContactInfo | |
-- Technical Support | |
-- e-mail: [email protected] | |
-- http://www.fortinet.com | |
-- |
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 bash | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
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
docker run -d -v /dev/shm:/dev/shm -p 4444:4444 -p 5901:5900 selenium/standalone-chrome-debug:3.4.0-einsteinium |
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
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/ | |
# generate server.xml with the following command: | |
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes | |
# run as follows: | |
# python simple-https-server.py | |
# then in your browser, visit: | |
# https://localhost:4443 | |
import BaseHTTPServer, SimpleHTTPServer | |
import ssl |
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 sys | |
import re | |
from datetime import datetime | |
def parse(line): | |
parser = re.compile( | |
r'API VALIDATION: (?P<valid>[01]{1}) \| ' | |
r'tokensMatch: (?P<tokensMatch>[01]{1}) \| ' |
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
<?php | |
/** | |
* Simple abstraction for the Akamai's REST CCU API, | |
* to make fire-and-forget purge requests. | |
* | |
* @see https://api.ccu.akamai.com/ccu/v2/docs/ | |
* @author Menta Network - www.menta.mx <[email protected]> | |
* @license MIT License | |
*/ |
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
'atom-text-editor:not([mini])': | |
'cmd-d': 'editor:delete-line' | |
'atom-workspace atom-text-editor:not([mini])': | |
'alt-up': 'editor:move-line-up' | |
'alt-down': 'editor:move-line-down' |
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 | |
# Menta Network - www.menta.mx | |
USERNAME="" | |
PASSWORD="" | |
hash akamai_api 2>/dev/null || { | |
echo >&2 "The Ruby Gem 'akamai_api' is needed:" | |
echo >&2 "\`$ sudo gem install akamai_api\`" | |
exit 1; |
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
diff --git a/themes/cloud.zsh-theme b/themes/cloud.zsh-theme | |
index 4efbf97..59a3472 100644 | |
--- a/themes/cloud.zsh-theme | |
+++ b/themes/cloud.zsh-theme | |
@@ -6,5 +6,5 @@ PROMPT='%{$fg_bold[cyan]%}$ZSH_THEME_CLOUD_PREFIX %{$fg_bold[green]%}%p %{$fg[gr | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}[%{$fg[cyan]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
-ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}] %{$fg[yellow]%}<E2><9A><A1>%{$reset_color%}" | |
-ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}]" |
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 | |
# The project name based on the workspace path, e.g. "MyProject" from "./MyProject.xcworkspace" | |
WORKSPACE_NAME=$(echo `find . -name *.xcworkspace -type d -exec basename {} \;` | cut -d'.' -f1) | |
SIMULATOR_PATH="$HOME/Library/Application Support/iPhone Simulator" | |
# The App's bundle ID taken from its info plist, e.g "com.myproject" from "./MyProject/MyProject-Info.plist" | |
BUNDLE_ID=`/usr/libexec/PlistBuddy -c Print:CFBundleIdentifier $WORKSPACE_NAME/$WORKSPACE_NAME"-Info.plist"` | |
# Open all plist files in the simulator path that match the app's bundled ID | |
# normally one per iOS version | |
find "$SIMULATOR_PATH" -name $BUNDLE_ID".plist" -type f -print0 | while IFS= read -r -d '' PLIST; do |
NewerOlder