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
| # Listen for IPV4 connections | |
| listen=YES | |
| # Set PASV mode port range | |
| pasv_min_port=50000 | |
| pasv_max_port=60000 | |
| # Enable the PORT FTP command and connection method | |
| port_enable=YES |
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
| # Site | |
| title: "you site title" | |
| email: webmaster@yoursite.com | |
| description: >- # this means to ignore newlines until "baseurl:" | |
| Your site description | |
| # Env: localhost | |
| url: "http://localhost/" # the base hostname & protocol | |
| baseurl: "/cc" # the subpath, e.g. /parefix | |
| port: 5000 |
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/env bash | |
| # Generate password hash | |
| # | |
| genpwd(){ | |
| echo $(tr -dc A-Za-z0-9_ < /dev/urandom | head -c 20 | xargs) | |
| } | |
| # Check internet connection | |
| # |
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/env bash | |
| set -o errexit | |
| _FILES_RULES=('.DS_Store' 'node_modules ' '.jekyll-cache' '.sass-cache' '.venv' 'venv') | |
| _USAGE="$(printf """ | |
| Git .gitignore file helper tool. | |
| Usage: ignore (filepath) ([OPTIONS]) |
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
| from pprint import pprint | |
| import json | |
| import sys | |
| import os | |
| DATA_TYPES = { | |
| "S": lambda x: str(x), | |
| "B": lambda x: bool(x), | |
| "N": lambda x: str(x), |
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
| ========================================== | |
| CURL COMMAND | |
| ========================================== | |
| Format curl [options] [URL...] | |
| Quick Ref: | |
| curl -X POST http://example.com/ <= Method option and URL (Options come before or after URL) | |
| -H "Authorization: <data>" <= Add HTTP Header (like Authorization) |
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
| import json | |
| import pprint | |
| import sys | |
| if sys.argv[1] is None: | |
| print "JSON source not defined" | |
| exit() | |
| # e.g. _data/source-tree-templates.json |
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/env bash | |
| set -o errexit | |
| set -o errtrace | |
| usage() { | |
| printf "\ | |
| macOS socketfilterfw decorator. | |
| firewall [-command] [args] |
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
| /** | |
| * Logging Functions Toolkit. | |
| * | |
| * Logs with a prefixed message, if console.log isn't available, none op is performed | |
| * @param {object} arguments | |
| */ | |
| function log(){ | |
| if ( window.console && console.log ) | |
| console.log.apply( this, prefixedArray( arguments ) ); | |
| } |
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
| #!/bin/bash | |
| # | |
| # Change file or dir permissions mode and, sets SELinux 'httpd_sys_script_exec_t' file context. | |
| # Permissions mode: (u:7) (g:5) (o:5) | |
| # (u) the user who owns it | |
| # (g) other users in the file's group | |
| # (o) other users not in the file's group | |
| # | |
| # Usage: fix_perms {grp-name} {directory|filename} |