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 | |
echo "Test string"; |
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
#======================================== | |
# ps-jira-connect | |
# Author: H.L. | |
# Version: 0.1 | |
# Description: JIRA Connector | |
# Created: 8/14/2013 4:08 AM | |
#======================================== | |
$ps_jira_connect={ |
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
#=================================as custom object | |
$<classname>_code={ | |
function init(){ | |
} | |
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
1. Via stdin | |
type "%~dp0<my_script>.ps1" | powershell.exe -command - | |
2. Default way | |
powershell.exe -File "%~dp0<my_script>.ps1" |
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
[threading.thread]::CurrentThread.GetApartmentState() |
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
#1. ========object | |
$<variable> = New-Object PSObject -Property @{ | |
<field 1> = <value> | |
<field 2> = <value> | |
} | |
#2. ========hashtable | |
$<variable> = @{ | |
<name> = <value> | |
} |
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 | |
#=====bash color constants | |
CORENAME="BCore" | |
COREVER="0.2a" | |
#----note: use "echo -e" is required | |
COLOR_BEGIN="\033[" | |
COLOR_RED="${COLOR_BEGIN}0;31m" | |
COLOR_LIME="${COLOR_BEGIN}1;32m" | |
COLOR_BR="${COLOR_BEGIN}1;38;05;51m" | |
COLOR_ITEM="${COLOR_BEGIN}1;38;05;214m" |
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 | |
###################################### | |
# Shell script # | |
# Author: H.L. # | |
# TPL Version: 0.1 # | |
###################################### | |
#========================Global variables | |
APPVER="0.1b" | |
MYDIR=`echo $0` |
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 | |
###################################### | |
# Shell script # | |
# Author: H.L. # | |
# TPL Version: 0.1 # | |
###################################### | |
#========================Global variables | |
APPVER="0.1b" | |
MYDIR=`echo $0` |
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 | |
###################################### | |
# Shell script # | |
# Author: H.L. # | |
# TPL Version: 0.1 # | |
###################################### | |
#========================Global variables | |
APPVER="0.1b" | |
MYDIR=`echo $0` |
OlderNewer