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
/* | |
* Places cursor at the end of text | |
* (c) 2019 James Perrin, MIT License, https://www.countrydawgg.com | |
* SEE: http://stackoverflow.com/questions/4609405/set-focus-after-last-character-in-text-box | |
* @param {Node} The input element | |
* @return {Node} The input element | |
*/ | |
HTMLInputElement.prototype.focusTextToEnd = function () { | |
this.focus(); | |
const thisVal = this.value; |
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
(function ($) { | |
/** | |
* jQuery plugin that places cursor at the end of text | |
* SEE: http://stackoverflow.com/questions/4609405/set-focus-after-last-character-in-text-box | |
* @param {Node} The input element | |
* @return {Node} The input element | |
* | |
*/ | |
$.fn.focusTextToEnd = function () { | |
this.focus(); |
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
/* | |
* jQuery plugin that converts value to date | |
* @requires https://jqueryui.com/ | |
* @param {Node} True or False to Disable element | |
* @return {String} Formatted date | |
*/ | |
(function ($) { | |
$.fn.getDateMmddyy = function () { | |
if (this.val() == null) { | |
return null; |
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
/* | |
Purpose: Export the configuration settings for GitHub Labels. | |
(c) James Perrin, MIT License, https://www.countrydawgg.com, | @jamesperrin | |
Exporting Instructions: | |
1. Open a web browser. | |
2. Navigate to the desired GitHub repository. | |
3. Navigate to Issues tab. |
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
/* | |
Purpose: Import settings for GitHub Labels. | |
(c) James Perrin, MIT License, https://www.countrydawgg.com, | @jamesperrin | |
Importing Instructions: | |
1. Update the labels JSON object. | |
2. Open a web browser. | |
3. Navigate to the desired GitHub repository. |
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
################################################################################## | |
# | |
# Purpose: This script automates the process of configuring HTTP Protocols settings on Windows Server 2012 R2 and higher. | |
# | |
# Note: This script requires elevated privileges since it's modifying Windows Server registry settings. | |
# | |
# File: WindowsServerHTTPSecurity.ps1 | |
# Date: 12/05/2019 | |
# | |
# OS: Windows |
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 | |
set -m | |
################################################################################## | |
# | |
# Purpose: To registry proxy SSL certificate with Fortify Java. | |
# OS: Windows | |
# Terminal: Git Bash for Windows | |
# | |
# James Perrin, @jamesperrin | https://github.com/jamesperrin |
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
# Created by Next.js - https://gist.github.com/jamesperrin/d7d030d7e8064920fa55a75b408885e4 | |
# dependencies | |
/node_modules | |
/.pnp | |
.pnp.js | |
# testing | |
/coverage | |
# next.js |
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
<# | |
::################################################################################## | |
::# | |
::# Purpose: To configure HTTP Strict Transport Security (HSTS) Window Server versions 2019 with IIS 10. | |
::# OS: Window Server versions 2019 with IIS 10 | |
::# SEE: https://docs.microsoft.com/en-us/iis/get-started/whats-new-in-iis-10-version-1709/iis-10-version-1709-hsts#iis-100-version-1709-native-hsts-support | |
::# | |
::# James Perrin, MIT License, https://www.countrydawgg.com, | @_jamesperrin | |
::# | |
::################################################################################## |
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 os | |
import shutil | |
import errno | |
# def copyanything(src, dst): | |
# try: | |
# shutil.copytree(src, dst) | |
# except OSError as exc: # python >2.5 | |
# if exc.errno == errno.ENOTDIR: | |
# shutil.copy(src, dst) |
OlderNewer