git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
<?php | |
$unzip = new ZipArchive; | |
$out = $unzip->open('file-name.zip'); | |
if ($out === TRUE) { | |
$unzip->extractTo(getcwd()); | |
$unzip->close(); | |
echo 'File unzipped'; | |
} else { | |
echo 'Something went wrong?'; |
To remove a submodule you need to:
image: node:7.4 | |
# Yes, you do need this in order to be able to do onward pushes. | |
clone: | |
depth: full | |
pipelines: | |
default: | |
# Don't forget caches as well. | |
- step: |
# SPECIFIC: Block #submit #validate #process #pre_render #post_render #element_validate #after_build #value_callback parameters | |
SecRule REQUEST_FILENAME "(index\.php|\/$)" "chain,id:003294,t:lowercase,t:none,t:utf8toUnicode,t:urlDecodeUni,t:urldecode,block" | |
SecRule REQUEST_METHOD "^(GET|POST|HEAD)$" chain | |
SecRule ARGS_NAMES|REQUEST_COOKIES_NAMES "^\#(submit|validate|pre_render|post_render|element_validate|after_build|value_callback|process)$|\[(?:\'|\")?#(submit|validate|pre_render|post_render|element_validate|after_build|value_callback|process)" | |
# GENERIC: Block all parameters starting with # | |
SecRule REQUEST_FILENAME "(index\.php|\/$)" "chain,id:003309,t:lowercase,t:none,t:utf8toUnicode,t:urlDecodeUni,t:urldecode,block" | |
SecRule REQUEST_METHOD "^(GET|POST|HEAD)$" chain |
Remove SentinelOne agent from Mac
/Applications/Utilities/Disk\ Utility.app/Contents/MacOS/Disk\ Utility
to open Disk Utilitychroot /Volumes/Macintosh\ HD